-
Notifications
You must be signed in to change notification settings - Fork 29
39 lines (36 loc) · 1.12 KB
/
test.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
name: Corral CI
on: [push, pull_request, workflow_dispatch]
env:
SOLUTION: source/Corral.sln
Z3URL: https://github.com/Z3Prover/z3/releases/download/z3-4.8.8/z3-4.8.8-x64-ubuntu-16.04.zip
jobs:
job0:
name: Corral CI
runs-on: ubuntu-20.04
strategy:
matrix:
configuration: [Debug, Release]
steps:
- name: Setup dotnet
uses: actions/setup-dotnet@v1
with:
dotnet-version: '6.0.x'
- name: Checkout Corral
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Install tools, build Corral, test Corral
run: |
# Download a Z3 release
wget ${Z3URL}
unzip z3*.zip
export PATH="$(find $PWD/z3* -name bin -type d):$PATH"
# Change directory to Corral root folder
cd $GITHUB_WORKSPACE
# Restore dotnet tools
dotnet tool restore
# Build Corral
dotnet build -c ${{ matrix.configuration }} ${SOLUTION}
# Run regression tests
export CONFIGURATION=${{ matrix.configuration }}
(cd test/regression && perl check.pl)