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:
|
with:
|
||||||
python-version: 3.x
|
python-version: 3.x
|
||||||
- name: Set cargo version from tag
|
- name: Set cargo version from tag
|
||||||
run: |
|
run: .github/workflows/update_version.sh
|
||||||
cargo install cargo-edit
|
|
||||||
cargo set-version $(git describe --tags --always)
|
|
||||||
|
|
||||||
- name: Build wheels
|
- name: Build wheels
|
||||||
uses: PyO3/maturin-action@v1
|
uses: PyO3/maturin-action@v1
|
||||||
@ -72,9 +70,8 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
python-version: 3.x
|
python-version: 3.x
|
||||||
- name: Set cargo version from tag
|
- name: Set cargo version from tag
|
||||||
run: |
|
run: .github/workflows/update_version.sh
|
||||||
cargo install cargo-edit
|
|
||||||
cargo set-version $(git describe --tags --always)
|
|
||||||
- name: Build wheels
|
- name: Build wheels
|
||||||
uses: PyO3/maturin-action@v1
|
uses: PyO3/maturin-action@v1
|
||||||
with:
|
with:
|
||||||
@ -104,9 +101,8 @@ jobs:
|
|||||||
python-version: 3.x
|
python-version: 3.x
|
||||||
architecture: ${{ matrix.platform.target }}
|
architecture: ${{ matrix.platform.target }}
|
||||||
- name: Set cargo version from tag
|
- name: Set cargo version from tag
|
||||||
run: |
|
run: .github/workflows/update_version.sh
|
||||||
cargo install cargo-edit
|
|
||||||
cargo set-version $(git describe --tags --always)
|
|
||||||
- name: Build wheels
|
- name: Build wheels
|
||||||
uses: PyO3/maturin-action@v1
|
uses: PyO3/maturin-action@v1
|
||||||
with:
|
with:
|
||||||
@ -134,9 +130,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
python-version: 3.x
|
python-version: 3.x
|
||||||
- name: Set cargo version from tag
|
- name: Set cargo version from tag
|
||||||
run: |
|
run: .github/workflows/update_version.sh
|
||||||
cargo install cargo-edit
|
|
||||||
cargo set-version $(git describe --tags --always)
|
|
||||||
- name: Build wheels
|
- name: Build wheels
|
||||||
uses: PyO3/maturin-action@v1
|
uses: PyO3/maturin-action@v1
|
||||||
with:
|
with:
|
||||||
@ -154,9 +148,7 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- name: Set cargo version from tag
|
- name: Set cargo version from tag
|
||||||
run: |
|
run: .github/workflows/update_version.sh
|
||||||
cargo install cargo-edit
|
|
||||||
cargo set-version $(git describe --tags --always)
|
|
||||||
- name: Build sdist
|
- name: Build sdist
|
||||||
uses: PyO3/maturin-action@v1
|
uses: PyO3/maturin-action@v1
|
||||||
with:
|
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