-
-
Notifications
You must be signed in to change notification settings - Fork 3
45 lines (37 loc) · 1.15 KB
/
sea.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
name: Single Executable Application
on:
push:
tags:
- 'v*'
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
include:
- os: ubuntu-latest
run_script: sea:linux
artifact_name: symbol-upload-linux
- os: macos-latest
run_script: sea:macos
artifact_name: symbol-upload-macos
- os: windows-latest
run_script: sea:windows
artifact_name: symbol-upload-windows.exe
steps:
- name: ☑️ Checkout
uses: actions/checkout@v4
- name: ⚙️ Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '22'
- name: 🏗️ Install Dependencies
run: npm ci
- name: 📦 Run Pkg
run: npm run ${{ matrix.run_script }} # Executes the script based on the operating system
- name: ⬆️ Upload Artifacts
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.artifact_name }}
path: dist/${{ matrix.artifact_name }} # Uploads the artifact with a platform-specific name and path