Skip to content

Commit 75b66e5

Browse files
Alexander KurbatovAlexander Kurbatov
Alexander Kurbatov
authored and
Alexander Kurbatov
committed
build: Add CI for ladder build
Signed-off-by: Alexander Kurbatov <[email protected]>
1 parent 0bd664a commit 75b66e5

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

.github/workflows/ladder.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Build for AIArena
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
paths:
8+
- 'src/**'
9+
- 'contrib/**'
10+
- 'CMakeLists.txt'
11+
pull_request:
12+
paths:
13+
- 'src/**'
14+
- 'contrib/**'
15+
- 'CMakeLists.txt'
16+
17+
env:
18+
BUILD_TYPE: Release
19+
BUILD_DIR: ${{github.workspace}}/build
20+
SC2_VERSION: 4.10.0
21+
22+
jobs:
23+
build:
24+
runs-on: ubuntu-18.04
25+
26+
steps:
27+
- uses: actions/checkout@v2
28+
with:
29+
submodules: recursive
30+
31+
- name: Configure
32+
run: cmake -B ${{env.BUILD_DIR}} -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DBUILD_FOR_LADDER=ON -DSC2_VERSION=${{env.SC2_VERSION}}
33+
34+
- name: Build
35+
run: cmake --build ${{env.BUILD_DIR}} --config ${{env.BUILD_TYPE}} --parallel 2

0 commit comments

Comments
 (0)