From b2325486818f7c170247d28399fef857a42ee36d Mon Sep 17 00:00:00 2001 From: Kamay Xutax Date: Mon, 9 Sep 2024 04:12:35 +0200 Subject: [PATCH] Testing prerelease --- .../workflows/{build.yml => build.yml.old} | 0 .github/workflows/prerelease.yml | 83 +++++++++++++++++++ scripts/build-macos-amd64.sh | 1 + 3 files changed, 84 insertions(+) rename .github/workflows/{build.yml => build.yml.old} (100%) create mode 100644 .github/workflows/prerelease.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml.old similarity index 100% rename from .github/workflows/build.yml rename to .github/workflows/build.yml.old diff --git a/.github/workflows/prerelease.yml b/.github/workflows/prerelease.yml new file mode 100644 index 000000000..49d55234f --- /dev/null +++ b/.github/workflows/prerelease.yml @@ -0,0 +1,83 @@ +name: Prerelease + +on: + push: + branches: + - "master" + +jobs: + build-linux-amd64: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - name: Build linux-amd64 + run: | + scripts/build-ubuntu-amd64.sh install -T release --prefix ./gamedata/css_enhanced/game + zip -r CSS_Enhanced_Linux_Development_Release.zip ./gamedata/css_enhanced/game/* + - uses: "marvinpinto/action-automatic-releases@latest" + with: + repo_token: "${{ secrets.GITHUB_TOKEN }}" + automatic_release_tag: "latest" + prerelease: true + title: "Development Build Linux" + files: | + CSS_Enhanced_Linux_Development_Release.zip + + + build-android-armv7a: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - name: Build android-armv7a + run: | + scripts/build-android-armv7a.sh install -T release --prefix ./gamedata/css_enhanced/game + zip -r CSS_Enhanced_Android_Development_Release.zip ./gamedata/css_enhanced/game/* + - uses: "marvinpinto/action-automatic-releases@latest" + with: + repo_token: "${{ secrets.GITHUB_TOKEN }}" + automatic_release_tag: "latest" + prerelease: true + title: "Development Build Android" + files: | + CSS_Enhanced_Android_Development_Release.zip + + build-windows-amd64: + runs-on: windows-latest + + steps: + - uses: actions/checkout@v2 + - name: Build windows-amd64 + run: | + git submodule init && git submodule update + ./waf.bat configure -T release --prefix ./gamedata/css_enhanced/game + ./waf.bat build install + Compress-Archive -Path ./gamedata/css_enhanced/game/* -DestinationPath CSS_Enhanced_Windows_Development_Release.zip + - uses: "marvinpinto/action-automatic-releases@latest" + with: + repo_token: "${{ secrets.GITHUB_TOKEN }}" + automatic_release_tag: "latest" + prerelease: true + title: "Development Build Windows" + files: | + CSS_Enhanced_Windows_Development_Release.zip + + build-macos-amd64: + runs-on: macos-latest + + steps: + - uses: actions/checkout@v2 + - name: Build macos-amd64 + run: | + scripts/build-macos-amd64.sh install -T release --prefix ./gamedata/css_enhanced/game + zip -r CSS_Enhanced_MacOS_Development_Release.zip ./gamedata/css_enhanced/game/* + - uses: "marvinpinto/action-automatic-releases@latest" + with: + repo_token: "${{ secrets.GITHUB_TOKEN }}" + automatic_release_tag: "latest" + prerelease: true + title: "Development Build MacOS" + files: | + CSS_Enhanced_MacOS_Development_Release.zip + diff --git a/scripts/build-macos-amd64.sh b/scripts/build-macos-amd64.sh index a5df02242..e84ac742e 100755 --- a/scripts/build-macos-amd64.sh +++ b/scripts/build-macos-amd64.sh @@ -4,6 +4,7 @@ git submodule init && git submodule update brew install sdl2 brew install zstd +brew install zip ./waf configure -T debug --disable-warns $* && ./waf build