Merge pull request #156 from NicEastvillage/fix-col-red-relevance #467
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: Build Windows (Cross) | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
types: [synchronize, opened, reopened, ready_for_review] | |
workflow_dispatch: | |
concurrency: | |
group: build-Win-${{ github.head_ref }} | |
cancel-in-progress: true | |
jobs: | |
build: | |
if: github.event.pull_request.draft == false | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install Packages | |
run: | | |
sudo apt-get update | |
sudo apt-get install flex | |
sudo apt-get install mingw-w64-x86-64-dev mingw-w64-tools g++-mingw-w64-x86-64 wine wine-binfmt | |
wget https://ftp.gnu.org/gnu/bison/bison-3.7.6.tar.gz | |
tar xvfz bison-3.7.6.tar.gz | |
cd bison-3.7.6 | |
./configure | |
make | |
sudo make install | |
- name: Build | |
uses: lukka/[email protected] | |
with: | |
cmakeListsOrSettingsJson: CMakeListsTxtAdvanced | |
cmakeAppendedArgs: >- | |
-DCMAKE_TOOLCHAIN_FILE=${{runner.workspace}}/verifypn/toolchain-x86_64-w64-mingw32.cmake | |
-DVERIFYPN_Static=ON | |
-DVERIFYPN_MC_Simplification=OFF | |
cmakeBuildType: Release | |
cmakeGenerator: UnixMakefiles | |
buildDirectory: '${{runner.workspace}}/build' | |
- name: Upload artifacts | |
uses: actions/upload-artifact@v2 | |
with: | |
name: verifypn-win64 | |
path: '${{runner.workspace}}/build/verifypn/bin/verifypn-win64.exe' |