2024-09-05 01:43:24 +00:00
|
|
|
name: Continuous Integration
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
2024-09-05 01:44:27 +00:00
|
|
|
- "trunk"
|
2024-09-05 01:43:24 +00:00
|
|
|
tags:
|
|
|
|
- "*"
|
|
|
|
paths-ignore:
|
|
|
|
- "**.md"
|
|
|
|
pull_request:
|
|
|
|
branches:
|
2024-09-05 01:44:27 +00:00
|
|
|
- "trunk"
|
2024-09-05 01:43:24 +00:00
|
|
|
paths-ignore:
|
|
|
|
- "**.md"
|
|
|
|
workflow_dispatch:
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
name: Statcheck test
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
2024-09-05 03:23:09 +00:00
|
|
|
- uses: actions/checkout@v4
|
|
|
|
with:
|
|
|
|
submodules: true
|
|
|
|
|
2024-09-05 01:43:24 +00:00
|
|
|
- name: Install dependencies
|
|
|
|
run: |
|
|
|
|
sudo apt-get update
|
|
|
|
sudo apt-get install make chocolate-doom python3 python3-yaml
|
|
|
|
|
|
|
|
- name: Override demos list
|
|
|
|
run: |
|
2024-09-05 03:25:42 +00:00
|
|
|
echo pwads/av/fast/af253503.zip/af253503.lmp \
|
|
|
|
pwads/hr/movie/11hr7159.zip/11hr7159.lmp \
|
|
|
|
pwads/mm/movie/30mm8356.zip/30mm8356.lmp \
|
|
|
|
pwads/mm2/max/m2221807.zip/m2221807.lmp \
|
|
|
|
pwads/requiem/movie/6039rq01.zip/6039rq01.lmp \
|
2024-09-05 01:43:24 +00:00
|
|
|
> demos.txt
|
|
|
|
|
2024-09-05 03:34:18 +00:00
|
|
|
- name: Build
|
2024-09-05 01:43:24 +00:00
|
|
|
run: |
|
2024-09-05 03:34:18 +00:00
|
|
|
make output
|
2024-09-05 03:37:18 +00:00
|
|
|
|
|
|
|
- name: Check output
|
|
|
|
run: |
|
|
|
|
diff -u ${expected,output}/pwads/av/fast/af253503.zip/af253503.lmp
|
|
|
|
diff -u ${expected,output}/pwads/hr/movie/11hr7159.zip/11hr7159.lmp
|
|
|
|
diff -u ${expected,output}/pwads/mm/movie/30mm8356.zip/30mm8356.lmp
|
|
|
|
diff -u ${expected,output}/pwads/mm2/max/m2221807.zip/m2221807.lmp
|
|
|
|
diff -u ${expected,output}/pwads/requiem/movie/6039rq01.zip/6039rq01.lmp
|
|
|
|
echo "All outputs match expected; test passed."
|