ci: switch to dtolnay/rust-toolchain

This commit is contained in:
chyyran 2024-02-21 01:05:59 -05:00 committed by Ronny Chan
parent 9741ab2cd1
commit c7dd7796db
2 changed files with 6 additions and 8 deletions

View file

@ -32,10 +32,9 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v3
- name: Install nightly Rust
uses: actions-rs/toolchain@v1.0.6
uses: dtolnay/rust-toolchain@master
with:
toolchain: nightly
override: true
- name: Build dynamic library
run: cargo run -p librashader-build-script -- --profile ${{ matrix.profile }}
- name: Upload build artifacts
@ -54,11 +53,10 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v3
- name: Install nightly Rust
uses: actions-rs/toolchain@v1.0.6
uses: dtolnay/rust-toolchain@master
with:
toolchain: nightly
override: true
target: aarch64-unknown-linux-gnu
targets: aarch64-unknown-linux-gnu
- name: Install ARM64 cross-compilation dependencies
continue-on-error: true
run: |
@ -86,11 +84,11 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v3
- name: Install nightly Rust
uses: actions-rs/toolchain@v1.0.6
uses: dtolnay/rust-toolchain@master
with:
toolchain: nightly-2024-01-15 # pinned because it seems like there's a segfault on nightly
override: true
target: aarch64-pc-windows-msvc
targets: aarch64-pc-windows-msvc
- name: Build dynamic library
run: cargo run -p librashader-build-script -- --profile ${{ matrix.profile }} --target aarch64-pc-windows-msvc
- name: Upload build artifacts

View file

@ -27,7 +27,7 @@ jobs:
with:
submodules: recursive
- name: Install nightly Rust
uses: actions-rs/toolchain@v1.0.6
uses: dtolnay/rust-toolchain@nightly
with:
toolchain: nightly
override: true