From c43f8fbfe475eb711afa3cb2b938d5dcc037d02f Mon Sep 17 00:00:00 2001 From: Kenzzer <14257866+kenzzer@users.noreply.github.com> Date: Tue, 30 Sep 2025 11:40:44 +0000 Subject: [PATCH 01/17] Add release workflow --- .github/workflows/release.yml | 72 +++++++++++++++++++++++++++++++++++ 1 file changed, 72 insertions(+) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..89b1f6d --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,72 @@ +name: Build Release + +on: + workflow_dispatch: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + build-extension: + uses: ./.github/workflows/build-extension.yml + + release: + permissions: write-all + runs-on: ubuntu-latest + needs: [ build-extension ] + + env: + PROJECT: 'accelerator' + # Thanks to https://github.com/orgs/community/discussions/26325#discussioncomment-5397362 + RELEVANT_SHA: ${{ github.event.pull_request.head.sha || github.sha }} + steps: + - run: sudo apt-get install -y tree + + - uses: actions/checkout@v4 + name: Repository checkout + with: + fetch-depth: 0 + path: repository + + - name: Download Linux release + uses: actions/download-artifact@v5 + with: + name: accelerator_linux + path: linux + + - name: Download Windows release + uses: actions/download-artifact@v5 + with: + name: accelerator_windows + path: windows + + - name: Zip release again + run: | + read -r PRODUCT_VERSION < ./repository/product.version + WINDOWS_ZIP="${{ env.PROJECT }}-$PRODUCT_VERSION-${{ env.RELEVANT_SHA }}-windows.zip" + LINUX_ZIP="${{ env.PROJECT }}-$PRODUCT_VERSION-${{ env.RELEVANT_SHA }}-windows.zip" + zip -r ${WINDOWS_ZIP} windows + zip -r ${LINUX_ZIP} linux + + echo "WINDOWS_ZIP=${WINDOWS_ZIP}" >> $GITHUB_ENV + echo "LINUX_ZIP=${LINUX_ZIP}" >> $GITHUB_ENV + + - name: Upload release + shell: bash + run: | + echo "Begin upload..." + AUTHORIZATION="$(echo -n 'builds:${{ secrets.PASSWORD }}' | base64)" + echo "::add-mask::${AUTHORIZATION}" + + HTTP_CODE=$(curl -XPOST -H "Authorization: Basic ${AUTHORIZATION}" -H "Content-Type: application/zip" --output /dev/null --silent --write-out "%{http_code}" --data-binary "@${{ env.WINDOWS_ZIP }}" "https://builds.limetech.io/upload.php?project=${{ env.PROJECT }}&filename=${{ env.WINDOWS_ZIP }}") + if test ${HTTP_CODE} -ne 200; then + echo "Upload failed with HTTP Code: ${HTTP_CODE}" + exit 1 + fi + HTTP_CODE=$(curl -XPOST -H "Authorization: Basic ${AUTHORIZATION}" -H "Content-Type: application/zip" --output /dev/null --silent --write-out "%{http_code}" --data-binary "@${{ env.LINUX_ZIP }}" "https://builds.limetech.io/upload.php?project=${{ env.PROJECT }}&filename=${{ env.LINUX_ZIP }}") + if test ${HTTP_CODE} -ne 200; then + echo "Upload failed with HTTP Code: ${HTTP_CODE}" + exit 1 + fi + echo "Upload successful!" \ No newline at end of file From 545efda4b10ee1e7e0aad5a09f1127c61fb38869 Mon Sep 17 00:00:00 2001 From: Kenzzer <14257866+kenzzer@users.noreply.github.com> Date: Tue, 30 Sep 2025 11:48:02 +0000 Subject: [PATCH 02/17] Restrict to direct push --- .github/workflows/release.yml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 89b1f6d..3546197 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,11 +1,9 @@ -name: Build Release +name: Make Release on: workflow_dispatch: push: - branches: [ master ] - pull_request: - branches: [ master ] + branches: [ master, ci_release ] jobs: build-extension: From 1f41a6933e2619ad62761da3d96d14c081a80b4a Mon Sep 17 00:00:00 2001 From: Kenzzer <14257866+kenzzer@users.noreply.github.com> Date: Tue, 30 Sep 2025 11:50:27 +0000 Subject: [PATCH 03/17] Update dependent CI --- .github/workflows/release.yml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 3546197..bfbba06 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -3,16 +3,18 @@ name: Make Release on: workflow_dispatch: push: - branches: [ master, ci_release ] + branches: [ master ] + pull_request: + branches: [ master ] jobs: - build-extension: - uses: ./.github/workflows/build-extension.yml + main-ci: + uses: ./.github/workflows/ci.yml release: permissions: write-all runs-on: ubuntu-latest - needs: [ build-extension ] + needs: [ main-ci ] env: PROJECT: 'accelerator' From 193f1a35841516d18fae356d1eaa283c00df2291 Mon Sep 17 00:00:00 2001 From: Kenzzer <14257866+kenzzer@users.noreply.github.com> Date: Tue, 30 Sep 2025 11:55:31 +0000 Subject: [PATCH 04/17] Correct main CI --- .github/workflows/ci.yml | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 983f3c1..ae094c3 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,15 +1,11 @@ name: CI on: + workflow_call: workflow_dispatch: pull_request: - branches: - - master - - overhaul - + branches: [ master ] push: - branches: - - master - - overhaul + branches: [ master ] jobs: cache: From 53103f4b1de783ced6b088bb78b075546e1c1173 Mon Sep 17 00:00:00 2001 From: Kenzzer <14257866+kenzzer@users.noreply.github.com> Date: Tue, 30 Sep 2025 12:25:36 +0000 Subject: [PATCH 05/17] Optimize workflow dispatch --- .github/workflows/ci.yml | 56 ++++++++++++++++------------------- .github/workflows/release.yml | 2 +- 2 files changed, 26 insertions(+), 32 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ae094c3..48c48c4 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -2,49 +2,43 @@ name: CI on: workflow_call: workflow_dispatch: - pull_request: - branches: [ master ] - push: - branches: [ master ] + #pull_request: + # branches: [ master ] jobs: cache: uses: ./.github/workflows/cache.yml + + build-options: + runs-on: ubuntu-latest + outputs: + exclude: ${{ steps.set.outputs.exclude }} + steps: + - id: set + run: | + echo "${{ github.event_name }}" + echo "exclude=[${{ github.event_name == 'workflow_call' && '{"runners": { "upload": false } }' || '' }}]" >> $GITHUB_OUTPUT build: name: Build - needs: cache + needs: [ cache, build-options ] strategy: fail-fast: false matrix: - os: [ 'ubuntu-22.04', 'ubuntu-latest', 'windows-latest' ] - include: - # we need to ship ubuntu 22.04 because of glibc reasons - - os: ubuntu-22.04 - #cc: clang-8 - #cxx: clang++-8 - cc: clang - cxx: clang++ - upload: true - upload-artifact-name: accelerator_linux - - os: ubuntu-latest - cc: clang - cxx: clang++ - upload: false - upload-artifact-name: none - - os: windows-latest - cc: msvc - cxx: msvc - upload: true - upload-artifact-name: accelerator_windows + runners: [ + { os: ubuntu-22.04, cc: clang, cxx: clang++, upload: true, upload-artifact-name: accelerator_linux }, + { os: ubuntu-latest, cc: clang, cxx: clang++, upload: false }, + { os: windows-latest, cc: msvc, cxx: msvc, upload: true, upload-artifact-name: accelerator_windows } + ] + exclude: ${{ fromJson(needs.build-options.outputs.exclude) }} uses: ./.github/workflows/build-extension.yml with: - os: ${{ matrix.os }} - cc: ${{ matrix.cc }} - cxx: ${{ matrix.cxx }} - upload: ${{ matrix.upload }} - upload-artifact-name: ${{ matrix.upload-artifact-name }} + os: ${{ matrix.runners.os }} + cc: ${{ matrix.runners.cc }} + cxx: ${{ matrix.runners.cxx }} + upload: ${{ matrix.runners.upload }} + upload-artifact-name: ${{ matrix.runners.upload-artifact-name }} cache-key: ${{ needs.cache.outputs.key }} - cache-dir: ${{ needs.cache.outputs.dir }} + cache-dir: ${{ needs.cache.outputs.dir }} \ No newline at end of file diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index bfbba06..18213fd 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,4 +1,4 @@ -name: Make Release +name: Release on: workflow_dispatch: From 73825d0fca25258590a0f8ac1aa12928babe1ba7 Mon Sep 17 00:00:00 2001 From: Kenzzer <14257866+kenzzer@users.noreply.github.com> Date: Tue, 30 Sep 2025 12:29:40 +0000 Subject: [PATCH 06/17] Restrict to 'workflow_call' --- .github/workflows/ci.yml | 3 --- 1 file changed, 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 48c48c4..c70eea8 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,9 +1,6 @@ name: CI on: workflow_call: - workflow_dispatch: - #pull_request: - # branches: [ master ] jobs: cache: From 48233b8140e677b65155881cdd63fd0bc6588e76 Mon Sep 17 00:00:00 2001 From: Kenzzer <14257866+kenzzer@users.noreply.github.com> Date: Tue, 30 Sep 2025 12:37:17 +0000 Subject: [PATCH 07/17] Don't rely on 'workflow_call' --- .github/workflows/ci.yml | 8 +++++++- .github/workflows/release.yml | 2 ++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c70eea8..dbf748f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,6 +1,12 @@ name: CI on: + workflow_dispatch: workflow_call: + inputs: + release: + type: boolean + required: true + default: false jobs: cache: @@ -14,7 +20,7 @@ jobs: - id: set run: | echo "${{ github.event_name }}" - echo "exclude=[${{ github.event_name == 'workflow_call' && '{"runners": { "upload": false } }' || '' }}]" >> $GITHUB_OUTPUT + echo "exclude=[${{ inputs.release && '{"runners": { "upload": false } }' || '' }}]" >> $GITHUB_OUTPUT build: name: Build diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 18213fd..5eddfd0 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -10,6 +10,8 @@ on: jobs: main-ci: uses: ./.github/workflows/ci.yml + with: + release: true release: permissions: write-all From 4453b27f6240b49a9a7fcdbd560aab44d461c91c Mon Sep 17 00:00:00 2001 From: Kenzzer <14257866+kenzzer@users.noreply.github.com> Date: Tue, 30 Sep 2025 12:43:13 +0000 Subject: [PATCH 08/17] Actually use UPLOAD_PASSWORD --- .github/workflows/ci.yml | 1 - .github/workflows/release.yml | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index dbf748f..58dad97 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -19,7 +19,6 @@ jobs: steps: - id: set run: | - echo "${{ github.event_name }}" echo "exclude=[${{ inputs.release && '{"runners": { "upload": false } }' || '' }}]" >> $GITHUB_OUTPUT build: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 5eddfd0..ed677ed 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -58,7 +58,7 @@ jobs: shell: bash run: | echo "Begin upload..." - AUTHORIZATION="$(echo -n 'builds:${{ secrets.PASSWORD }}' | base64)" + AUTHORIZATION="$(echo -n 'builds:${{ secrets.UPLOAD_PASSWORD }}' | base64)" echo "::add-mask::${AUTHORIZATION}" HTTP_CODE=$(curl -XPOST -H "Authorization: Basic ${AUTHORIZATION}" -H "Content-Type: application/zip" --output /dev/null --silent --write-out "%{http_code}" --data-binary "@${{ env.WINDOWS_ZIP }}" "https://builds.limetech.io/upload.php?project=${{ env.PROJECT }}&filename=${{ env.WINDOWS_ZIP }}") From c0f5978118926949ec0368a519e5f88b2726ef1a Mon Sep 17 00:00:00 2001 From: Kenzzer <14257866+kenzzer@users.noreply.github.com> Date: Tue, 30 Sep 2025 13:13:33 +0000 Subject: [PATCH 09/17] add the -git tag --- .github/workflows/release.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ed677ed..068ffbe 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -45,9 +45,12 @@ jobs: - name: Zip release again run: | - read -r PRODUCT_VERSION < ./repository/product.version - WINDOWS_ZIP="${{ env.PROJECT }}-$PRODUCT_VERSION-${{ env.RELEVANT_SHA }}-windows.zip" - LINUX_ZIP="${{ env.PROJECT }}-$PRODUCT_VERSION-${{ env.RELEVANT_SHA }}-windows.zip" + cd repository + read -r PRODUCT_VERSION < ./product.version + REV_COUNT=$(git rev-list --count HEAD) + cd .. + WINDOWS_ZIP="${{ env.PROJECT }}-$PRODUCT_VERSION-git$REV_COUNT-${{ env.RELEVANT_SHA }}-windows.zip" + LINUX_ZIP="${{ env.PROJECT }}-$PRODUCT_VERSION-git$REV_COUNT-${{ env.RELEVANT_SHA }}-windows.zip" zip -r ${WINDOWS_ZIP} windows zip -r ${LINUX_ZIP} linux From 469c352dc8cc0fddc07afbbd8d55e3ee556a16b7 Mon Sep 17 00:00:00 2001 From: Kenzzer <14257866+kenzzer@users.noreply.github.com> Date: Tue, 30 Sep 2025 13:19:57 +0000 Subject: [PATCH 10/17] use short sha --- .github/workflows/release.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 068ffbe..1e078d1 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -20,8 +20,6 @@ jobs: env: PROJECT: 'accelerator' - # Thanks to https://github.com/orgs/community/discussions/26325#discussioncomment-5397362 - RELEVANT_SHA: ${{ github.event.pull_request.head.sha || github.sha }} steps: - run: sudo apt-get install -y tree @@ -48,9 +46,10 @@ jobs: cd repository read -r PRODUCT_VERSION < ./product.version REV_COUNT=$(git rev-list --count HEAD) + REV_SHA=$(git rev-parse --short HEAD) cd .. - WINDOWS_ZIP="${{ env.PROJECT }}-$PRODUCT_VERSION-git$REV_COUNT-${{ env.RELEVANT_SHA }}-windows.zip" - LINUX_ZIP="${{ env.PROJECT }}-$PRODUCT_VERSION-git$REV_COUNT-${{ env.RELEVANT_SHA }}-windows.zip" + WINDOWS_ZIP="${{ env.PROJECT }}-$PRODUCT_VERSION-git$REV_COUNT-$REV_SHA-windows.zip" + LINUX_ZIP="${{ env.PROJECT }}-$PRODUCT_VERSION-git$REV_COUNT-$REV_SHA-windows.zip" zip -r ${WINDOWS_ZIP} windows zip -r ${LINUX_ZIP} linux @@ -64,11 +63,13 @@ jobs: AUTHORIZATION="$(echo -n 'builds:${{ secrets.UPLOAD_PASSWORD }}' | base64)" echo "::add-mask::${AUTHORIZATION}" + echo "Uploading ${{ env.WINDOWS_ZIP }}" HTTP_CODE=$(curl -XPOST -H "Authorization: Basic ${AUTHORIZATION}" -H "Content-Type: application/zip" --output /dev/null --silent --write-out "%{http_code}" --data-binary "@${{ env.WINDOWS_ZIP }}" "https://builds.limetech.io/upload.php?project=${{ env.PROJECT }}&filename=${{ env.WINDOWS_ZIP }}") if test ${HTTP_CODE} -ne 200; then echo "Upload failed with HTTP Code: ${HTTP_CODE}" exit 1 fi + echo "Uploading ${{ env.LINUX_ZIP }}" HTTP_CODE=$(curl -XPOST -H "Authorization: Basic ${AUTHORIZATION}" -H "Content-Type: application/zip" --output /dev/null --silent --write-out "%{http_code}" --data-binary "@${{ env.LINUX_ZIP }}" "https://builds.limetech.io/upload.php?project=${{ env.PROJECT }}&filename=${{ env.LINUX_ZIP }}") if test ${HTTP_CODE} -ne 200; then echo "Upload failed with HTTP Code: ${HTTP_CODE}" From 3808535ccc7bf058da0ca7ca4beac43218ad4a6a Mon Sep 17 00:00:00 2001 From: Kenzzer <14257866+kenzzer@users.noreply.github.com> Date: Tue, 30 Sep 2025 13:26:06 +0000 Subject: [PATCH 11/17] fix platform naming mistake --- .github/workflows/release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 1e078d1..20b0763 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -49,7 +49,7 @@ jobs: REV_SHA=$(git rev-parse --short HEAD) cd .. WINDOWS_ZIP="${{ env.PROJECT }}-$PRODUCT_VERSION-git$REV_COUNT-$REV_SHA-windows.zip" - LINUX_ZIP="${{ env.PROJECT }}-$PRODUCT_VERSION-git$REV_COUNT-$REV_SHA-windows.zip" + LINUX_ZIP="${{ env.PROJECT }}-$PRODUCT_VERSION-git$REV_COUNT-$REV_SHA-linux.zip" zip -r ${WINDOWS_ZIP} windows zip -r ${LINUX_ZIP} linux From e981bd2f3964ed206982f76a7380da6d12a7ad23 Mon Sep 17 00:00:00 2001 From: Kenzzer <14257866+kenzzer@users.noreply.github.com> Date: Tue, 30 Sep 2025 13:38:12 +0000 Subject: [PATCH 12/17] Add branch param to upload url --- .github/workflows/release.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 20b0763..ca2a579 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -64,13 +64,13 @@ jobs: echo "::add-mask::${AUTHORIZATION}" echo "Uploading ${{ env.WINDOWS_ZIP }}" - HTTP_CODE=$(curl -XPOST -H "Authorization: Basic ${AUTHORIZATION}" -H "Content-Type: application/zip" --output /dev/null --silent --write-out "%{http_code}" --data-binary "@${{ env.WINDOWS_ZIP }}" "https://builds.limetech.io/upload.php?project=${{ env.PROJECT }}&filename=${{ env.WINDOWS_ZIP }}") + HTTP_CODE=$(curl -XPOST -H "Authorization: Basic ${AUTHORIZATION}" -H "Content-Type: application/zip" --output /dev/null --silent --write-out "%{http_code}" --data-binary "@${{ env.WINDOWS_ZIP }}" "https://builds.limetech.io/upload.php?project=${{ env.PROJECT }}&branch=${{ github.ref_name }}&filename=${{ env.WINDOWS_ZIP }}") if test ${HTTP_CODE} -ne 200; then echo "Upload failed with HTTP Code: ${HTTP_CODE}" exit 1 fi echo "Uploading ${{ env.LINUX_ZIP }}" - HTTP_CODE=$(curl -XPOST -H "Authorization: Basic ${AUTHORIZATION}" -H "Content-Type: application/zip" --output /dev/null --silent --write-out "%{http_code}" --data-binary "@${{ env.LINUX_ZIP }}" "https://builds.limetech.io/upload.php?project=${{ env.PROJECT }}&filename=${{ env.LINUX_ZIP }}") + HTTP_CODE=$(curl -XPOST -H "Authorization: Basic ${AUTHORIZATION}" -H "Content-Type: application/zip" --output /dev/null --silent --write-out "%{http_code}" --data-binary "@${{ env.LINUX_ZIP }}" "https://builds.limetech.io/upload.php?project=${{ env.PROJECT }}&branch=${{ github.ref_name }}&filename=${{ env.LINUX_ZIP }}") if test ${HTTP_CODE} -ne 200; then echo "Upload failed with HTTP Code: ${HTTP_CODE}" exit 1 From ff5bb890d402e5a62db45a7b8d21315ddbc41768 Mon Sep 17 00:00:00 2001 From: Kenzzer <14257866+kenzzer@users.noreply.github.com> Date: Tue, 30 Sep 2025 13:44:16 +0000 Subject: [PATCH 13/17] Setup PR workflow --- .github/workflows/pull_request.yml | 12 ++++++++++++ .github/workflows/release.yml | 2 -- 2 files changed, 12 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/pull_request.yml diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml new file mode 100644 index 0000000..e2cdce8 --- /dev/null +++ b/.github/workflows/pull_request.yml @@ -0,0 +1,12 @@ +name: Pull Request + +on: + workflow_dispatch: + pull_request: + branches: [ master ] + +jobs: + main-ci: + uses: ./.github/workflows/ci.yml + with: + release: false diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ca2a579..4d058cb 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -4,8 +4,6 @@ on: workflow_dispatch: push: branches: [ master ] - pull_request: - branches: [ master ] jobs: main-ci: From f3e07a3985ef45fb6e9ca91a312f18c17a58c254 Mon Sep 17 00:00:00 2001 From: Kenzzer <14257866+kenzzer@users.noreply.github.com> Date: Tue, 30 Sep 2025 13:53:07 +0000 Subject: [PATCH 14/17] modify the trigger --- .github/workflows/pull_request.yml | 4 ++-- .github/workflows/release.yml | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml index e2cdce8..905f7e2 100644 --- a/.github/workflows/pull_request.yml +++ b/.github/workflows/pull_request.yml @@ -2,8 +2,8 @@ name: Pull Request on: workflow_dispatch: - pull_request: - branches: [ master ] + #pull_request: + # branches: [ master ] jobs: main-ci: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 4d058cb..6fd53d9 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -3,7 +3,7 @@ name: Release on: workflow_dispatch: push: - branches: [ master ] + branches: [ master, release_ci ] jobs: main-ci: @@ -62,13 +62,13 @@ jobs: echo "::add-mask::${AUTHORIZATION}" echo "Uploading ${{ env.WINDOWS_ZIP }}" - HTTP_CODE=$(curl -XPOST -H "Authorization: Basic ${AUTHORIZATION}" -H "Content-Type: application/zip" --output /dev/null --silent --write-out "%{http_code}" --data-binary "@${{ env.WINDOWS_ZIP }}" "https://builds.limetech.io/upload.php?project=${{ env.PROJECT }}&branch=${{ github.ref_name }}&filename=${{ env.WINDOWS_ZIP }}") + HTTP_CODE=$(curl -XPOST -H "Authorization: Basic ${AUTHORIZATION}" -H "Content-Type: application/zip" --output /dev/null --silent --write-out "%{http_code}" --data-binary "@${{ env.WINDOWS_ZIP }}" "https://builds.limetech.io/upload.php?project=\"${{ env.PROJECT }}\"&branch=\"${{ github.ref_name }}\"&filename=\"${{ env.WINDOWS_ZIP }}\"") if test ${HTTP_CODE} -ne 200; then echo "Upload failed with HTTP Code: ${HTTP_CODE}" exit 1 fi echo "Uploading ${{ env.LINUX_ZIP }}" - HTTP_CODE=$(curl -XPOST -H "Authorization: Basic ${AUTHORIZATION}" -H "Content-Type: application/zip" --output /dev/null --silent --write-out "%{http_code}" --data-binary "@${{ env.LINUX_ZIP }}" "https://builds.limetech.io/upload.php?project=${{ env.PROJECT }}&branch=${{ github.ref_name }}&filename=${{ env.LINUX_ZIP }}") + HTTP_CODE=$(curl -XPOST -H "Authorization: Basic ${AUTHORIZATION}" -H "Content-Type: application/zip" --output /dev/null --silent --write-out "%{http_code}" --data-binary "@${{ env.LINUX_ZIP }}" "https://builds.limetech.io/upload.php?project=\"${{ env.PROJECT }}\"&branch=\"${{ github.ref_name }}\"&filename=\"${{ env.LINUX_ZIP }}\"") if test ${HTTP_CODE} -ne 200; then echo "Upload failed with HTTP Code: ${HTTP_CODE}" exit 1 From af339530d2a4b13bb9735402bed38f876e49939d Mon Sep 17 00:00:00 2001 From: Kenzzer <14257866+kenzzer@users.noreply.github.com> Date: Tue, 30 Sep 2025 14:02:06 +0000 Subject: [PATCH 15/17] Add branch name debug + renable PR workflow --- .github/workflows/pull_request.yml | 4 ++-- .github/workflows/release.yml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml index 905f7e2..e2cdce8 100644 --- a/.github/workflows/pull_request.yml +++ b/.github/workflows/pull_request.yml @@ -2,8 +2,8 @@ name: Pull Request on: workflow_dispatch: - #pull_request: - # branches: [ master ] + pull_request: + branches: [ master ] jobs: main-ci: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 6fd53d9..73311af 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -57,7 +57,7 @@ jobs: - name: Upload release shell: bash run: | - echo "Begin upload..." + echo "Begin upload for branch (${{ github.ref_name }})" AUTHORIZATION="$(echo -n 'builds:${{ secrets.UPLOAD_PASSWORD }}' | base64)" echo "::add-mask::${AUTHORIZATION}" From b999543acfdc3f816d585eb121e839e69b450dce Mon Sep 17 00:00:00 2001 From: Benoist <14257866+Kenzzer@users.noreply.github.com> Date: Tue, 30 Sep 2025 16:25:09 +0200 Subject: [PATCH 16/17] Try %22 --- .github/workflows/release.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 73311af..bd0a5ae 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -62,15 +62,15 @@ jobs: echo "::add-mask::${AUTHORIZATION}" echo "Uploading ${{ env.WINDOWS_ZIP }}" - HTTP_CODE=$(curl -XPOST -H "Authorization: Basic ${AUTHORIZATION}" -H "Content-Type: application/zip" --output /dev/null --silent --write-out "%{http_code}" --data-binary "@${{ env.WINDOWS_ZIP }}" "https://builds.limetech.io/upload.php?project=\"${{ env.PROJECT }}\"&branch=\"${{ github.ref_name }}\"&filename=\"${{ env.WINDOWS_ZIP }}\"") + HTTP_CODE=$(curl -XPOST -H "Authorization: Basic ${AUTHORIZATION}" -H "Content-Type: application/zip" --output /dev/null --silent --write-out "%{http_code}" --data-binary "@${{ env.WINDOWS_ZIP }}" "https://builds.limetech.io/upload.php?project=%22${{ env.PROJECT }}%22&branch=%22${{ github.ref_name }}%22&filename=%22${{ env.WINDOWS_ZIP }}%22") if test ${HTTP_CODE} -ne 200; then echo "Upload failed with HTTP Code: ${HTTP_CODE}" exit 1 fi echo "Uploading ${{ env.LINUX_ZIP }}" - HTTP_CODE=$(curl -XPOST -H "Authorization: Basic ${AUTHORIZATION}" -H "Content-Type: application/zip" --output /dev/null --silent --write-out "%{http_code}" --data-binary "@${{ env.LINUX_ZIP }}" "https://builds.limetech.io/upload.php?project=\"${{ env.PROJECT }}\"&branch=\"${{ github.ref_name }}\"&filename=\"${{ env.LINUX_ZIP }}\"") + HTTP_CODE=$(curl -XPOST -H "Authorization: Basic ${AUTHORIZATION}" -H "Content-Type: application/zip" --output /dev/null --silent --write-out "%{http_code}" --data-binary "@${{ env.LINUX_ZIP }}" "https://builds.limetech.io/upload.php?project=%22${{ env.PROJECT }}%22&branch=%22${{ github.ref_name }}%22&filename=%22${{ env.LINUX_ZIP }}%22") if test ${HTTP_CODE} -ne 200; then echo "Upload failed with HTTP Code: ${HTTP_CODE}" exit 1 fi - echo "Upload successful!" \ No newline at end of file + echo "Upload successful!" From 795f099166c1d55f9b2c2409358687276f1c7f83 Mon Sep 17 00:00:00 2001 From: Benoist <14257866+Kenzzer@users.noreply.github.com> Date: Tue, 30 Sep 2025 16:28:09 +0200 Subject: [PATCH 17/17] No quotes! --- .github/workflows/release.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index bd0a5ae..d725a0f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -62,13 +62,13 @@ jobs: echo "::add-mask::${AUTHORIZATION}" echo "Uploading ${{ env.WINDOWS_ZIP }}" - HTTP_CODE=$(curl -XPOST -H "Authorization: Basic ${AUTHORIZATION}" -H "Content-Type: application/zip" --output /dev/null --silent --write-out "%{http_code}" --data-binary "@${{ env.WINDOWS_ZIP }}" "https://builds.limetech.io/upload.php?project=%22${{ env.PROJECT }}%22&branch=%22${{ github.ref_name }}%22&filename=%22${{ env.WINDOWS_ZIP }}%22") + HTTP_CODE=$(curl -XPOST -H "Authorization: Basic ${AUTHORIZATION}" -H "Content-Type: application/zip" --output /dev/null --silent --write-out "%{http_code}" --data-binary "@${{ env.WINDOWS_ZIP }}" "https://builds.limetech.io/upload.php?project=${{ env.PROJECT }}&branch=${{ github.ref_name }}&filename=${{ env.WINDOWS_ZIP }}") if test ${HTTP_CODE} -ne 200; then echo "Upload failed with HTTP Code: ${HTTP_CODE}" exit 1 fi echo "Uploading ${{ env.LINUX_ZIP }}" - HTTP_CODE=$(curl -XPOST -H "Authorization: Basic ${AUTHORIZATION}" -H "Content-Type: application/zip" --output /dev/null --silent --write-out "%{http_code}" --data-binary "@${{ env.LINUX_ZIP }}" "https://builds.limetech.io/upload.php?project=%22${{ env.PROJECT }}%22&branch=%22${{ github.ref_name }}%22&filename=%22${{ env.LINUX_ZIP }}%22") + HTTP_CODE=$(curl -XPOST -H "Authorization: Basic ${AUTHORIZATION}" -H "Content-Type: application/zip" --output /dev/null --silent --write-out "%{http_code}" --data-binary "@${{ env.LINUX_ZIP }}" "https://builds.limetech.io/upload.php?project=${{ env.PROJECT }}&branch=${{ github.ref_name }}&filename=${{ env.LINUX_ZIP }}") if test ${HTTP_CODE} -ne 200; then echo "Upload failed with HTTP Code: ${HTTP_CODE}" exit 1