universal-lambda-zig/.github/workflows/build.yaml
Emil Lerch cf8590e3ee
All checks were successful
Generic zig build / build (push) Successful in 31s
comment unneeded (for now) env vars
2024-05-10 14:03:37 -07:00

37 lines
1.1 KiB
YAML

name: Generic zig build
on:
workflow_dispatch:
push:
branches:
- '*'
- '!zig-develop*'
env:
# ACTIONS_RUNTIME_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# ACTIONS_RUNTIME_URL: ${{ env.GITHUB_SERVER_URL }}/api/actions_pipeline/
WASMTIME_BACKTRACE_DETAILS: 1
WASMTIME_NEW_CLI: 0
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: elerch/setup-zig@v3
with:
version: 0.12.0
- uses: elerch/zig-action-cache@v1.1.6
- name: Build project
run: zig build --summary all
- name: Install wasmtime
run: curl https://wasmtime.dev/install.sh -sSf | bash
- name: Run tests
run: PATH=${HOME}/.wasmtime/bin:${PATH} zig build test -fwasmtime --summary all # downstream needs this for CF workers
- name: Notify
uses: elerch/action-notify-ntfy@v2.github
if: always() && env.GITEA_ACTIONS == 'true'
with:
host: ${{ secrets.NTFY_HOST }}
topic: ${{ secrets.NTFY_TOPIC }}
status: ${{ job.status }}
user: ${{ secrets.NTFY_USER }}
password: ${{ secrets.NTFY_PASSWORD }}