Skip to content

Commit

Permalink
Use newer version of Rust toolchain setup
Browse files Browse the repository at this point in the history
This also enables caching by default
  • Loading branch information
darkdragon-001 committed Aug 6, 2024
1 parent ce608f0 commit 68958bf
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 11 deletions.
14 changes: 5 additions & 9 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,10 @@ jobs:
run: sudo apt-get install protobuf-compiler

- name: Rust setup
uses: dtolnay/rust-toolchain@stable
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: stable

- name: Rust cache
uses: swatinem/rust-cache@v2
rustflags: ''

- name: Check out code
uses: actions/checkout@v4
Expand Down Expand Up @@ -137,10 +135,11 @@ jobs:
sudo apt-get update && sudo apt-get install -y --no-install-recommends libgtk-3-dev:arm64 libwebkit2gtk-4.1-dev:arm64 librsvg2-dev:arm64 libayatana-appindicator3-dev:arm64 libssl-dev:arm64 libjavascriptcoregtk-4.1-dev:arm64
- name: Rust setup
uses: dtolnay/rust-toolchain@stable
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: stable
targets: aarch64-unknown-linux-gnu
target: aarch64-unknown-linux-gnu
rustflags: ''

- name: Setup C compiler, linker and pkgconfig
run: |
Expand All @@ -154,9 +153,6 @@ jobs:
echo "PKG_CONFIG_PATH=/usr/lib/aarch64-linux-gnu/pkgconfig" >> $GITHUB_ENV
echo "PKG_CONFIG_SYSROOT_DIR=/" >> $GITHUB_ENV
- name: Rust cache
uses: swatinem/rust-cache@v2

- name: Check out code
uses: actions/checkout@v4

Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,11 @@ jobs:
uses: actions/checkout@v4

- name: Rust setup
uses: dtolnay/rust-toolchain@stable
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: stable
components: rustfmt
rustflags: ''

- name: Check code format
uses: actions-rust-lang/rustfmt@v1
Expand All @@ -55,10 +56,11 @@ jobs:
run: sudo apt-get install protobuf-compiler

- name: Rust setup
uses: dtolnay/rust-toolchain@stable
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: stable
components: clippy
rustflags: ''

- name: Run clippy lints
uses: auguwu/[email protected]
Expand Down

0 comments on commit 68958bf

Please sign in to comment.