diff --git a/.github/workflows/linux-appimage-build.yml b/.github/workflows/linux-appimage-build.yml index 1f07e10c6..76098b6a7 100644 --- a/.github/workflows/linux-appimage-build.yml +++ b/.github/workflows/linux-appimage-build.yml @@ -32,13 +32,10 @@ jobs: if: steps.cache-deps.outputs.cache-hit != 'true' run: scripts/deps/build-ffmpeg-linux.sh "$HOME/deps" - - name: Initialize Build Tag - run: | - echo '#pragma once' > src/scmversion/tag.h - - name: Set Build Tag Asset if: github.ref == 'refs/heads/master' || github.ref == 'refs/heads/dev' run: | + echo '#pragma once' > src/scmversion/tag.h echo '#define SCM_RELEASE_ASSET "DuckStation-x64.AppImage"' >> src/scmversion/tag.h echo '#define SCM_RELEASE_TAGS {"latest", "preview"}' >> src/scmversion/tag.h diff --git a/.github/workflows/linux-cross-appimage-build.yml b/.github/workflows/linux-cross-appimage-build.yml index f1ceb2d33..18ed865a2 100644 --- a/.github/workflows/linux-cross-appimage-build.yml +++ b/.github/workflows/linux-cross-appimage-build.yml @@ -57,13 +57,10 @@ jobs: echo 'set(CMAKE_MODULE_LINKER_FLAGS_INIT "-fuse-ld=lld")' >> "$HOME/toolchain.cmake" echo 'set(CMAKE_SHARED_LINKER_FLAGS_INIT "-fuse-ld=lld")' >> "$HOME/toolchain.cmake" - - name: Initialize Build Tag - run: | - echo '#pragma once' > src/scmversion/tag.h - - name: Set Build Tag Asset if: github.ref == 'refs/heads/master' || github.ref == 'refs/heads/dev' run: | + echo '#pragma once' > src/scmversion/tag.h echo '#define SCM_RELEASE_ASSET "DuckStation-${{ matrix.arch }}.AppImage"' >> src/scmversion/tag.h echo '#define SCM_RELEASE_TAGS {"latest", "preview"}' >> src/scmversion/tag.h diff --git a/.github/workflows/linux-flatpak-build.yml b/.github/workflows/linux-flatpak-build.yml index 812054d96..b377f443f 100644 --- a/.github/workflows/linux-flatpak-build.yml +++ b/.github/workflows/linux-flatpak-build.yml @@ -37,13 +37,10 @@ jobs: shell: bash run: git config --global --add safe.directory "*" - - name: Initialize Build Tag - run: | - echo '#pragma once' > src/scmversion/tag.h - - name: Set Build Tags if: github.ref == 'refs/heads/master' || github.ref == 'refs/heads/dev' run: | + echo '#pragma once' > src/scmversion/tag.h echo '#define SCM_RELEASE_TAGS {"latest", "preview"}' >> src/scmversion/tag.h - name: Tag as Preview Release diff --git a/.github/workflows/macos-build.yml b/.github/workflows/macos-build.yml index c76448f14..81d578ef1 100644 --- a/.github/workflows/macos-build.yml +++ b/.github/workflows/macos-build.yml @@ -33,13 +33,10 @@ jobs: if: steps.cache-deps-mac.outputs.cache-hit != 'true' run: scripts/deps/build-dependencies-mac.sh "$HOME/deps" - - name: Initialize Build Tag - run: | - echo '#pragma once' > src/scmversion/tag.h - - name: Set Build Tags if: github.ref == 'refs/heads/master' || github.ref == 'refs/heads/dev' run: | + echo '#pragma once' > src/scmversion/tag.h echo '#define SCM_RELEASE_ASSET "duckstation-mac-release.zip"' >> src/scmversion/tag.h echo '#define SCM_RELEASE_TAGS {"latest", "preview"}' >> src/scmversion/tag.h diff --git a/.github/workflows/windows-build.yml b/.github/workflows/windows-build.yml index 939f8556d..c71e2c4af 100644 --- a/.github/workflows/windows-build.yml +++ b/.github/workflows/windows-build.yml @@ -35,15 +35,11 @@ jobs: DEBUG: 0 run: scripts/deps/build-dependencies-windows-arm64.bat - - name: Initialize Build Tag - shell: cmd - run: | - echo #pragma once > src/scmversion/tag.h - - name: Set Build Tag Asset if: github.ref == 'refs/heads/master' || github.ref == 'refs/heads/dev' shell: cmd run: | + echo #pragma once > src/scmversion/tag.h echo #define SCM_RELEASE_ASSET "duckstation-windows-x64-release.zip" >> src/scmversion/tag.h echo #define SCM_RELEASE_TAGS {"latest", "preview"} >> src/scmversion/tag.h @@ -133,15 +129,11 @@ jobs: DEBUG: 0 run: scripts/deps/build-dependencies-windows-arm64.bat - - name: Initialize Build Tag - shell: cmd - run: | - echo #pragma once > src/scmversion/tag.h - - name: Set Build Tag Asset if: github.ref == 'refs/heads/master' || github.ref == 'refs/heads/dev' shell: cmd run: | + echo #pragma once > src/scmversion/tag.h echo #define SCM_RELEASE_ASSET "duckstation-windows-x64-sse2-release.zip" >> src/scmversion/tag.h echo #define SCM_RELEASE_TAGS {"latest", "preview"} >> src/scmversion/tag.h @@ -232,15 +224,11 @@ jobs: DEBUG: 0 run: scripts/deps/build-dependencies-windows-arm64.bat - - name: Initialize Build Tag - shell: cmd - run: | - echo #pragma once > src/scmversion/tag.h - - name: Set Build Tag Asset if: github.ref == 'refs/heads/master' || github.ref == 'refs/heads/dev' shell: cmd run: | + echo #pragma once > src/scmversion/tag.h echo #define SCM_RELEASE_ASSET "duckstation-windows-arm64-release.zip" >> src/scmversion/tag.h echo #define SCM_RELEASE_TAGS {"latest", "preview"} >> src/scmversion/tag.h