Skip to content
This repository was archived by the owner on Jan 22, 2026. It is now read-only.

Commit fbff967

Browse files
committed
ci: update build job and set rust stable to v1.66.1
1 parent 8321fc0 commit fbff967

1 file changed

Lines changed: 18 additions & 8 deletions

File tree

.github/workflows/main.yml

Lines changed: 18 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,33 +19,43 @@ jobs:
1919
build:
2020
runs-on: ubuntu-latest
2121
steps:
22-
- uses: actions/checkout@v3
23-
- run: cargo build
24-
- uses: actions-rs/clippy-check@v1
22+
- name: Checkout
23+
uses: actions/checkout@v3
24+
- name: Cache
25+
uses: actions/cache@v3
2526
with:
26-
token: ${{ secrets.GITHUB_TOKEN }}
27-
args: --all-features -- -D warnings
27+
path: |
28+
~/.cargo/registry
29+
~/.cargo/git
30+
target
31+
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.toml','**/Cargo.lock') }}
32+
- name: Set profile
33+
run: rustup set profile minimal && rustup component add clippy
34+
- name: Build
35+
run: cargo build
36+
- name: Clippy
37+
run: cargo clippy --all-features -- -D warnings
2838
test-emulators:
2939
runs-on: ubuntu-20.04
3040
strategy:
3141
matrix:
3242
rust:
33-
- version: 1.61.0 # STABLE
43+
- version: 1.66.1 # STABLE
3444
- version: 1.41.1 # MSRV
3545
emulator:
3646
- name: trezor
3747
- name: ledger
3848
steps:
3949
- name: Checkout
4050
uses: actions/checkout@v3
41-
- name: cache
51+
- name: Cache
4252
uses: actions/cache@v3
4353
with:
4454
path: |
4555
~/.cargo/registry
4656
~/.cargo/git
4757
target
48-
key: ${{ runner.os }}-cargo-test-emulators-${{ hashFiles('**/Cargo.toml','**/Cargo.lock') }}
58+
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.toml','**/Cargo.lock') }}
4959
- name: Set up Docker Buildx
5060
uses: docker/setup-buildx-action@v2
5161
- name: Build and push

0 commit comments

Comments
 (0)