-
Notifications
You must be signed in to change notification settings - Fork 0
83 lines (71 loc) · 2.24 KB
/
ci.yml
File metadata and controls
83 lines (71 loc) · 2.24 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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
name: CI
on:
push:
pull_request:
jobs:
build-and-test:
name: ${{ matrix.name }} / ${{ matrix.config }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
include:
- os: windows-latest
name: Windows MSVC
config: Debug
cmake_args: ""
- os: windows-latest
name: Windows MSVC
config: Release
cmake_args: ""
- os: ubuntu-latest
name: Linux GCC
config: Debug
cmake_args: "-DCMAKE_CXX_COMPILER=g++"
- os: ubuntu-latest
name: Linux GCC
config: Release
cmake_args: "-DCMAKE_CXX_COMPILER=g++"
- os: ubuntu-latest
name: Linux Clang
config: Debug
cmake_args: "-DCMAKE_CXX_COMPILER=clang++"
- os: ubuntu-latest
name: Linux Clang
config: Release
cmake_args: "-DCMAKE_CXX_COMPILER=clang++"
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Linux dependencies
if: runner.os == 'Linux'
run: |
sudo apt-get update
sudo apt-get install -y clang g++ libx11-dev libgl1-mesa-dev
- name: Configure
run: cmake -S . -B build -DCMAKE_BUILD_TYPE=${{ matrix.config }} ${{ matrix.cmake_args }}
- name: Build
run: cmake --build build --config ${{ matrix.config }} --parallel
- name: Test
run: ctest --test-dir build -C ${{ matrix.config }} --output-on-failure
fuzz-smoke:
name: Fuzz smoke
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y clang libx11-dev libgl1-mesa-dev
- name: Configure
run: >
cmake -S . -B build-fuzz
-DCMAKE_CXX_COMPILER=clang++
-DCMAKE_BUILD_TYPE=Debug
-DGWBASIC_BUILD_TESTS=OFF
-DGWBASIC_BUILD_FUZZERS=ON
- name: Build fuzzer
run: cmake --build build-fuzz --target gwbasic_lexer_parser_fuzzer --parallel
- name: Run fuzzer smoke
run: ./build-fuzz/gwbasic_lexer_parser_fuzzer -runs=100