-
Notifications
You must be signed in to change notification settings - Fork 17
52 lines (49 loc) · 1.02 KB
/
c-cpp.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
name: C/C++ CI
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
jobs:
linux-build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Compiler version
run: gcc --version
- name: make tests
run: make tests
- name: Test C
run: ./test_c
- name: Test C++
run: ./test_cpp
- uses: actions/upload-artifact@v3
name: upload binaries
with:
name: linux-binaries
path: |
*.a
*.so
windows-build:
runs-on: windows-latest
if: false
steps:
- uses: actions/checkout@v3
- uses: egor-tensin/setup-mingw@v2
with:
platform: x64
- name: Compiler version
run: gcc --version
- name: make tests
run: make tests
- name: Test C
run: test_c.exe
- name: Test C++
run: test_cpp.exe
- uses: actions/upload-artifact@v3
name: upload binaries
with:
name: windows-binaries.7z
path: |
*.a
*.dll