From 2c1940b8a7f7a49bbd6b44ab05aba406bfd3370c Mon Sep 17 00:00:00 2001 From: nukeop <12746779+nukeop@users.noreply.github.com> Date: Wed, 3 Jul 2024 23:35:08 +0200 Subject: [PATCH] Debug build action --- .github/workflows/debug-build.yml | 58 +++++++++++++++++++++++++++++++ 1 file changed, 58 insertions(+) create mode 100644 .github/workflows/debug-build.yml diff --git a/.github/workflows/debug-build.yml b/.github/workflows/debug-build.yml new file mode 100644 index 0000000000..e3502c7751 --- /dev/null +++ b/.github/workflows/debug-build.yml @@ -0,0 +1,58 @@ +name: Debug Build + +on: + workflow_dispatch: + inputs: + platform: + description: "Select the platform to build" + required: true + default: "linux" + type: choice + options: + - linux + - macos + - windows + +jobs: + build: + runs-on: ${{ matrix.os }} + timeout-minutes: 30 + + strategy: + matrix: + os: [ubuntu-latest, macos-latest, windows-latest] + include: + - os: ubuntu-latest + platform: linux + - os: macos-latest + platform: macos + - os: windows-latest + platform: windows + + steps: + - uses: actions/checkout@master + - name: get-npm-version + id: package-version + uses: pchynoweth/action-get-npm-version@1.1.1 + - name: Use Node.js 20 + uses: actions/setup-node@master + with: + version: 20 + cache: npm + - name: add git binaries to PATH (Windows only) + if: matrix.os == 'windows-latest' + run: | + echo "C:\Program Files\Git\usr\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append + echo "C:\Program Files\Git\mingw64\libexec\git-core" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append + - run: npm ci + - run: npm run build:${{ matrix.platform }}:debug + shell: bash + env: + VERSION: ${{ steps.package-version.outputs.version }} + - name: Upload debug binaries + uses: actions/upload-artifact@v2 + with: + name: nuclear-binaries-${{ matrix.platform }}-debug + path: release/*.* + - name: Notify Debug Build + run: echo "Debug build for ${{ matrix.platform }} is complete. Artifacts are uploaded."