forked from casadi/casadi
-
Notifications
You must be signed in to change notification settings - Fork 0
112 lines (100 loc) · 3.37 KB
/
compilers.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
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
101
102
103
104
105
106
107
108
109
110
111
112
name: compilers
on: [push, pull_request]
env:
cache-suffix: v11
build_flags: "-DWITH_COMMON=OFF -DWITH_THREAD=ON -DWITH_WERROR=ON -DWITH_EXTRA_WARNINGS=ON"
jobs:
linux-22_04-gcc:
runs-on: ubuntu-22.04
strategy:
fail-fast: false
matrix:
compiler: ['9','10','11','12'] # 13 compiler bug
steps:
- uses: actions/[email protected]
- name: Build
run: |
if [ "${{ matrix.compiler }}" = "12" ]; then
# see https://github.com/pytorch/pytorch/issues/77939
extra_build_flags="-DWITH_WERROR=OFF"
fi
CC=gcc-${{ matrix.compiler }} FC=gfortran-${{ matrix.compiler }} CXX=g++-${{ matrix.compiler }} cmake -Bbuild -DWITH_SELFCONTAINED=ON ${{env.build_flags}} $extra_build_flags -H.
cmake --build build -v
linux-22_04-clang:
runs-on: ubuntu-22.04
strategy:
fail-fast: false
matrix:
compiler: ['13','14','15']
steps:
- uses: actions/[email protected]
- name: Build
run: |
CC=clang-${{ matrix.compiler }} FC=gfortran-${{ matrix.compiler }} CXX=clang++-${{ matrix.compiler }} cmake -Bbuild -DWITH_SELFCONTAINED=ON ${{env.build_flags}} -H.
cmake --build build -v
linux-latest:
runs-on: ubuntu-22.04
steps:
- uses: actions/[email protected]
- name: Build
run: |
cmake -Bbuild -DWITH_SELFCONTAINED=ON ${{env.build_flags}} -H.
cmake --build build -v
macos-latest:
runs-on: macos-latest
steps:
- uses: actions/[email protected]
- name: Build
run: |
cmake -Bbuild -DWITH_SELFCONTAINED=ON ${{env.build_flags}} -H.
cmake --build build -v
macos-12:
runs-on: macos-12
steps:
- uses: actions/[email protected]
- name: Build
run: |
cmake -Bbuild -DWITH_SELFCONTAINED=ON ${{env.build_flags}} -H.
cmake --build build -v
macos-12-clang15:
runs-on: macos-12
steps:
- uses: actions/[email protected]
- name: Build
run: |
CC=$(brew --prefix llvm@15)/bin/clang FC=gfortran-11 CXX=$(brew --prefix llvm@15)/bin/clang++ cmake -Bbuild -DWITH_SELFCONTAINED=ON ${{env.build_flags}} -H.
cmake --build build -v
windows-2019:
runs-on: windows-2019
strategy:
fail-fast: false
matrix:
arch: [x64,Win32]
steps:
- uses: actions/[email protected]
- name : Build
run: |
cmake -Bbuild -G "Visual Studio 16 2019" -A ${{ matrix.arch }} -DWITH_SELFCONTAINED=ON -DCMAKE_INSTALL_PREFIX=install
cmake --build build --target install --config Release -v
windows-2022:
runs-on: windows-2022
strategy:
fail-fast: false
matrix:
arch: [x64,Win32]
steps:
- uses: actions/[email protected]
- name : Build
run: |
cmake -Bbuild -G "Visual Studio 17 2022" -A ${{ matrix.arch }} -DWITH_SELFCONTAINED=ON -DCMAKE_INSTALL_PREFIX=install
cmake --build build --target install --config Release -v
windows-latest-mingw:
runs-on: windows-latest
strategy:
fail-fast: false
steps:
- uses: actions/[email protected]
- name : Build
run: |
cmake -Bbuild -G "MinGW Makefiles" -DWITH_SELFCONTAINED=ON -DCMAKE_INSTALL_PREFIX=install ${{env.build_flags}}
cmake --build build --target install --config Release -v