-
Notifications
You must be signed in to change notification settings - Fork 2
69 lines (59 loc) · 1.68 KB
/
Copy pathci.yml
File metadata and controls
69 lines (59 loc) · 1.68 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
name: CI
on:
push:
branches: [main]
pull_request:
workflow_dispatch:
jobs:
build-and-test:
name: Build & test (${{ matrix.os }})
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
steps:
- uses: actions/checkout@v4
- name: Install OpenSSL (Linux)
if: runner.os == 'Linux'
run: |
sudo apt-get update
sudo apt-get install -y libssl-dev
- name: Install OpenSSL (macOS)
if: runner.os == 'macOS'
run: brew install openssl@3
- name: Setup MSYS2 (Windows)
if: runner.os == 'Windows'
uses: msys2/setup-msys2@v2
with:
msystem: MINGW64
update: true
install: mingw-w64-x86_64-gcc mingw-w64-x86_64-openssl mingw-w64-x86_64-pkgconf make
- name: Build
if: runner.os != 'Windows'
run: make
- name: Build (MSYS2)
if: runner.os == 'Windows'
shell: msys2 {0}
run: make
- name: Run regression suite
if: runner.os != 'Windows'
shell: pwsh
run: |
.\tests\run_regression.ps1 -Verbose
if ($LASTEXITCODE -ne 0) { exit 1 }
- name: Run regression suite (Windows)
if: runner.os == 'Windows'
shell: pwsh
run: |
.\tests\run_regression.ps1 -Verbose
if ($LASTEXITCODE -ne 0) { exit 1 }
- name: Upload regression log on failure
if: failure()
uses: actions/upload-artifact@v4
with:
name: regression-log-${{ matrix.os }}
path: |
build/
tests/*.qvm
retention-days: 5