|
|
@ -67,15 +67,12 @@ jobs:
|
|
|
|
ref: ${{ inputs.dfhack_ref }}
|
|
|
|
ref: ${{ inputs.dfhack_ref }}
|
|
|
|
submodules: true
|
|
|
|
submodules: true
|
|
|
|
fetch-depth: ${{ !inputs.platform-files && 1 || 0 }}
|
|
|
|
fetch-depth: ${{ !inputs.platform-files && 1 || 0 }}
|
|
|
|
- name: Get scripts submodule ref
|
|
|
|
|
|
|
|
if: '!inputs.scripts_ref'
|
|
|
|
|
|
|
|
id: scriptssubmoduleref
|
|
|
|
|
|
|
|
run: echo ref=$(git submodule | fgrep scripts | cut -c2-41) >> $GITHUB_OUTPUT
|
|
|
|
|
|
|
|
- name: Clone scripts
|
|
|
|
- name: Clone scripts
|
|
|
|
|
|
|
|
if: inputs.scripts_ref
|
|
|
|
uses: actions/checkout@v3
|
|
|
|
uses: actions/checkout@v3
|
|
|
|
with:
|
|
|
|
with:
|
|
|
|
repository: 'DFHack/scripts'
|
|
|
|
repository: 'DFHack/scripts'
|
|
|
|
ref: ${{ inputs.scripts_ref || steps.scriptssubmoduleref.outputs.ref }}
|
|
|
|
ref: ${{ inputs.scripts_ref }}
|
|
|
|
path: scripts
|
|
|
|
path: scripts
|
|
|
|
- name: Fetch ccache
|
|
|
|
- name: Fetch ccache
|
|
|
|
if: inputs.platform-files
|
|
|
|
if: inputs.platform-files
|
|
|
|