Skip to content

Commit

Permalink
Cache rust builds during build CI (#546)
Browse files Browse the repository at this point in the history
* cache rust builds during build CI

Signed-off-by: Brooks Townsend <[email protected]>

* also cache host_core target dir

Signed-off-by: Brooks Townsend <[email protected]>

---------

Signed-off-by: Brooks Townsend <[email protected]>
  • Loading branch information
brooksmtownsend authored Feb 8, 2023
1 parent 35b95d6 commit 359bd2f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/host_core.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,11 @@ jobs:
host_core/_build
key: ${{ runner.os }}-${{ matrix.otp }}-${{ matrix.elixir }}-mix-${{ hashFiles('host_core/mix.exs', 'host_core/mix.lock') }}

# Cache Rust builds
- uses: Swatinem/rust-cache@v2
with:
cache-directories: "host_core/native/hostcore_wasmcloud_native/target"

- name: Install Rebar and Hex
working-directory: ${{env.working-directory}}
run: |
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/wasmcloud_host.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,11 @@ jobs:
wasmcloud_host/_build
key: ${{ runner.os }}-${{ matrix.otp }}-${{ matrix.elixir }}-mix-${{ hashFiles('wasmcloud_host/mix.exs', 'wasmcloud_host/mix.lock') }}

# Cache Rust builds
- uses: Swatinem/rust-cache@v2
with:
cache-directories: "host_core/native/hostcore_wasmcloud_native/target"

- name: Install Rebar and Hex
working-directory: ${{env.working-directory}}
run: |
Expand Down

0 comments on commit 359bd2f

Please sign in to comment.