-
Notifications
You must be signed in to change notification settings - Fork 655
54 lines (41 loc) · 1.36 KB
/
build.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
name: CI Build
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build-debug:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- name: Install development headers
run: sudo apt install libsodium-dev
- name: Configure CMake
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=Debug -D CMAKE_CXX_FLAGS="-g -fmax-errors=1" -DBUILD_BLS_PYTHON_BINDINGS=false
- name: Build
run: cmake --build ${{github.workspace}}/build --config Debug
- name: Upload a Build Artifact
uses: actions/[email protected]
with:
name: Debug build
path: ${{github.workspace}}/build/chia_plot
build-release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- name: Install development headers
run: sudo apt install libsodium-dev
- name: Configure CMake
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=Release -D CMAKE_CXX_FLAGS="-O3 -fmax-errors=1" -DBUILD_BLS_PYTHON_BINDINGS=false
- name: Build
run: cmake --build ${{github.workspace}}/build --config Release
- name: Upload a Build Artifact
uses: actions/[email protected]
with:
name: Release build
path: ${{github.workspace}}/build/chia_plot