Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
67 changes: 43 additions & 24 deletions .github/workflows/build-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
push:

jobs:
compilation:
compilation-linux:
runs-on: ubuntu-latest
steps:

Expand All @@ -13,22 +13,11 @@ jobs:
with:
node-version: 24

- name: Get utils
run: |
sudo apt-get update
sudo apt-get install -y qemu-user-binfmt

- uses: MOZGIII/install-ldid-action@v1
with:
tag: v2.1.5-procursus7

- name: Install npm modules
run: npm i

- name: Package application
run: npm run build:executable

# Publish
- name: Build Linux binary
run: npm run build:sea:linux

- name: Export release for Linux
uses: actions/upload-artifact@v4
Expand All @@ -37,25 +26,55 @@ jobs:
if-no-files-found: error
compression-level: 0
overwrite: true
path: |
${{ github.workspace }}/bin/simple-linux*
path: ${{ github.workspace }}/bin/simple-linux

- name: Export release for Windows
compilation-macos:
runs-on: macos-latest
steps:

- uses: actions/checkout@v6
- uses: actions/setup-node@v6
with:
node-version: 24

- name: Install npm modules
run: npm i

- name: Build macOS binary
run: npm run build:sea:macos

- name: Export release for macOS
uses: actions/upload-artifact@v4
with:
name: windows-compiled-archive
name: macos-compiled-archive
if-no-files-found: error
compression-level: 0
overwrite: true
path: |
${{ github.workspace }}/bin/simple-win*
path: ${{ github.workspace }}/bin/simple-macos

compilation-windows:
runs-on: windows-latest
steps:

- uses: actions/checkout@v6
- uses: actions/setup-node@v6
with:
node-version: 24
- uses: actions/setup-go@v5
with:
go-version: 'stable'

- name: Install npm modules
run: npm i

- name: Export release for MacOS
- name: Build Windows binary
run: npm run build:sea:win

- name: Export release for Windows
uses: actions/upload-artifact@v4
with:
name: macos-compiled-archive
name: windows-compiled-archive
if-no-files-found: error
compression-level: 0
overwrite: true
path: |
${{ github.workspace }}/bin/simple-macos*
path: ${{ github.workspace }}/bin/win/simple-win.exe
103 changes: 85 additions & 18 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
workflow_call:

jobs:
compilation:
build-linux:
runs-on: ubuntu-latest
steps:

Expand All @@ -13,28 +13,95 @@ jobs:
with:
node-version: 24

- name: Get utils
run: |
sudo apt-get update
sudo apt-get install -y qemu-user-binfmt
- name: Install npm modules
run: npm i

- name: Build Linux binary
run: npm run build:sea:linux

- name: Upload Linux artifact
uses: actions/upload-artifact@v4
with:
name: linux-release-binary
if-no-files-found: error
compression-level: 0
path: ${{ github.workspace }}/bin/simple-linux

- uses: MOZGIII/install-ldid-action@v1
build-macos:
runs-on: macos-latest
steps:

- uses: actions/checkout@v6
- uses: actions/setup-node@v6
with:
tag: v2.1.5-procursus7
node-version: 24

- name: Install npm modules
run: npm i

- name: Get release metadata
id: setup_new_release_data
run: |
date=$(date +'%d/%m/%y %R')
echo "date=$date" >> "$GITHUB_OUTPUT"
- name: Build macOS binary
run: npm run build:sea:macos

- name: Upload macOS artifact
uses: actions/upload-artifact@v4
with:
name: macos-release-binary
if-no-files-found: error
compression-level: 0
path: ${{ github.workspace }}/bin/simple-macos

build-windows:
runs-on: windows-latest
steps:

- uses: actions/checkout@v6
- uses: actions/setup-node@v6
with:
node-version: 24
- uses: actions/setup-go@v5
with:
go-version: 'stable'

- name: Install npm modules
run: npm i

- name: Build Windows binary
run: npm run build:sea:win

- name: Upload Windows artifact
uses: actions/upload-artifact@v4
with:
name: windows-release-binary
if-no-files-found: error
compression-level: 0
path: ${{ github.workspace }}/bin/win/simple-win.exe

- name: Package application
run: npm run build:executable-compressed
release:
needs: [build-linux, build-macos, build-windows]
runs-on: ubuntu-latest
steps:

# Publish
- name: Download Linux binary
uses: actions/download-artifact@v4
with:
name: linux-release-binary
path: release-files/

- name: Download macOS binary
uses: actions/download-artifact@v4
with:
name: macos-release-binary
path: release-files/

- name: Download Windows binary
uses: actions/download-artifact@v4
with:
name: windows-release-binary
path: release-files/

- name: Get release metadata
id: meta
run: echo "date=$(date +'%d/%m/%y %R')" >> "$GITHUB_OUTPUT"

- name: Publish alpha to Github
uses: softprops/action-gh-release@v2
Expand All @@ -45,7 +112,7 @@ jobs:
name: Alpha Version
body: |
Alpha release of the SIMPLE webplatform. Please test and report issues.
Lastly updated on $(date +'%d/%m/%y %R').
Lastly updated on ${{ steps.meta.outputs.date }}.
generate_release_notes: true
files: ${{ github.workspace }}/bin/*
fail_on_unmatched_files: true
files: release-files/**
fail_on_unmatched_files: true
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,7 @@ learning-packages/ACROSS-Lab QuangBinhProject MIAT-version Gama/
/bin*
dist
dist-api

# SEA build intermediates (auto-generated by build:sea:win)
sea-config.json
sea-prep.blob
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
24
Loading
Loading