-
Notifications
You must be signed in to change notification settings - Fork 80
100 lines (98 loc) · 3.06 KB
/
test.yaml
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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
name: Test
on:
push:
jobs:
# linux:
# name: ${{ matrix.config.name }}
# runs-on: ubuntu-22.04
# strategy:
# fail-fast: false
# matrix:
# config:
# - name: linux_gcc_9
# compiler: gcc
# compiler_version: 9
# - name: linux_gcc_12
# compiler: gcc
# compiler_version: 12
# - name: linux_clang_12
# compiler: clang
# compiler_version: 12
# - name: linux_clang_15
# compiler: clang
# compiler_version: 15
# container:
# image: quay.io/richiesams/docker_${{ matrix.config.compiler }}:${{ matrix.config.compiler_version }}
# steps:
# - uses: actions/checkout@v4
# - name: Build Debug
# run: make CMAKE_PRESET=Unix_x64_Debug generate build
# - name: Build Release
# run: make CMAKE_PRESET=Unix_x64_Release generate build
# - name: Test
# run: make test
darwin:
name: ${{ matrix.config.name }}
runs-on: macOS-13
strategy:
fail-fast: false
matrix:
config:
- name: darwin_gcc_9
brew_package: gcc@9
cc: /usr/local/opt/gcc@9/bin/gcc-9
cxx: /usr/local/opt/gcc@9/bin/g++-9
- name: darwin_gcc_12
brew_package: gcc@12
cc: /usr/local/opt/gcc@12/bin/gcc-12
cxx: /usr/local/opt/gcc@12/bin/g++-12
- name: darwin_clang_12
brew_package: llvm@12
cc: /usr/local/opt/llvm@12/bin/clang
cxx: /usr/local/opt/llvm@12/bin/clang++
- name: darwin_clang_15
brew_package: llvm@15
cc: /usr/local/opt/llvm@15/bin/clang
cxx: /usr/local/opt/llvm@15/bin/clang++
env:
CC: ${{ matrix.config.cc }}
CXX: ${{ matrix.config.cxx }}
steps:
- uses: actions/checkout@v4
- name: Install
run: brew install ${{ matrix.config.brew_package }}
- name: Temp
run: |
ls -la /usr/local/opt/gcc@12
ls -la /usr/local/opt/gcc@12/bin
- name: Build Debug
run: make CMAKE_PRESET=Unix_x64_Debug generate build
- name: Build Release
run: make CMAKE_PRESET=Unix_x64_Release generate build
- name: Test
run: make test
# windows:
# name: ${{ matrix.config.name }}
# runs-on: ${{ matrix.config.os }}
# strategy:
# fail-fast: false
# matrix:
# config:
# - name: windows_vs_2019
# os: windows-2019
# compiler_version: 2019
# - name: windows_vs_2022
# os: windows-2022
# compiler_version: 2022
# steps:
# - uses: actions/checkout@v4
# - uses: ilammy/msvc-dev-cmd@v1
# with:
# vsversion: "${{ matrix.compiler_version }}"
# - uses: seanmiddleditch/gha-setup-ninja@master
# - name: Build Debug
# run: make CMAKE_PRESET=Win_x64_Debug generate build
# - name: Build Release
# run: make CMAKE_PRESET=Win_x64_Release generate build
# - name: Test
# run: make test