CI #821
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Make | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
workflow_dispatch: | |
concurrency: | |
group: "make" | |
cancel-in-progress: false | |
jobs: | |
Make: | |
runs-on: self-hosted | |
timeout-minutes: 5 | |
#runs-on: ${{ matrix.os }} | |
#strategy: | |
# fail-fast: true | |
# matrix: | |
# os: [ubuntu-latest, windows-latest] | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Make | |
run: | | |
make clean default | |
- name: Make test | |
run: | | |
# test for creating saves | |
echo -e "0\n saves\nsaves\nB\n1\n1\nN\nY\nN\nY\nN\nY\nT\n0\nT\n1\nT\n2\nE\nT\nX\nY\n" > input.txt | |
./stocksim < input.txt | |
# test for loading saves | |
echo -e "1\nsaves\nN\nY\nN\nY\nN\nY\nN\nY\nT\n0\nT\nT\n3\nT\n4\nT\nS\n1\n1\nX\nY\n" > input.txt | |
./stocksim < input.txt | |
# test for deleting saves | |
echo -e "2\nsaves\nY\n3\n" > input.txt | |
./stocksim < input.txt | |
- name: Doxygen Documentation | |
if: always() | |
run: | | |
make docs | |
cd latex | |
make 2>/dev/null || true | |
- name: Upload executable | |
uses: actions/upload-artifact@v4 | |
with: | |
# suppose we compiled our game and named it 'stocksim' | |
# use wildcard to match the executable for all platforms | |
name: stocksim | |
# name: stocksim-${{ matrix.os }} | |
path: stocksim* | |
compression-level: 9 | |
if-no-files-found: error | |
- name: Upload reference manual | |
uses: actions/upload-artifact@v4 | |
with: | |
name: refman | |
path: latex/refman.pdf | |
compression-level: 9 | |
if-no-files-found: error |