-
Notifications
You must be signed in to change notification settings - Fork 6
executable file
·47 lines (42 loc) · 1.33 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
name: Main Build
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
windows:
runs-on: windows-latest
steps:
- name: Checkout repo
uses: actions/checkout@v2
- name: Checkout submodules
uses: snickerbockers/submodules-init@v4
- name: Dependencies
run: |
vcpkg update
vcpkg install openssl freetype --triplet x64-windows
- name: configure twice
run: |
cmake -DCMAKE_GENERATOR_PLATFORM=x64 -DCMAKE_TOOLCHAIN_FILE=C://vcpkg/scripts/buildsystems/vcpkg.cmake .
cmake -DCMAKE_GENERATOR_PLATFORM=x64 -DCMAKE_TOOLCHAIN_FILE=C://vcpkg/scripts/buildsystems/vcpkg.cmake .
- name: make
run: cmake --build . -- /p:CL_MPcount=2
linux:
runs-on: ubuntu-latest
steps:
- name: Dependencies
run: |
sudo apt-get update
sudo apt-get install libx11-dev xorg-dev libgl1-mesa-dev libdw-dev
- uses: actions/checkout@v2
- name: Checkout repository and submodules
uses: actions/checkout@v2
with:
submodules: recursive
- name: configure twice
run: |
sudo cmake . -DCMAKE_CXX_COMPILER=g++-9 -DCMAKE_C_COMPILER=gcc-9
sudo cmake . -DCMAKE_CXX_COMPILER=g++-9 -DCMAKE_C_COMPILER=gcc-9
- name: make
run: sudo cmake --build . -- -j 2