Merge pull request #1023 from lemur73/master #272
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |