Files
boris 8be4c8d571
CI / Verify (build + tests) (push) Failing after 12s
CI / Package (Linux) (push) Has been skipped
CI / Package (Windows) (push) Has been skipped
CI / Package (macOS arm64 source) (push) Has been skipped
Added loading 5et from zip release, or cloning git repo. Improvements to CSS and some missing functionality
2026-02-24 23:11:31 +00:00

101 lines
2.3 KiB
YAML

name: CI
on:
push:
branches:
- main
- master
pull_request:
workflow_dispatch:
jobs:
verify:
name: Verify (build + tests)
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Verify Node.js toolchain
run: |
node --version
npm --version
- name: Install dependencies
run: npm ci
- name: Run tests (if present)
run: npm run test --if-present
- name: Build
run: npm run build
package:
name: Package (${{ matrix.name }})
needs: verify
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
include:
- name: Windows
os: windows-latest
platform: win
arch: x64
artifact_glob: release/*.exe
- name: Linux
os: ubuntu-latest
platform: linux
arch: x64
artifact_glob: release/*.AppImage
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Verify Node.js toolchain
run: |
node --version
npm --version
- name: Install dependencies
run: npm ci
- name: Build app bundles
run: npm run build
- name: Build installers
env:
CSC_IDENTITY_AUTO_DISCOVERY: "false"
run: npx electron-builder@26.8.1 --${{ matrix.platform }} --${{ matrix.arch }} --publish never
- name: Upload installer artifact
uses: actions/upload-artifact@v4
with:
name: 5ET-D-${{ matrix.platform }}-${{ github.sha }}
path: ${{ matrix.artifact_glob }}
if-no-files-found: error
macos_source:
name: Package (macOS arm64 source)
needs: verify
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Create source archive for macOS arm64 users
run: |
mkdir -p release
git archive --format=tar.gz --output="release/5ET-D-macos-arm64-source-${GITHUB_SHA::7}.tar.gz" HEAD
- name: Upload macOS source artifact
uses: actions/upload-artifact@v4
with:
name: 5ET-D-macos-arm64-source-${{ github.sha }}
path: release/5ET-D-macos-arm64-source-*.tar.gz
if-no-files-found: error