Skip to content

Commit

Permalink
Merge pull request #14 from cztomsik/feat/github-actions
Browse files Browse the repository at this point in the history
add github actions (headless win/linux for now)
  • Loading branch information
cztomsik authored Jan 20, 2024
2 parents c7939ef + c0a942b commit f4751d6
Showing 1 changed file with 62 additions and 0 deletions.
62 changes: 62 additions & 0 deletions .github/workflows/main.yml
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/*

0 comments on commit f4751d6

Please sign in to comment.