diff --git a/.github/workflows/linux-build.yml b/.github/workflows/linux-build.yml index 781fc8e96..b6116e8fd 100644 --- a/.github/workflows/linux-build.yml +++ b/.github/workflows/linux-build.yml @@ -18,6 +18,13 @@ jobs: - name: Bundle libs run: ./scripts/bundle-libs-linux.sh + - name: Test executable + run: | + ./dist/dunedynasty | grep "data directory" + + - name: Tar files + run: tar -cvf dist.tar dist + - name: Delete Old Artifacts uses: actions/github-script@v6 id: artifact @@ -42,4 +49,4 @@ jobs: uses: actions/upload-artifact@v3 with: name: linux-build - path: dist + path: dist.tar diff --git a/.github/workflows/macos-arm64-build.yml b/.github/workflows/macos-arm64-build.yml index 5708521a7..a613cb5dd 100644 --- a/.github/workflows/macos-arm64-build.yml +++ b/.github/workflows/macos-arm64-build.yml @@ -26,6 +26,9 @@ jobs: - name: Bundle libs run: ./scripts/bundle-libs-macos.sh + - name: Tar files + run: tar -cvf dist.tar dist + - name: Delete Old Artifacts uses: actions/github-script@v6 id: artifact @@ -50,4 +53,4 @@ jobs: uses: actions/upload-artifact@v3 with: name: macos-arm64-build - path: dist + path: dist.tar diff --git a/.github/workflows/macos-intel-build.yml b/.github/workflows/macos-x86-64-build.yml similarity index 74% rename from .github/workflows/macos-intel-build.yml rename to .github/workflows/macos-x86-64-build.yml index 4db34b96d..a19085862 100644 --- a/.github/workflows/macos-intel-build.yml +++ b/.github/workflows/macos-x86-64-build.yml @@ -1,4 +1,4 @@ -name: macOS Intel Build +name: macOS X86-64 Build on: [push, pull_request] jobs: @@ -18,6 +18,14 @@ jobs: - name: Bundle libs run: ./scripts/bundle-libs-macos.sh + - name: Test executable + run: | + brew uninstall allegro fluid-synth mad enet + ./dist/dunedynasty | grep "data directory" + + - name: Tar files + run: tar -cvf dist.tar dist + - name: Delete Old Artifacts uses: actions/github-script@v6 id: artifact @@ -29,7 +37,7 @@ jobs: }) res.data.artifacts - .filter(({ name }) => name === 'macos-intel-build') + .filter(({ name }) => name === 'macos-x86-64-build') .forEach(({ id }) => { github.rest.actions.deleteArtifact({ owner: context.repo.owner, @@ -41,5 +49,5 @@ jobs: - name: Upload Artifact uses: actions/upload-artifact@v3 with: - name: macos-intel-build - path: dist + name: macos-x86-64-build + path: dist.tar