|
|
|
@ -5,6 +5,8 @@ on:
|
|
|
|
|
inputs:
|
|
|
|
|
dfhack_ref:
|
|
|
|
|
type: string
|
|
|
|
|
scripts_ref:
|
|
|
|
|
type: string
|
|
|
|
|
structures_ref:
|
|
|
|
|
type: string
|
|
|
|
|
artifact-name:
|
|
|
|
@ -21,6 +23,12 @@ on:
|
|
|
|
|
common-files:
|
|
|
|
|
type: boolean
|
|
|
|
|
default: true
|
|
|
|
|
docs:
|
|
|
|
|
type: boolean
|
|
|
|
|
default: false
|
|
|
|
|
stonesense:
|
|
|
|
|
type: boolean
|
|
|
|
|
default: false
|
|
|
|
|
launchdf:
|
|
|
|
|
type: boolean
|
|
|
|
|
default: false
|
|
|
|
@ -40,6 +48,13 @@ jobs:
|
|
|
|
|
ref: ${{ inputs.dfhack_ref }}
|
|
|
|
|
submodules: true
|
|
|
|
|
fetch-depth: 0
|
|
|
|
|
- name: Clone scripts
|
|
|
|
|
if: inputs.scripts_ref
|
|
|
|
|
uses: actions/checkout@v3
|
|
|
|
|
with:
|
|
|
|
|
repository: 'DFHack/scripts'
|
|
|
|
|
ref: ${{ inputs.scripts_ref }}
|
|
|
|
|
path: scripts
|
|
|
|
|
- name: Clone structures
|
|
|
|
|
if: inputs.structures_ref
|
|
|
|
|
uses: actions/checkout@v3
|
|
|
|
@ -65,7 +80,7 @@ jobs:
|
|
|
|
|
win-msvc
|
|
|
|
|
- name: Cross-compile
|
|
|
|
|
env:
|
|
|
|
|
CMAKE_EXTRA_ARGS: '-DBUILD_STONESENSE:BOOL=1 -DBUILD_DOCS:BOOL=${{ inputs.common-files }} -DINSTALL_DATA_FILES:BOOL=${{ inputs.common-files }} -DINSTALL_SCRIPTS:BOOL=${{ inputs.common-files }} -DBUILD_DFLAUNCH:BOOL=${{ inputs.launchdf }}'
|
|
|
|
|
CMAKE_EXTRA_ARGS: '-DBUILD_STONESENSE:BOOL=${{ inputs.stonesense }} -DBUILD_DOCS:BOOL=${{ inputs.docs }} -DINSTALL_DATA_FILES:BOOL=${{ inputs.common-files }} -DINSTALL_SCRIPTS:BOOL=${{ inputs.common-files }} -DBUILD_DFLAUNCH:BOOL=${{ inputs.launchdf }}'
|
|
|
|
|
run: |
|
|
|
|
|
cd build
|
|
|
|
|
bash -x build-win64-from-linux.sh
|
|
|
|
|