|
|
@ -14,6 +14,9 @@ on:
|
|
|
|
cache-id:
|
|
|
|
cache-id:
|
|
|
|
type: string
|
|
|
|
type: string
|
|
|
|
default: ''
|
|
|
|
default: ''
|
|
|
|
|
|
|
|
cache-readonly:
|
|
|
|
|
|
|
|
type: boolean
|
|
|
|
|
|
|
|
default: false
|
|
|
|
common-files:
|
|
|
|
common-files:
|
|
|
|
type: boolean
|
|
|
|
type: boolean
|
|
|
|
default: true
|
|
|
|
default: true
|
|
|
@ -45,7 +48,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
|
|
|
|
uses: actions/cache@v3
|
|
|
|
uses: actions/cache/restore@v3
|
|
|
|
with:
|
|
|
|
with:
|
|
|
|
path: build/win64-cross/ccache
|
|
|
|
path: build/win64-cross/ccache
|
|
|
|
key: win-msvc-${{ inputs.cache-id }}-${{ github.sha }}
|
|
|
|
key: win-msvc-${{ inputs.cache-id }}-${{ github.sha }}
|
|
|
@ -60,9 +63,15 @@ jobs:
|
|
|
|
bash -x build-win64-from-linux.sh
|
|
|
|
bash -x build-win64-from-linux.sh
|
|
|
|
- name: Trim cache
|
|
|
|
- name: Trim cache
|
|
|
|
run: |
|
|
|
|
run: |
|
|
|
|
ccache -d win64-cross/ccache --max-size 50M
|
|
|
|
cd build
|
|
|
|
|
|
|
|
ccache -d win64-cross/ccache --max-size 200M
|
|
|
|
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
|
|
|
|
|
|
|
|
uses: actions/cache/save@v3
|
|
|
|
|
|
|
|
with:
|
|
|
|
|
|
|
|
path: build/win64-cross/ccache
|
|
|
|
|
|
|
|
key: win-msvc-${{ inputs.cache-id }}-${{ github.sha }}
|
|
|
|
- name: Format artifact name
|
|
|
|
- name: Format artifact name
|
|
|
|
if: inputs.append-date-and-hash
|
|
|
|
if: inputs.append-date-and-hash
|
|
|
|
id: artifactname
|
|
|
|
id: artifactname
|
|
|
|