Skip to content

Merge pull request #12 from birth-software/hello-world #181

Merge pull request #12 from birth-software/hello-world

Merge pull request #12 from birth-software/hello-world #181

Workflow file for this run

name: CI
on:
pull_request:
paths:
- ".github/workflows/ci.yml"
- "**.zig"
push:
paths:
- ".github/workflows/ci.yml"
- "**.zig"
branches:
- main
schedule:
- cron: "0 0 * * *"
concurrency:
# Cancels pending runs when a PR gets updated.
group: ${{ github.head_ref || github.run_id }}-${{ github.actor }}
cancel-in-progress: true
jobs:
build:
strategy:
matrix:
os: [
ubuntu-latest,
]
runs-on: ${{ matrix.os }}
timeout-minutes: 15
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up Zig
uses: goto-bus-stop/setup-zig@v2
with:
version: master
- name: Zig environment variables
run: zig env
- name: Test
run: |
zig build test -Dall --summary all
zig build run -- test/first/main.nat
nat/first
zig build run -- test/stack/main.nat
nat/stack
zig build run -- test/hello_world/main.nat
nat/hello_world