-
Notifications
You must be signed in to change notification settings - Fork 21
86 lines (67 loc) · 1.71 KB
/
cui.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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
name: CUI
on:
push:
branches: [release]
paths:
- 'src/**/*.cpp'
- 'src/**/*.h'
pull_request:
types: [review_requested, ready_for_review]
paths:
- 'src/**/*.cpp'
- 'src/**/*.h'
jobs:
cygwin-gcc:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- name: Set up Cygwin
uses: cygwin/cygwin-install-action@master
with:
platform: x86_64
packages: make gcc-g++
# Build
- name: Build with cygwin-g++
run: cd src; make -j build ARCH=x86-64
# Archive
- name: Archive
uses: actions/upload-artifact@v3
with:
name: sanmill_cygwin-g++.exe
path: src/sanmill.exe
linux-gcc:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Export environment valuables
run: export
- name: Print g++ version
run: g++ -v
- name: Create version
run: git fetch --tags; git tag; git log -n1; bash -x ./version.sh
# Build
- name: Build with linux-g++
run: cd src; make -j build ARCH=x86-64
# Archive
- name: Archive
uses: actions/upload-artifact@v3
with:
name: sanmill_linux-g++
path: src/sanmill
darwin-gcc:
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
- name: Export environment valuables
run: export
- name: Print g++ version
run: g++ -v
# Build
- name: Build with darwin-g++
run: cd src; make -j build ARCH=x86-64
# Archive
- name: Archive
uses: actions/upload-artifact@v3
with:
name: sanmill_darwin-g++
path: src/sanmill