swtich from cargo edit to sed
This commit is contained in:
parent
2d0c301062
commit
e432040321
22
.github/workflows/build_wheels.yml
vendored
22
.github/workflows/build_wheels.yml
vendored
@ -36,9 +36,7 @@ jobs:
|
||||
with:
|
||||
python-version: 3.x
|
||||
- name: Set cargo version from tag
|
||||
run: |
|
||||
cargo install cargo-edit
|
||||
cargo set-version $(git describe --tags --always)
|
||||
run: .github/workflows/update_version.sh
|
||||
|
||||
- name: Build wheels
|
||||
uses: PyO3/maturin-action@v1
|
||||
@ -72,9 +70,8 @@ jobs:
|
||||
with:
|
||||
python-version: 3.x
|
||||
- name: Set cargo version from tag
|
||||
run: |
|
||||
cargo install cargo-edit
|
||||
cargo set-version $(git describe --tags --always)
|
||||
run: .github/workflows/update_version.sh
|
||||
|
||||
- name: Build wheels
|
||||
uses: PyO3/maturin-action@v1
|
||||
with:
|
||||
@ -104,9 +101,8 @@ jobs:
|
||||
python-version: 3.x
|
||||
architecture: ${{ matrix.platform.target }}
|
||||
- name: Set cargo version from tag
|
||||
run: |
|
||||
cargo install cargo-edit
|
||||
cargo set-version $(git describe --tags --always)
|
||||
run: .github/workflows/update_version.sh
|
||||
|
||||
- name: Build wheels
|
||||
uses: PyO3/maturin-action@v1
|
||||
with:
|
||||
@ -134,9 +130,7 @@ jobs:
|
||||
with:
|
||||
python-version: 3.x
|
||||
- name: Set cargo version from tag
|
||||
run: |
|
||||
cargo install cargo-edit
|
||||
cargo set-version $(git describe --tags --always)
|
||||
run: .github/workflows/update_version.sh
|
||||
- name: Build wheels
|
||||
uses: PyO3/maturin-action@v1
|
||||
with:
|
||||
@ -154,9 +148,7 @@ jobs:
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Set cargo version from tag
|
||||
run: |
|
||||
cargo install cargo-edit
|
||||
cargo set-version $(git describe --tags --always)
|
||||
run: .github/workflows/update_version.sh
|
||||
- name: Build sdist
|
||||
uses: PyO3/maturin-action@v1
|
||||
with:
|
||||
|
2
.github/workflows/update_version.sh
vendored
Executable file
2
.github/workflows/update_version.sh
vendored
Executable file
@ -0,0 +1,2 @@
|
||||
VERSION=$(git describe --tags --always | sed 's/^v//')
|
||||
sed -i -E 's/^version = "[^"]+"/version = "'"$VERSION"'"/' Cargo.toml
|
Loading…
x
Reference in New Issue
Block a user