-
Notifications
You must be signed in to change notification settings - Fork 2
70 lines (56 loc) · 1.64 KB
/
package.yml
File metadata and controls
70 lines (56 loc) · 1.64 KB
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
name: Package
on:
workflow_dispatch:
push:
branches:
- develop-engine-snapshot
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-latest, windows-latest]
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Check out engine submodule
run: git submodule update --init engine
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 22
cache: yarn
- name: Set up Java
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 17
- name: Install GNU Make (macOS)
if: runner.os == 'macOS'
run: brew install make
- name: Cache Maven dependencies
uses: actions/cache@v4
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-maven-
- name: Install dependencies
run: yarn install --frozen-lockfile --ignore-scripts
- name: Build and package (macOS)
if: runner.os == 'macOS'
run: yarn dist-debug:mac
- name: Build and package (Windows)
if: runner.os == 'Windows'
run: yarn dist-debug:win
- name: Upload artifact (macOS)
if: runner.os == 'macOS'
uses: actions/upload-artifact@v4
with:
name: daisy-pipeline-mac
path: dist/*.pkg
- name: Upload artifact (Windows)
if: runner.os == 'Windows'
uses: actions/upload-artifact@v4
with:
name: daisy-pipeline-win
path: dist/*.exe