-
Notifications
You must be signed in to change notification settings - Fork 22
64 lines (50 loc) · 1.38 KB
/
build_test_only.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
name: Build Test on Pull-Request
on:
pull_request:
branches: [ master ]
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- name: mkdir
run: mkdir ci
- name: cmake
run: cmake ../src
working-directory: ./ci
- name: build
run: cmake --build . --config Release
working-directory: ./ci
- name: make_zip
run: |
cmake -E copy ./main_cui/Release/Tsugaru_CUI.exe .
cmake -E copy ../readme.md .
cmake -E copy ../command.md .
cmake -E tar cvf windows_binary_latest.zip --format=zip Tsugaru_CUI.exe readme.md command.md
working-directory: ./ci
build-linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: mkdir
run: mkdir ci_ubuntu
- name: install-OpenGL
run: sudo apt-get install libglu1-mesa-dev mesa-common-dev
- name: cmake
run: cmake ../src -DCMAKE_BUILD_TYPE=Release
working-directory: ./ci_ubuntu
- name: build
run: cmake --build .
working-directory: ./ci_ubuntu
build-macos:
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- name: mkdir
run: mkdir ci_macos
- name: cmake
run: cmake ../src -DCMAKE_BUILD_TYPE=Release
working-directory: ./ci_macos
- name: build
run: cmake --build .
working-directory: ./ci_macos