-
Notifications
You must be signed in to change notification settings - Fork 64
56 lines (51 loc) · 1.49 KB
/
source-corpus.yml
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
46
47
48
49
50
51
52
53
54
55
56
name: Source Corpus Tests
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
test:
strategy:
matrix:
os: [ubuntu-latest]
slice: [1,2,3,4,5]
build_target: [x64]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- uses: actions/checkout@v3
with:
repository: dvander/sourcepawn-corpus
submodules: recursive
path: sourcepawn-corpus
# Setup Python for AMBuild
- uses: actions/setup-python@v4
with:
python-version: 3.8
- name: Install AMBuild
run: |
python -m pip install --upgrade pip setuptools wheel
pip install git+https://github.com/alliedmodders/ambuild
pip install progressbar2
- name: Select clang compiler
run: |
echo "CC=clang" >> $GITHUB_ENV
echo "CXX=clang++" >> $GITHUB_ENV
clang --version
clang++ --version
- name: Build
run: |
mkdir objdir
cd objdir
python ../configure.py --enable-optimize --enable-debug --enable-asan --targets=${{ matrix.build_target }}
ambuild
echo "SPCOMP=objdir/spcomp/linux-x86_64/spcomp" >> $GITHUB_ENV
- name: Test
run: |
python tools/corpus/run.py ${SPCOMP} ${GITHUB_WORKSPACE}/sourcepawn-corpus -j \
--fail-fast --num-slice 5 --slice ${{ matrix.slice }}