Skip to content

Commit

Permalink
Use rust-cache
Browse files Browse the repository at this point in the history
Close #203
Close #111
  • Loading branch information
sbihel committed Oct 25, 2022
1 parent 53dd8cb commit 8372418
Showing 1 changed file with 6 additions and 33 deletions.
39 changes: 6 additions & 33 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,16 +34,7 @@ jobs:
ref: ${{env.SSI_REF}}
submodules: true

- name: Cache Cargo registry and build artifacts
uses: actions/[email protected]
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.toml', 'lib/Makefile', '**.rs') }}
restore-keys: |
${{ runner.os }}-cargo-
- uses: Swatinem/rust-cache@v2

- name: Install Rust old stable with incremental compilation
uses: actions-rs/toolchain@v1
Expand All @@ -53,10 +44,10 @@ jobs:
default: true

- name: Build
run: cargo build --verbose
run: cargo build

- name: Test
run: cargo test --verbose
run: cargo test

- name: Test CLI
run: cli/tests/example.sh
Expand Down Expand Up @@ -180,16 +171,7 @@ jobs:
ref: ${{env.SSI_REF}}
submodules: true

- name: Cache Cargo registry and build artifacts
uses: actions/[email protected]
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.toml', 'lib/Makefile', '**.rs') }}
restore-keys: |
${{ runner.os }}-cargo-
- uses: Swatinem/rust-cache@v2

- name: Install Rust iOS targets
run: make -C lib install-rustup-ios
Expand All @@ -213,16 +195,7 @@ jobs:
ref: ${{env.SSI_REF}}
submodules: true

- name: Cache Cargo registry and build artifacts
uses: actions/[email protected]
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.toml', 'lib/Makefile', '**.rs') }}
restore-keys: |
${{ runner.os }}-cargo-
- uses: Swatinem/rust-cache@v2

- name: Build
run: cargo build --verbose
run: cargo build

0 comments on commit 8372418

Please sign in to comment.