Merge pull request #3640 from myk002/myk_workflow

make the workflows repository agnostic
develop
Myk 2023-08-05 23:41:10 -07:00 committed by GitHub
commit 57f4989b9d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 15 additions and 12 deletions

@ -74,7 +74,7 @@ jobs:
- name: Clone DFHack
uses: actions/checkout@v3
with:
repository: 'DFHack/dfhack'
repository: ${{ inputs.dfhack_ref && github.repository || 'DFHack/dfhack' }}
ref: ${{ inputs.dfhack_ref }}
submodules: true
fetch-depth: ${{ !inputs.platform-files && 1 || 0 }}
@ -82,14 +82,14 @@ jobs:
if: inputs.scripts_ref
uses: actions/checkout@v3
with:
repository: 'DFHack/scripts'
repository: ${{ inputs.scripts_ref && github.repository || 'DFHack/scripts' }}
ref: ${{ inputs.scripts_ref }}
path: scripts
- name: Clone structures
if: inputs.structures_ref
uses: actions/checkout@v3
with:
repository: 'DFHack/df-structures'
repository: ${{ inputs.structures_ref && github.repository || 'DFHack/df-structures' }}
ref: ${{ inputs.structures_ref }}
path: library/xml
- name: Fetch ccache

@ -57,7 +57,7 @@ jobs:
- name: Clone DFHack
uses: actions/checkout@v3
with:
repository: 'DFHack/dfhack'
repository: ${{ inputs.dfhack_ref && github.repository || 'DFHack/dfhack' }}
ref: ${{ inputs.dfhack_ref }}
submodules: true
fetch-depth: 0
@ -65,14 +65,14 @@ jobs:
if: inputs.scripts_ref
uses: actions/checkout@v3
with:
repository: 'DFHack/scripts'
repository: ${{ inputs.scripts_ref && github.repository || 'DFHack/scripts' }}
ref: ${{ inputs.scripts_ref }}
path: scripts
- name: Clone structures
if: inputs.structures_ref
uses: actions/checkout@v3
with:
repository: 'DFHack/df-structures'
repository: ${{ inputs.structures_ref && github.repository || 'DFHack/df-structures' }}
ref: ${{ inputs.structures_ref }}
path: library/xml
- name: Get 3rd party SDKs

@ -5,6 +5,8 @@ on: [push, pull_request]
jobs:
test:
uses: ./.github/workflows/test.yml
with:
dfhack_ref: ${{ github.ref }}
secrets: inherit
package:
@ -16,6 +18,7 @@ jobs:
docs:
uses: ./.github/workflows/build-linux.yml
with:
dfhack_ref: ${{ github.ref }}
platform-files: false
common-files: false
docs: true
@ -23,6 +26,8 @@ jobs:
lint:
uses: ./.github/workflows/lint.yml
with:
dfhack_ref: ${{ github.ref }}
secrets: inherit
check-pr:

@ -19,7 +19,7 @@ jobs:
- name: Clone DFHack
uses: actions/checkout@v3
with:
repository: 'DFHack/dfhack'
repository: ${{ inputs.dfhack_ref && github.repository || 'DFHack/dfhack' }}
ref: ${{ inputs.dfhack_ref }}
- name: Get scripts submodule ref
if: '!inputs.scripts_ref'
@ -28,7 +28,7 @@ jobs:
- name: Clone scripts
uses: actions/checkout@v3
with:
repository: 'DFHack/scripts'
repository: ${{ inputs.scripts_ref && github.repository || 'DFHack/scripts' }}
ref: ${{ inputs.scripts_ref || steps.scriptssubmoduleref.outputs.ref }}
path: scripts
- name: Check whitespace

@ -68,8 +68,6 @@ jobs:
runs-on: ubuntu-latest
concurrency: steam
steps:
- name: Get tag
run: echo "TAG=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
- name: Stage depot files
uses: actions/download-artifact@v3
- name: Steam deploy
@ -78,7 +76,7 @@ jobs:
username: ${{ secrets.STEAM_USERNAME }}
configVdf: ${{ secrets.STEAM_CONFIG_VDF}}
appId: 2346660
buildDescription: ${{ github.event.inputs && github.event.inputs.version || env.TAG }}
buildDescription: ${{ github.event.inputs && github.event.inputs.version || github.ref_name }}
rootPath: .
depot1Path: common-depot
depot2Path: win64-depot

@ -78,7 +78,7 @@ jobs:
- name: Clone DFHack
uses: actions/checkout@v3
with:
repository: 'DFHack/dfhack'
repository: ${{ inputs.dfhack_ref && github.repository || 'DFHack/dfhack' }}
ref: ${{ inputs.dfhack_ref }}
- name: Detect DF version
shell: bash