|
|
@ -20,6 +20,9 @@ on:
|
|
|
|
cache-readonly:
|
|
|
|
cache-readonly:
|
|
|
|
type: boolean
|
|
|
|
type: boolean
|
|
|
|
default: false
|
|
|
|
default: false
|
|
|
|
|
|
|
|
platform-files:
|
|
|
|
|
|
|
|
type: boolean
|
|
|
|
|
|
|
|
default: true
|
|
|
|
common-files:
|
|
|
|
common-files:
|
|
|
|
type: boolean
|
|
|
|
type: boolean
|
|
|
|
default: true
|
|
|
|
default: true
|
|
|
@ -32,6 +35,9 @@ on:
|
|
|
|
tests:
|
|
|
|
tests:
|
|
|
|
type: boolean
|
|
|
|
type: boolean
|
|
|
|
default: false
|
|
|
|
default: false
|
|
|
|
|
|
|
|
xml-dump-type-sizes:
|
|
|
|
|
|
|
|
type: boolean
|
|
|
|
|
|
|
|
default: false
|
|
|
|
launchdf:
|
|
|
|
launchdf:
|
|
|
|
type: boolean
|
|
|
|
type: boolean
|
|
|
|
default: false
|
|
|
|
default: false
|
|
|
@ -75,6 +81,7 @@ jobs:
|
|
|
|
ssh-key: ${{ secrets.DFHACK_3RDPARTY_TOKEN }}
|
|
|
|
ssh-key: ${{ secrets.DFHACK_3RDPARTY_TOKEN }}
|
|
|
|
path: depends/steam
|
|
|
|
path: depends/steam
|
|
|
|
- name: Fetch ccache
|
|
|
|
- name: Fetch ccache
|
|
|
|
|
|
|
|
if: inputs.platform-files
|
|
|
|
uses: actions/cache/restore@v3
|
|
|
|
uses: actions/cache/restore@v3
|
|
|
|
with:
|
|
|
|
with:
|
|
|
|
path: build/win64-cross/ccache
|
|
|
|
path: build/win64-cross/ccache
|
|
|
@ -84,7 +91,7 @@ jobs:
|
|
|
|
win-msvc
|
|
|
|
win-msvc
|
|
|
|
- name: Cross-compile
|
|
|
|
- name: Cross-compile
|
|
|
|
env:
|
|
|
|
env:
|
|
|
|
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 }} -DBUILD_TESTS:BOOL=${{ inputs.tests }}'
|
|
|
|
CMAKE_EXTRA_ARGS: '-DBUILD_LIBRARY=${{ inputs.platform-files }} -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 }} -DBUILD_TESTS:BOOL=${{ inputs.tests }} -DBUILD_XMLDUMP:BOOL=${{ inputs.xml-dump-type-sizes }}'
|
|
|
|
run: |
|
|
|
|
run: |
|
|
|
|
cd build
|
|
|
|
cd build
|
|
|
|
bash -x build-win64-from-linux.sh
|
|
|
|
bash -x build-win64-from-linux.sh
|
|
|
@ -95,7 +102,7 @@ jobs:
|
|
|
|
ccache -d win64-cross/ccache --cleanup
|
|
|
|
ccache -d win64-cross/ccache --cleanup
|
|
|
|
ccache -d win64-cross/ccache --show-stats --verbose
|
|
|
|
ccache -d win64-cross/ccache --show-stats --verbose
|
|
|
|
- name: Save ccache
|
|
|
|
- name: Save ccache
|
|
|
|
if: '!inputs.cache-readonly'
|
|
|
|
if: inputs.platform-files && !inputs.cache-readonly
|
|
|
|
uses: actions/cache/save@v3
|
|
|
|
uses: actions/cache/save@v3
|
|
|
|
with:
|
|
|
|
with:
|
|
|
|
path: build/win64-cross/ccache
|
|
|
|
path: build/win64-cross/ccache
|
|
|
|