Update main.cpp #85
Workflow file for this run
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 Compile) | |
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 depends | |
run: | | |
sudo apt-get update | |
sudo apt-get install flex bison mingw-w64-x86-64-dev mingw-w64-tools g++-mingw-w64-x86-64 wine wine-binfmt | |
- name: Prebuild | |
run: | | |
mkdir build && cd build | |
cmake ../ -DCMAKE_TOOLCHAIN_FILE=../toolchain-x86_64-w64-mingw32.cmake -DCMAKE_BUILD_TYPE=Prebuild | |
make | |
- name: Build | |
run: | | |
export PREFIX="$(pwd)/EXT" | |
cd build | |
cmake ../ -DCMAKE_TOOLCHAIN_FILE=../toolchain-x86_64-w64-mingw32.cmake -DCMAKE_BUILD_TYPE=Release | |
CPATH=$PREFIX/include make | |
- name: Upload artifacts | |
uses: actions/upload-artifact@v2 | |
with: | |
name: verifytapn-win64 | |
path: '${{runner.workspace}}/verifytapn/build/verifytapn/bin/verifytapn-win64.exe' |