Skip to content

Commit

Permalink
ci: download and extract macOS SDK, cache directories on GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
kwvg committed Nov 22, 2024
1 parent 9ec5175 commit 4bfddd6
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -97,15 +97,24 @@ jobs:
uses: actions/cache@v4
with:
path: |
depends/built
depends/${{ matrix.host }}
depends/built
depends/sdk-sources
depends/SDKs
key: ${{ runner.os }}-depends-${{ matrix.depends_name }}-${{ hashFiles('depends/packages/*') }}-${{ steps.det-params.outputs.dep_hash }}
restore-keys: |
${{ runner.os }}-depends-${{ matrix.depends_name }}-${{ hashFiles('depends/packages/*') }}-
${{ runner.os }}-depends-${{ matrix.depends_name }}-
- name: Build depends
run: env HOST=${{ matrix.host }} ${{ matrix.dep_opts }} make -j$(nproc) -C depends
run: |
export HOST="${{ matrix.host }}"
mkdir -p depends/SDKs depends/sdk-sources
if [[ "${HOST}" == "x86_64-apple-darwin" ]]; then
./ci/dash/setup-sdk.sh
fi
env ${{ matrix.dep_opts }} make -j$(nproc) -C depends
shell: bash

build:
name: ${{ matrix.build_target }}
Expand Down Expand Up @@ -139,8 +148,10 @@ jobs:
uses: actions/cache/restore@v4
with:
path: |
depends/built
depends/${{ steps.det-params.outputs.dep_host }}
depends/built
depends/sdk-sources
depends/SDKs
key: ${{ runner.os }}-depends-${{ matrix.depends_name }}-${{ hashFiles('depends/packages/*') }}-${{ steps.det-params.outputs.dep_hash }}
restore-keys: |
${{ runner.os }}-depends-${{ matrix.depends_name }}-${{ hashFiles('depends/packages/*') }}-
Expand Down

0 comments on commit 4bfddd6

Please sign in to comment.