-
Notifications
You must be signed in to change notification settings - Fork 3
45 lines (38 loc) · 1.15 KB
/
project_tests.yml
File metadata and controls
45 lines (38 loc) · 1.15 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
name: Tests for the project
on:
push:
branches: '*'
pull_request:
branches: '*'
jobs:
tests:
name: Running the tests for ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
include:
- { os: ubuntu-latest }
# - { os: macos-latest }
# - { os: windows-latest }
steps:
- uses: actions/checkout@v3
- name: Clone Zork++
uses: GuillaumeFalourd/clone-github-repo-action@v2
with:
owner: 'ZeroDayCode'
repository: 'Zork'
- name: Download the latest possible version of Clang
run: |
sudo apt update
sudo apt install clang-15 --install-suggests
sudo apt install libc++-15-dev libc++abi-15-dev
- name: Generate a Zork++ release build
run: |
cd ./Zork/zork++
cargo build --release
cd ../..
mv ./Zork/zork++/target/release/zork ./Zork/zork++/target/release/zork++
cp ./Zork/zork++/target/release/zork++ .
- name: Running the tests for ${{ matrix.os }} with Zork++
run: ./zork++ --match-files gh_linux -vv -c run