-
-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix caching * fix mac runners parameter expansion * simplify manual delivery of artifacts * avoid copying everything in source when packaging SDK * fix exec bits and make sdk accessible from build-all workflow
- Loading branch information
1 parent
118f660
commit 65e2d44
Showing
7 changed files
with
274 additions
and
169 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
name: build-dawn-mac | ||
|
||
on: | ||
workflow_dispatch: | ||
workflow_call: | ||
|
||
jobs: | ||
build-mac: | ||
strategy: | ||
matrix: | ||
os: [macos-13, macos-14] | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- uses: actions/setup-python@v4 | ||
with: | ||
python-version: '3.10' | ||
|
||
- name: Dawn version | ||
id: dawn-version | ||
run: | | ||
echo "DAWN_COMMIT=$(cat deps/dawn-commit.txt)" >> $GITHUB_OUTPUT | ||
ARCH=${{ runner.arch }} | ||
echo "LOWERCASE_ARCH=$(echo $ARCH | tr '[:upper:]' '[:lower:]')" >> $GITHUB_OUTPUT | ||
- name: Cache | ||
id: cache-dawn | ||
uses: actions/cache@v3 | ||
with: | ||
path: build/dawn.out | ||
key: dawn-${{ runner.os }}-${{ runner.arch }}-${{ steps.dawn-version.outputs.DAWN_COMMIT }} | ||
|
||
- name: Build Dawn | ||
if: steps.cache-dawn.outputs.cache-hit != 'true' | ||
run: | | ||
./orcadev build-dawn --release --parallel 4 | ||
- uses: actions/upload-artifact@v4 | ||
with: | ||
name: dawn-mac-${{steps.dawn-version.outputs.LOWERCASE_ARCH}} | ||
path: build/dawn.out |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
name: build-dawn-win | ||
|
||
on: | ||
workflow_dispatch: | ||
workflow_call: | ||
|
||
jobs: | ||
build-win: | ||
runs-on: windows-2022 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- uses: actions/setup-python@v4 | ||
with: | ||
python-version: '3.10' | ||
|
||
- name: Dawn version | ||
id: dawn-version | ||
shell: cmd | ||
run: | | ||
@chcp 65001>nul | ||
set /p DAWN_COMMIT=<deps/dawn-commit.txt | ||
echo DAWN_COMMIT=%DAWN_COMMIT% >> %GITHUB_OUTPUT% | ||
- name: Cache | ||
id: cache-dawn | ||
uses: actions/cache@v3 | ||
with: | ||
path: build/dawn.out | ||
key: dawn-${{ runner.os }}-${{ runner.arch }}-${{ steps.dawn-version.outputs.DAWN_COMMIT }} | ||
|
||
- name: Build Dawn | ||
if: steps.cache-dawn.outputs.cache-hit != 'true' | ||
shell: cmd | ||
run: | | ||
orcadev build-dawn --release --parallel 4 | ||
- uses: actions/upload-artifact@v4 | ||
with: | ||
name: dawn-windows-x64 | ||
path: build/dawn.out |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.