Skip to content

Commit

Permalink
CI cache reorder and fix dependencies for different optimizations
Browse files Browse the repository at this point in the history
  • Loading branch information
playday3008 authored Jan 14, 2025
1 parent 127580d commit 9548056
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/zig-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,20 +27,20 @@ jobs:
with:
version: ${{ matrix.zig }}

- name: Cache Dependencies
id: cache-deps
uses: actions/cache@v4
with:
path: ./build/${{ matrix.board }}/${{ matrix.optimize }}/_deps
key: ${{ matrix.board }}-${{ matrix.optimize }}-deps

- name: Cache Toolchains
id: cache-toolchains
uses: actions/cache@v4
with:
path: ./build/${{ matrix.board }}/${{ matrix.optimize }}/toolchain
key: ${{ matrix.board }}-toolchain

- name: Cache Dependencies
id: cache-deps
uses: actions/cache@v4
with:
path: ./build/${{ matrix.board }}/${{ matrix.optimize }}/_deps
key: ${{ matrix.board }}-deps

- name: Build
run: zig build -Dboard=${{ matrix.board }} -Doptimize=${{ matrix.optimize }} -Dbuild_dir=./build/${{ matrix.board }}/${{ matrix.optimize }}

Expand Down

0 comments on commit 9548056

Please sign in to comment.