-
Notifications
You must be signed in to change notification settings - Fork 11
31 lines (29 loc) · 789 Bytes
/
ccpp.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
name: C/C++ CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build-ubuntu:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
submodules: 'true'
- name: configure
run: cd src && mkdir build && cd build && cmake ..
- name: build
run: cd src/build && make -j
build-windows:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
submodules: 'true'
- name: install mingw
run: sudo apt update && sudo apt install -y mingw-w64
- name: configure
run: cd src && mkdir build && cd build && CC=x86_64-w64-mingw32-gcc CXX=x86_64-w64-mingw32-g++ cmake -DCMAKE_SYSTEM_NAME=Windows ..
- name: build
run: cd src/build && make -j