-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #14 from cztomsik/feat/github-actions
add github actions (headless win/linux for now)
- Loading branch information
Showing
1 changed file
with
62 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
name: CI | ||
|
||
on: push | ||
|
||
jobs: | ||
# build_gui: | ||
# strategy: | ||
# matrix: | ||
# os: [macos, windows] | ||
# arch: ["x86_64", "aarch64"] | ||
# runs-on: ${{ matrix.os == 'linux' && 'ubuntu' || matrix.os }}-latest | ||
# steps: | ||
# - uses: actions/checkout@v3 | ||
# with: | ||
# submodules: true | ||
|
||
# - uses: actions/setup-node@v4 | ||
# with: | ||
# node-version: latest | ||
|
||
# - uses: goto-bus-stop/setup-zig@v2 | ||
# with: | ||
# version: master | ||
|
||
# - run: npm ci && npm run build | ||
|
||
# - run: zig build -Dtarget=${{matrix.arch}}-${{matrix.os}} -Doptimize=ReleaseFast | ||
|
||
# - name: Upload artifacts | ||
# uses: actions/upload-artifact@v3 | ||
# with: | ||
# name: ava_${{ matrix.os }}_${{ matrix.arch }} | ||
# path: zig-out/bin/* | ||
|
||
build_headless: | ||
strategy: | ||
matrix: | ||
os: [linux, windows] # , macos] | ||
arch: ["x86_64", "aarch64"] | ||
runs-on: ${{ matrix.os == 'linux' && 'ubuntu' || matrix.os }}-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
submodules: true | ||
|
||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: latest | ||
|
||
- uses: goto-bus-stop/setup-zig@v2 | ||
with: | ||
version: master | ||
|
||
- run: npm ci && npm run build | ||
|
||
- run: zig build -Dheadless=true -Dtarget=${{matrix.arch}}-${{matrix.os}} -Doptimize=ReleaseFast | ||
|
||
- name: Upload artifacts | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: ava_headless_${{ matrix.os }}_${{ matrix.arch }} | ||
path: zig-out/bin/* |