-
Notifications
You must be signed in to change notification settings - Fork 2
43 lines (38 loc) · 1.22 KB
/
build-win.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
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}}/unfoldTACPN/toolchain-x86_64-w64-mingw32.cmake
-DUNFOLDTACPN_TEST=OFF
cmakeBuildType: Release
cmakeGenerator: UnixMakefiles
buildDirectory: '${{runner.workspace}}/build'