Files
bitburner-src/.github/workflows/build-artifacts.yml
Snarling 2d69387227 GITHUB: Update format created by "build artifacts" workflows (#2470)
* Change filenames and structure of build artifacts, for compatibility with steam version updating
Co-authored-by: CatLover <152669316+catloversg@users.noreply.github.com>
2026-02-04 22:59:40 -05:00

98 lines
2.6 KiB
YAML

name: Build artifacts
on:
workflow_dispatch:
workflow_call:
env:
GH_TOKEN: ${{ github.token }}
jobs:
build-windows:
name: Build Windows
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- name: Use Node.js 24
uses: actions/setup-node@v4
with:
node-version: 24
cache: "npm"
- name: Install npm dependencies
run: npm ci
- name: Build the production app
shell: bash
run: npm run build
- name: Build the Electron app
shell: bash
run: npm run electron-win
- name: Upload x64 artifact
uses: actions/upload-artifact@v4
with:
name: bitburner-win32-x64
include-hidden-files: true
path: .build/bitburner-win32-x64/*
if-no-files-found: error
- name: Upload arm64 artifact
uses: actions/upload-artifact@v4
with:
name: bitburner-win32-arm64
include-hidden-files: true
path: .build/bitburner-win32-arm64/*
if-no-files-found: error
build-linux:
name: Build Linux
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Use Node.js 24
uses: actions/setup-node@v4
with:
node-version: 24
cache: "npm"
- name: Install npm dependencies
run: npm ci
- name: Build the production app
run: npm run build
- name: Build the Electron app
run: npm run electron-linux
- name: Upload x64 artifact
uses: actions/upload-artifact@v4
with:
name: bitburner-linux-x64
include-hidden-files: true
path: .build/bitburner-linux-x64/*
if-no-files-found: error
- name: Upload arm64 artifact
uses: actions/upload-artifact@v4
with:
name: bitburner-linux-arm64
include-hidden-files: true
path: .build/bitburner-linux-arm64/*
if-no-files-found: error
build-mac:
name: Build macOS
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- name: Use Node.js 24
uses: actions/setup-node@v4
with:
node-version: 24
cache: "npm"
- name: Install npm dependencies
run: npm ci
- name: Build the production app
run: npm run build
- name: Build the Electron app
run: npm run electron-mac
- name: Upload darwin-universal artifact
uses: actions/upload-artifact@v4
with:
name: bitburner-darwin-universal
include-hidden-files: true
path: .build/bitburner-darwin-universal/*
if-no-files-found: error