1
name: Build Windows (Cross)
3
# Controls when the action will run.
5
# Triggers the workflow on push or pull request events but only for the master branch
11
# Allows you to run this workflow manually from the Actions tab
14
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
16
# This workflow contains a single job called "build"
18
# The type of runner that the job will run on
19
runs-on: ubuntu-latest
21
# Steps represent a sequence of tasks that will be executed as part of the job
23
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
24
- uses: actions/checkout@v2
26
# Runs a single command using the runners shell
27
- name: Install Packages
29
sudo apt-get install build-essential cmake flex bison git make
30
sudo apt-get install mingw-w64-x86-64-dev mingw-w64-tools g++-mingw-w64-x86-64 wine wine-binfmt
33
uses: lukka/run-cmake@v2.5
35
cmakeListsOrSettingsJson: CMakeListsTxtAdvanced
37
-DCMAKE_TOOLCHAIN_FILE=${{runner.workspace}}/verifypn/toolchain-x86_64-w64-mingw32.cmake
39
-DVERIFYPN_MC_Simplification=OFF
40
cmakeBuildType: Release
41
cmakeGenerator: UnixMakefiles
42
buildDirectory: '${{runner.workspace}}/build'
43
- name: Upload artifacts
44
uses: actions/upload-artifact@v2
46
name: verifytapn-win64.exe
47
path: '${{runner.workspace}}/build/bin/verifypn-win64.exe'