Skip to content

Commit

Permalink
upgrade actions in gh workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
rayrobdod committed Apr 12, 2024
1 parent 220a3b5 commit e085363
Showing 1 changed file with 16 additions and 9 deletions.
25 changes: 16 additions & 9 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Cache cargo registry
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ~/.cargo/registry/
key: cargo-${{ matrix.os }}-${{ hashFiles('**/Cargo.lock') }}
Expand Down Expand Up @@ -67,7 +67,7 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Cache cargo registry
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ~/.cargo/registry/
key: cargo-ubuntu-${{ hashFiles('**/Cargo.lock') }}
Expand All @@ -78,10 +78,17 @@ jobs:
check_licenses:
runs-on: ubuntu-latest
steps:
- name: Get cargo-license
run: 'cargo install cargo-license'
- uses: actions/checkout@v4
- name: Check licenses
run: >
cargo license --tsv |
awk -f .github/license-acceptable.awk
- name: Cache cargo registry
uses: actions/cache@v4
with:
path: ~/.cargo/registry/
key: cargo-${{ matrix.os }}-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
cargo-${{ matrix.os }}-
- name: Install cargo-license
run: 'cargo install cargo-license'
- uses: actions/checkout@v4
- name: Check licenses
run: >
cargo license --tsv |
awk -f .github/license-acceptable.awk

0 comments on commit e085363

Please sign in to comment.