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

View file

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