Skip to content

Debug Build

Debug Build #5

Workflow file for this run

name: Debug Build
on:
workflow_dispatch:
inputs:
platform:
description: "Select the platform to build"
required: true
default: "linux"
type: choice
options:
- linux
- macos
- macos-arm64
- windows
env:
PYTHON_VERSION: "3.11"
jobs:
build:
runs-on: ${{ matrix.os }}
timeout-minutes: 30
strategy:
matrix:
os: [ubuntu-latest, macos-12, macos-14, windows-latest]
include:
- os: ubuntu-latest
platform: linux
- os: macos-12
platform: macos
- os: macos-14
platform: macos-arm64
- os: windows-latest
platform: windows
steps:
- uses: actions/checkout@master
- name: Set up Python ${{ env.PYTHON_VERSION }}
uses: actions/setup-python@v4
with:
python-version: ${{ env.PYTHON_VERSION }}
- 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
- name: install setup tools
if: runner.os == 'macOS'
run: |
sudo -H pip install setuptools
- run: npm ci
- run: npm run build:${{ matrix.platform }}
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."