-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (37 loc) · 966 Bytes
/
c-cpp.yml
File metadata and controls
39 lines (37 loc) · 966 Bytes
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
name: C/C++ CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build_linux:
name: build on Linux
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Premake
run: |
chmod +x ./GenerateProject.sh
chmod +x ./premake/premake5.out
./GenerateProject.sh
- name: Build with make
run: |
make config=debug
make config=release
build_windows:
name: build on Windows
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
# We have to make these ourselves, because the windows vm still runs a linux shell (which doesn't make sub-directories automatically without the -p parameter)
- name: make build folders
run: |
mkdir bin/
mkdir bin-int/
- name: Premake
run: .\premake\premake5.exe gmake2
- name: Build with make
run: |
make config=debug
make config=release