
Section manager redesign Linker relocations Using global strings String literal fixup in sema
48 lines
1.0 KiB
YAML
48 lines
1.0 KiB
YAML
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
|