mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-16 06:18:42 +02:00
* Change filenames and structure of build artifacts, for compatibility with steam version updating Co-authored-by: CatLover <152669316+catloversg@users.noreply.github.com>
98 lines
2.6 KiB
YAML
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
|