-
Notifications
You must be signed in to change notification settings - Fork 1
94 lines (76 loc) · 2.2 KB
/
main.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
name: CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
schedule:
- cron: '0 0 1 * *'
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
#
# win64
#
build-and-test-windows:
runs-on: windows-latest
strategy:
matrix:
compiler: ['clang', 'gcc', 'msvc']
steps:
- uses: actions/checkout@v2
- name: Install Clang
uses: KyleMayes/[email protected]
with:
version: "18.1.0"
directory: ${{ runner.temp }}/llvm
# - name: Install MinGW
# uses: egor-tensin/setup-mingw@v2
# with:
# platform: x64
# if: matrix.compiler == 'gcc'
- name: Install MSVC
uses: ilammy/msvc-dev-cmd@v1
if: matrix.compiler == 'msvc'
- name: Build And Test
# run: .\scripts\build_and_test.bat ${{ matrix.compiler }}
run: |
.\tools\make\make.exe -f .\scripts\generator.mak config=release
.\tools\make\make.exe -f .\scripts\tests.mak compiler=${{ matrix.compiler }} config=release
if: matrix.compiler != 'msvc'
- name: Build And Test (MSVC only)
run: .\scripts\build_and_test.bat ${{ matrix.compiler }}
if: matrix.compiler == 'msvc'
#
# linux
#
build-and-test-linux:
runs-on: ubuntu-latest
strategy:
matrix:
compiler: ['clang', 'gcc']
steps:
- uses: actions/checkout@v2
# - name: Install Clang
# uses: KyleMayes/install-llvm-action@v1
# with:
# version: "13.0"
# directory: ${{ runner.temp }}/llvm
- name: Install Clang
run: |
sudo apt update
sudo apt install clang-18
- name: Install GCC
run: |
sudo apt update
sudo apt install gcc
# - name: Install GCC
# uses: egor-tensin/setup-gcc@v1
# with:
# version: latest
# platform: x64
- name: Build And Test
# run: ./scripts/build_and_test.sh ${{ matrix.compiler }}
run: |
make -f ./scripts/generator.mak config=release
make -f ./scripts/tests.mak compiler=${{ matrix.compiler }} config=release