Skip to content

Commit

Permalink
Debug build action
Browse files Browse the repository at this point in the history
  • Loading branch information
nukeop committed Jul 3, 2024
1 parent 3d0181f commit 2c1940b
Showing 1 changed file with 58 additions and 0 deletions.
58 changes: 58 additions & 0 deletions .github/workflows/debug-build.yml
Original file line number Diff line number Diff line change
@@ -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/[email protected]
- 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."

0 comments on commit 2c1940b

Please sign in to comment.