Skip to content

Commit

Permalink
chore: add a build step, and ensure building examples
Browse files Browse the repository at this point in the history
  • Loading branch information
carlmontanari committed Mar 9, 2025
1 parent 482b437 commit c8664f7
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
---
name: build

on:
workflow_call: {}
workflow_dispatch: {}

jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v4
with:
fetch-depth: 1

- name: load env vars for workflow run
run: |
source .github/vars.env
echo "ZIG_VERSION=$ZIG_VERSION" >> "$GITHUB_ENV"
echo "ZLINT_VERSION=$ZLINT_VERSION" >> "$GITHUB_ENV"
echo "KCOV_VERSION=$KCOV_VERSION" >> "$GITHUB_ENV"
- name: setup zig
uses: mlugg/setup-zig@v1
with:
version: ${{ env.ZIG_VERSION }}

- name: build the examples
run: |
make build-examples
- name: build the library and ffi layer
run: |
make build
3 changes: 3 additions & 0 deletions .github/workflows/cicd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,6 @@ jobs:

test:
uses: ./.github/workflows/test.yaml

build:
users: ./.github/workflows/build.yaml

0 comments on commit c8664f7

Please sign in to comment.