Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
53 changes: 53 additions & 0 deletions .github/workflows/default.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
name: Gazprea Feature Tests

on:
push:
branches:
- "**"
paths:
- "include/**"
- "lib/**"
- "src/**"
- "tests/**"

jobs:
build-artifact:
runs-on: self-hosted
container: ghcr.io/cmput415/gaz-utils:latest

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Configure
run: cmake -B bin -G Ninja .

- name: Build
run: cd bin && ninja -j $(nproc)

- name: Upload generator interpreter artifact
id: upload
uses: actions/upload-artifact@v4
with:
name: generator-interp
path: bin

llc-tests:
runs-on: self-hosted
container: ghcr.io/cmput415/dragon-runner:latest
needs: [ build-artifact ]
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Download built artifact
uses: actions/download-artifact@v4
with:
name: generator-interp
path: ./bin

- name: Make Executable
run: chmod +x ./bin/generator

- name: Run llc tests
run: dragon-runner tests/GeneratorCIConfig.json --timeout 10
19 changes: 19 additions & 0 deletions tests/GeneratorCIConfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"testDir": "testfiles",
"testedExecutablePaths": {
"my-name": "../bin/generator"
},
"toolchains": {
"interpreter": [
{
"stepName": "generator-interpreter",
"executablePath": "$EXE",
"arguments": [
"$INPUT",
"$OUTPUT"
],
"output": "generator.out"
}
]
}
}