-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build(Rust): use 2024 edition (#333)
* build(Rust): use 2024 edition Signed-off-by: Luka Peschke <[email protected]> * chore: make format Signed-off-by: Luka Peschke <[email protected]> * fix(ci): do not rely on deprecated actions-rs github action anymore Signed-off-by: Luka Peschke <[email protected]> * fix(ci): replace messense/maturin action with PyO3/maturin Signed-off-by: Luka Peschke <[email protected]> * build: specify rust-version in Cargo.toml Signed-off-by: Luka Peschke <[email protected]> * fix(ci): setup rust toolchain in check-x-build steps as well Signed-off-by: Luka Peschke <[email protected]> * fix(ci/release): make sure the latest rust toolchain is used Signed-off-by: Luka Peschke <[email protected]> --------- Signed-off-by: Luka Peschke <[email protected]>
- Loading branch information
1 parent
24f31f9
commit a1a9f76
Showing
13 changed files
with
56 additions
and
57 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,11 +26,7 @@ jobs: | |
with: | ||
python-version: "${{ env.MIN_PYTHON_VERSION }}" | ||
- name: Set up rust toolchain | ||
uses: actions-rs/toolchain@v1 | ||
with: | ||
profile: minimal | ||
toolchain: stable | ||
override: true | ||
uses: dtolnay/rust-toolchain@stable | ||
- name: Set up rustfmt | ||
run: rustup component add rustfmt | ||
|
||
|
@@ -55,11 +51,7 @@ jobs: | |
with: | ||
python-version: "3.11" | ||
- name: Set up rust toolchain | ||
uses: actions-rs/toolchain@v1 | ||
with: | ||
profile: minimal | ||
toolchain: stable | ||
override: true | ||
uses: dtolnay/rust-toolchain@stable | ||
- run: | | ||
git config user.name github-actions | ||
git config user.email [email protected] | ||
|
@@ -88,11 +80,7 @@ jobs: | |
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Set up rust toolchain | ||
uses: actions-rs/toolchain@v1 | ||
with: | ||
profile: minimal | ||
toolchain: stable | ||
override: true | ||
uses: dtolnay/rust-toolchain@stable | ||
|
||
# Maturin requires a venv to be activated, that's why we have to create one here | ||
- name: Create virtualenv | ||
|
@@ -124,6 +112,7 @@ jobs: | |
architecture: aarch64 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: dtolnay/rust-toolchain@stable | ||
- name: Set Rust target | ||
id: target | ||
if: matrix.os != 'windows-latest' | ||
|
@@ -132,7 +121,7 @@ jobs: | |
echo "target=$TARGET" >> $GITHUB_OUTPUT | ||
- name: build (fast) | ||
uses: messense/maturin-action@v1 | ||
uses: PyO3/maturin-action@v1 | ||
with: | ||
manylinux: auto | ||
command: build | ||
|
@@ -149,8 +138,9 @@ jobs: | |
runs-on: "ubuntu-latest" | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: dtolnay/rust-toolchain@stable | ||
- name: build sdist | ||
uses: messense/maturin-action@v1 | ||
uses: PyO3/maturin-action@v1 | ||
with: | ||
manylinux: auto | ||
command: sdist | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,11 +17,7 @@ jobs: | |
with: | ||
python-version: "3.11" | ||
- name: Set up rust toolchain | ||
uses: actions-rs/toolchain@v1 | ||
with: | ||
profile: minimal | ||
toolchain: stable | ||
override: true | ||
uses: dtolnay/rust-toolchain@stable | ||
- run: | | ||
git config user.name github-actions | ||
git config user.email [email protected] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters