-
Notifications
You must be signed in to change notification settings - Fork 32
68 lines (57 loc) · 1.65 KB
/
spoa.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
57
58
59
60
61
62
63
64
65
66
67
68
name: spoa CI
on:
push:
pull_request:
branches:
- master
env:
BUILD_TYPE: Release
jobs:
test:
strategy:
matrix:
compiler:
- g++-7
- g++
- clang++-6.0
- clang++
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- if: ${{ contains(matrix.compiler, '-') }}
name: Get compiler version
id: get-compiler-version
run: |
version=$(echo ${{ matrix.compiler }} | cut -d- -f2)
echo "version=$version" >> $GITHUB_OUTPUT
- if: ${{ startsWith(matrix.compiler, 'g++-') }}
name: Setup GCC
uses: egor-tensin/setup-gcc@v1
with:
version: "${{ steps.get-compiler-version.outputs.version }}"
platform: x64
- if: ${{ startsWith(matrix.compiler, 'clang++-') }}
name: Setup Clang
uses: egor-tensin/setup-clang@v1
with:
version: "${{ steps.get-compiler-version.outputs.version }}"
platform: x64
- name: Configure CMake
run: |
cmake -B ${{ github.workspace }}/build_cmake -DCMAKE_BUILD_TYPE=${{ env.BUILD_TYPE }}
cmake --build ${{ github.workspace }}/build_cmake
env:
CXX: ${{ matrix.compiler }}
- name: Configure Meson
uses: BSFishy/[email protected]
with:
action: build
directory: build_meson
meson-version: 0.60.0
- name: Test
working-directory: ${{ github.workspace }}
run: |
build_cmake/bin/spoa --version
build_cmake/bin/spoa_test
build_meson/src/spoa --version
build_meson/test/spoa_test