Debug Build #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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." |