forked from tardis-sn/tardis
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into mc-refactor
- Loading branch information
Showing
23 changed files
with
413 additions
and
298 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,97 +1,96 @@ | ||
name: 'Setup LFS' | ||
description: 'Pull LFS repositories and caches them' | ||
name: "Setup LFS" | ||
description: "Pull LFS repositories and caches them" | ||
|
||
inputs: | ||
refdata-repo: | ||
description: "tardis refdata repository" | ||
required: false | ||
default: 'tardis-sn/tardis-refdata' | ||
regression-data-repo: | ||
default: "tardis-sn/tardis-refdata" | ||
regression-data-repo: | ||
description: "tardis regression data repository" | ||
required: false | ||
default: 'tardis-sn/tardis-regression-data' | ||
default: "tardis-sn/tardis-regression-data" | ||
|
||
runs: | ||
using: "composite" | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Clone Refdata Repo | ||
uses: actions/checkout@v4 | ||
with: | ||
repository: ${{ inputs.refdata-repo }} | ||
path: tardis-refdata | ||
lfs: false | ||
using: "composite" | ||
steps: | ||
- name: Clone Refdata Repo | ||
uses: actions/checkout@v4 | ||
with: | ||
repository: ${{ inputs.refdata-repo }} | ||
path: tardis-refdata | ||
lfs: false | ||
|
||
- name: Create LFS file list | ||
run: git lfs ls-files -l | cut -d' ' -f1 | sort > .lfs-assets-id | ||
working-directory: tardis-refdata | ||
shell: bash | ||
- name: Create LFS file list | ||
run: git lfs ls-files -l | cut -d' ' -f1 | sort > .lfs-assets-id | ||
working-directory: tardis-refdata | ||
shell: bash | ||
|
||
- name: Restore LFS cache | ||
uses: actions/cache/restore@v3 | ||
id: lfs-cache-refdata | ||
with: | ||
path: tardis-refdata/.git/lfs | ||
key: ${{ runner.os }}-lfs-${{ hashFiles('tardis-refdata/.lfs-assets-id') }}-v1 | ||
- name: Restore LFS cache | ||
uses: actions/cache/restore@v4 | ||
id: lfs-cache-refdata | ||
with: | ||
path: tardis-refdata/.git/lfs | ||
key: ${{ runner.os }}-lfs-${{ hashFiles('tardis-refdata/.lfs-assets-id') }}-v1 | ||
|
||
- name: Git LFS Pull | ||
run: git lfs pull | ||
working-directory: tardis-refdata | ||
if: steps.lfs-cache-refdata.outputs.cache-hit != 'true' | ||
shell: bash | ||
|
||
- name: Git LFS Checkout | ||
run: git lfs checkout | ||
working-directory: tardis-refdata | ||
if: steps.lfs-cache-refdata.outputs.cache-hit == 'true' | ||
shell: bash | ||
|
||
- name: Save LFS cache if not found | ||
# uses fake ternary | ||
# for reference: https://github.com/orgs/community/discussions/26738#discussioncomment-3253176 | ||
if: ${{ steps.lfs-cache-refdata.outputs.cache-hit != 'true' && always() || false }} | ||
uses: actions/cache/save@v3 | ||
id: lfs-cache-refdata-save | ||
with: | ||
path: tardis-refdata/.git/lfs | ||
key: ${{ runner.os }}-lfs-${{ hashFiles('tardis-refdata/.lfs-assets-id') }}-v1 | ||
|
||
- name: Clone tardis-sn/tardis-regression-data | ||
uses: actions/checkout@v4 | ||
with: | ||
repository: ${{ inputs.regression-data-repo }} | ||
path: tardis-regression-data | ||
|
||
- name: Create LFS file list | ||
run: git lfs ls-files -l | cut -d' ' -f1 | sort > .lfs-assets-id | ||
working-directory: tardis-regression-data | ||
shell: bash | ||
- name: Git LFS Pull | ||
run: git lfs pull | ||
working-directory: tardis-refdata | ||
if: steps.lfs-cache-refdata.outputs.cache-hit != 'true' | ||
shell: bash | ||
|
||
- name: Restore LFS cache | ||
uses: actions/cache/restore@v3 | ||
id: lfs-cache-regression-data | ||
with: | ||
path: tardis-regression-data/.git/lfs | ||
key: ${{ runner.os }}-lfs-${{ hashFiles('tardis-regression-data/.lfs-assets-id') }}-v1 | ||
|
||
- name: Git LFS Pull | ||
run: git lfs pull | ||
working-directory: tardis-regression-data | ||
if: steps.lfs-cache-regression-data.outputs.cache-hit != 'true' | ||
shell: bash | ||
|
||
- name: Git LFS Checkout | ||
run: git lfs checkout | ||
working-directory: tardis-regression-data | ||
if: steps.lfs-cache-regression-data.outputs.cache-hit == 'true' | ||
shell: bash | ||
|
||
- name: Save LFS cache if not found | ||
# uses fake ternary | ||
# for reference: https://github.com/orgs/community/discussions/26738#discussioncomment-3253176 | ||
if: ${{ steps.lfs-cache-regression-data.outputs.cache-hit != 'true' && always() || false }} | ||
uses: actions/cache/save@v3 | ||
id: lfs-cache-regression-data-save | ||
with: | ||
path: tardis-regression-data/.git/lfs | ||
key: ${{ runner.os }}-lfs-${{ hashFiles('tardis-regression-data/.lfs-assets-id') }}-v1 | ||
- name: Git LFS Checkout | ||
run: git lfs checkout | ||
working-directory: tardis-refdata | ||
if: steps.lfs-cache-refdata.outputs.cache-hit == 'true' | ||
shell: bash | ||
|
||
- name: Save LFS cache if not found | ||
# uses fake ternary | ||
# for reference: https://github.com/orgs/community/discussions/26738#discussioncomment-3253176 | ||
if: ${{ steps.lfs-cache-refdata.outputs.cache-hit != 'true' && always() || false }} | ||
uses: actions/cache/save@v4 | ||
id: lfs-cache-refdata-save | ||
with: | ||
path: tardis-refdata/.git/lfs | ||
key: ${{ runner.os }}-lfs-${{ hashFiles('tardis-refdata/.lfs-assets-id') }}-v1 | ||
|
||
- name: Clone tardis-sn/tardis-regression-data | ||
uses: actions/checkout@v4 | ||
with: | ||
repository: ${{ inputs.regression-data-repo }} | ||
path: tardis-regression-data | ||
|
||
- name: Create LFS file list | ||
run: git lfs ls-files -l | cut -d' ' -f1 | sort > .lfs-assets-id | ||
working-directory: tardis-regression-data | ||
shell: bash | ||
|
||
- name: Restore LFS cache | ||
uses: actions/cache/restore@v4 | ||
id: lfs-cache-regression-data | ||
with: | ||
path: tardis-regression-data/.git/lfs | ||
key: ${{ runner.os }}-lfs-${{ hashFiles('tardis-regression-data/.lfs-assets-id') }}-v1 | ||
|
||
- name: Git LFS Pull | ||
run: git lfs pull | ||
working-directory: tardis-regression-data | ||
if: steps.lfs-cache-regression-data.outputs.cache-hit != 'true' | ||
shell: bash | ||
|
||
- name: Git LFS Checkout | ||
run: git lfs checkout | ||
working-directory: tardis-regression-data | ||
if: steps.lfs-cache-regression-data.outputs.cache-hit == 'true' | ||
shell: bash | ||
|
||
- name: Save LFS cache if not found | ||
# uses fake ternary | ||
# for reference: https://github.com/orgs/community/discussions/26738#discussioncomment-3253176 | ||
if: ${{ steps.lfs-cache-regression-data.outputs.cache-hit != 'true' && always() || false }} | ||
uses: actions/cache/save@v4 | ||
id: lfs-cache-regression-data-save | ||
with: | ||
path: tardis-regression-data/.git/lfs | ||
key: ${{ runner.os }}-lfs-${{ hashFiles('tardis-regression-data/.lfs-assets-id') }}-v1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.