@ -111,12 +111,22 @@ jobs:
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 }}
- name : Format artifact name
- name : Format artifact name
if : inputs.a ppend-date-and-hash
if : inputs.a rtifact-name
id : artifactname
id : artifactname
run : echo "name=${{ inputs.artifact-name }}-$(date +%Y%m%d)-$(git rev-parse --short HEAD)" >> "$GITHUB_OUTPUT"
run : |
if test "false" = "${{ inputs.append-date-and-hash }}"; then
echo name=${{ inputs.artifact-name }} >> $GITHUB_OUTPUT
else
echo name=${{ inputs.artifact-name }}-$(date +%Y%m%d)-$(git rev-parse --short HEAD) >> $GITHUB_OUTPUT
fi
- name : Prep artifact
if : inputs.artifact-name
run : |
cd build/win64-cross/output
tar cjf ../../../${{ steps.artifactname.outputs.name }}.tar.bz2 .
- name : Upload artifact
- name : Upload artifact
if : inputs.artifact-name
if : inputs.artifact-name
uses : actions/upload-artifact@v3
uses : actions/upload-artifact@v3
with:
with:
name : ${{ inputs.append-date-and-hash && steps.artifactname.outputs.name || inputs.artifact-name }}
name : ${{ steps.artifactname.outputs.name }}
path : build/win64-cross/output/*
path : ${{ steps.artifactname.outputs.name }}.tar.bz2