Skip to content

Commit

Permalink
Merge pull request #77 from jjcomer/add-caching
Browse files Browse the repository at this point in the history
Add caching to github workflows
  • Loading branch information
jjcomer authored Mar 3, 2023
2 parents afba416 + 15188c7 commit 57790c2
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
8 changes: 7 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,14 +71,18 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: ${{ matrix.toolchain }}
target: ${{ matrix.target }}
profile: minimal
components: clippy
- name: Rust Cache
uses: Swatinem/[email protected]
with:
key: ${{ matrix.target }}
- name: Install Cross
uses: actions-rs/[email protected]
with:
Expand Down Expand Up @@ -117,6 +121,8 @@ jobs:
default: true
profile: minimal
components: rustfmt
- name: Rust Cache
uses: Swatinem/[email protected]
- name: Format
uses: actions-rs/cargo@v1
with:
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,13 +65,17 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
target: ${{ matrix.target }}
profile: minimal
- name: Rust Cache
uses: Swatinem/[email protected]
with:
key: ${{ matrix.target }}
- name: Archive Release
uses: taiki-e/upload-rust-binary-action@v1
with:
Expand Down

0 comments on commit 57790c2

Please sign in to comment.