From 5a8c1b2b37bf39476725c0b781d55713b9bfa7d7 Mon Sep 17 00:00:00 2001 From: Magnus Larsen Date: Fri, 3 Jan 2025 21:30:37 -0800 Subject: [PATCH] CI: Don't ship ENGLISH.DAT and GERMAN.DAT --- .github/workflows/compilation.yml | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/.github/workflows/compilation.yml b/.github/workflows/compilation.yml index a2215f041..28fda873b 100644 --- a/.github/workflows/compilation.yml +++ b/.github/workflows/compilation.yml @@ -74,7 +74,10 @@ jobs: key: omf2097-assets.zip - name: Extract omf 2097 assets - run: unzip -j omf2097-assets.zip -d build-test/resources + shell: bash + run: | + unzip -j omf2097-assets.zip -d build-test/resources + rm -f build-test/resources/{ENGLISH.DAT,GERMAN.DAT} - name: Install pytest requirements run: | @@ -147,10 +150,10 @@ jobs: key: omf2097-assets.zip - name: Extract omf 2097 assets + shell: bash run: | - Expand-Archive omf2097-assets.zip -PassThru - mkdir install/openomf/resources - Move-Item -Path omf2097-assets/OMF2097/* -Destination install/openomf/resources/ -Force -PassThru + unzip -j omf2097-assets.zip -d install/openomf/resources + rm -f install/openomf/resources/{ENGLISH.DAT,GERMAN.DAT} - name: Install openomf run: cmake --install build-msvc --config Release --prefix install @@ -220,7 +223,9 @@ jobs: key: omf2097-assets.zip - name: Extract omf 2097 assets - run: unzip -j omf2097-assets.zip -d build-release/release/usr/share/games/openomf + run: | + unzip -j omf2097-assets.zip -d build-release/release/usr/share/games/openomf + rm -f build-release/release/usr/share/games/openomf/{ENGLISH.DAT,GERMAN.DAT} - name: Generate TGZ package run: tar cvfz ${GITHUB_WORKSPACE}/openomf_${{ env.OPENOMF_VERSION }}-${{ steps.slug.outputs.sha8 }}_linux_amd64.tar.gz -C build-release/release/ . @@ -295,7 +300,10 @@ jobs: key: omf2097-assets.zip - name: Extract omf 2097 assets - run: unzip -j omf2097-assets.zip -d build-release/release/usr/share/games/openomf + shell: bash + run: | + unzip -j omf2097-assets.zip -d build-release/release/usr/share/games/openomf + rm -f build-release/release/usr/share/games/openomf/{ENGLISH.DAT,GERMAN.DAT} - name: Get short SHA id: slug