-
Notifications
You must be signed in to change notification settings - Fork 0
96 lines (90 loc) · 2.23 KB
/
core-lib.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
name: Core Library CI
on:
schedule:
- cron: '30 9 * * 1'
push:
branches: [ "the-great-refactor" ]
workflow_dispatch:
workflow_call:
pull_request:
types: [ "closed" ]
branches: [ "main" ]
jobs:
install-gcc13:
name: Install GCC-13
runs-on: windows-2022
steps:
- uses: actions/checkout@v4
- name: Install compiler
id: install_cc
uses: rlalik/setup-cpp-compiler@master
with:
compiler: gcc-13
build-core-lib-debug:
name: Build Core Library (DEBUG)
runs-on: windows-2022
needs: install-gcc13
steps:
- uses: actions/checkout@v4
- name: make debug
run: make debug
env:
CC: ${{ steps.install_cc.outputs.cc }}
CXX: ${{ steps.install_cc.outputs.cxx }}
- uses: actions/upload-artifact@master
with:
name: lib-debug
path: output
build-core-lib-release:
name: Build Core Library (RELEASE)
runs-on: windows-2022
needs: install-gcc13
steps:
- uses: actions/checkout@v4
- name: make release
run: make release
env:
CC: ${{ steps.install_cc.outputs.cc }}
CXX: ${{ steps.install_cc.outputs.cxx }}
- uses: actions/upload-artifact@master
with:
name: lib-release
path: output
build-tests-debug:
name: Build Tests (DEBUG)
runs-on: windows-2022
needs: [build-core-lib-debug]
steps:
- uses: actions/checkout@v4
- uses: actions/download-artifact@master
with:
name: lib-debug
path: output
- name: make tests
run: |
cd tests
make debug
cd ..
- uses: actions/upload-artifact@master
with:
name: tests-debug
path: tests/output/debug
build-tests-release:
name: Build Tests (RELEASE)
runs-on: windows-2022
needs: [build-core-lib-release]
steps:
- uses: actions/checkout@v4
- uses: actions/download-artifact@master
with:
name: lib-release
path: output
- name: make tests
run: |
cd tests
make release
cd ..
- uses: actions/upload-artifact@master
with:
name: tests-release
path: tests/output/release