Merge pull request #29 from corwinkuiper/rust-toolchain

add rust-toolchain.toml
This commit is contained in:
Corwin 2021-05-23 05:22:30 +01:00 committed by GitHub
commit f8b9d3fecd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 8 deletions

View file

@ -22,13 +22,6 @@ jobs:
sudo apt-get install libzip5 ./mGBA-0.9.0-ubuntu64-focal/libmgba.deb -y && \ sudo apt-get install libzip5 ./mGBA-0.9.0-ubuntu64-focal/libmgba.deb -y && \
rm -rf mgba.tar.xz mGBA-0.9.0-ubuntu64-focal rm -rf mgba.tar.xz mGBA-0.9.0-ubuntu64-focal
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- name: Nightly rust with required components
uses: actions-rs/toolchain@v1
with:
toolchain: nightly-2021-04-20
components: clippy, rust-src
override: true
- name: Cache - name: Cache
uses: actions/cache@v2.1.1 uses: actions/cache@v2.1.1
with: with:
@ -36,7 +29,7 @@ jobs:
~/.cargo/registry ~/.cargo/registry
~/.cargo/git ~/.cargo/git
agb/target agb/target
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}-${{ steps.rust_install.outputs.rustc_hash }} key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- name: install mgba-test-runner - name: install mgba-test-runner
run: cargo install --path mgba-test-runner run: cargo install --path mgba-test-runner

3
agb/rust-toolchain.toml Normal file
View file

@ -0,0 +1,3 @@
[toolchain]
channel = "nightly"
components = ["rust-src", "clippy"]