2024-05-10 20:45:32 +00:00
|
|
|
name: Generic zig build
|
|
|
|
on:
|
|
|
|
workflow_dispatch:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- '*'
|
|
|
|
- '!zig-develop*'
|
2023-09-20 21:22:33 +00:00
|
|
|
env:
|
2024-05-10 21:03:37 +00:00
|
|
|
# ACTIONS_RUNTIME_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
# ACTIONS_RUNTIME_URL: ${{ env.GITHUB_SERVER_URL }}/api/actions_pipeline/
|
2023-10-22 19:23:14 +00:00
|
|
|
WASMTIME_BACKTRACE_DETAILS: 1
|
2024-05-10 20:56:48 +00:00
|
|
|
WASMTIME_NEW_CLI: 0
|
2023-09-20 21:22:33 +00:00
|
|
|
jobs:
|
2024-05-10 20:45:32 +00:00
|
|
|
build:
|
2023-09-20 21:22:33 +00:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2024-05-10 20:45:32 +00:00
|
|
|
- uses: actions/checkout@v4
|
|
|
|
- uses: elerch/setup-zig@v3
|
|
|
|
with:
|
2024-06-08 17:51:45 +00:00
|
|
|
version: 0.13.0
|
2024-05-10 20:45:32 +00:00
|
|
|
- uses: elerch/zig-action-cache@v1.1.6
|
|
|
|
- name: Build project
|
|
|
|
run: zig build --summary all
|
2024-01-09 22:28:20 +00:00
|
|
|
- name: Install wasmtime
|
|
|
|
run: curl https://wasmtime.dev/install.sh -sSf | bash
|
|
|
|
- name: Run tests
|
2024-01-09 22:34:49 +00:00
|
|
|
run: PATH=${HOME}/.wasmtime/bin:${PATH} zig build test -fwasmtime --summary all # downstream needs this for CF workers
|
2023-09-20 21:22:33 +00:00
|
|
|
- name: Notify
|
2024-05-10 20:45:32 +00:00
|
|
|
uses: elerch/action-notify-ntfy@v2.github
|
|
|
|
if: always() && env.GITEA_ACTIONS == 'true'
|
2023-09-20 21:22:33 +00:00
|
|
|
with:
|
|
|
|
host: ${{ secrets.NTFY_HOST }}
|
|
|
|
topic: ${{ secrets.NTFY_TOPIC }}
|
2024-05-10 20:45:32 +00:00
|
|
|
status: ${{ job.status }}
|
2023-09-20 21:22:33 +00:00
|
|
|
user: ${{ secrets.NTFY_USER }}
|
|
|
|
password: ${{ secrets.NTFY_PASSWORD }}
|