-
Notifications
You must be signed in to change notification settings - Fork 1
63 lines (61 loc) · 1.76 KB
/
make.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
name: make
on: push
jobs:
make:
strategy:
matrix:
platform:
- runner: ubuntu-latest
shell: 'bash'
suffix: -linux-gcc-nehalem
cxx: g++
llvm_profdata: ''
arch: nehalem
extra: ''
- runner: ubuntu-latest
shell: 'bash'
suffix: -linux-gcc
cxx: g++
llvm_profdata: ''
arch: haswell
extra: ''
- runner: ubuntu-22.04
shell: 'bash'
suffix: -linux-clang
cxx: clang++-14
llvm_profdata: llvm-profdata-14
arch: haswell
extra: '-DNDEBUG'
- runner: windows-latest
shell: 'msys2 {0}'
suffix: -windows-clang
cxx: clang++
llvm_profdata: llvm-profdata
arch: haswell
extra: '-DNDEBUG'
defaults:
run:
shell: ${{ matrix.platform.shell }}
runs-on: ${{ matrix.platform.runner }}
steps:
- uses: msys2/setup-msys2@v2
with:
msystem: clang64
install: >-
git
base-devel
mingw-w64-clang-x86_64-clang
mingw-w64-clang-x86_64-compiler-rt
mingw-w64-clang-x86_64-lld
if: ${{ matrix.platform.runner == 'windows-latest' }}
- uses: actions/checkout@v3
- id: make
run: |
make CXX=${{ matrix.platform.cxx }} LLVM_PROFDATA=${{ matrix.platform.llvm_profdata }} \
ARCH=${{ matrix.platform.arch }} EXTRA_CPPFLAGS='${{ matrix.platform.extra }}' \
LDFLAGS='-static -s' SUFFIX=${{ matrix.platform.suffix }}
echo "artifact=$(basename -s .exe out/seawall-*)" >> $GITHUB_OUTPUT
- uses: actions/upload-artifact@v3
with:
name: ${{ steps.make.outputs.artifact }}
path: out/seawall-*