-
Notifications
You must be signed in to change notification settings - Fork 29
61 lines (60 loc) · 1.54 KB
/
pr.yml
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
name: PR
on:
pull_request:
types:
- opened
- synchronize
- reopened
- ready_for_review
jobs:
lint:
name: Lint
runs-on: windows-latest
steps:
- name: Checkout source
uses: actions/checkout@v4
- name: set Node version
uses: actions/setup-node@v3
with:
node-version: 18
- name: Install dependencies
run: |
npm install
cd apps/remote/
npm install
- name: npm run lint
run: |
npm run lint
build:
name: Build and upload SimBridge
runs-on: windows-latest
env:
RELEASE_ZIP_NAME: fbw-simbridge.zip
BUILD_DIR_NAME: pr
steps:
- name: Checkout source
uses: actions/checkout@v4
- name: set Node version
uses: actions/setup-node@v3
with:
node-version: 18
- name: Install dependencies
run: |
npm install
cd apps/remote/
npm install
- name: Build SimBridge
run: |
npm run typecheck
npm run build:exec
- name: Build ZIP File
run: |
node .\scripts\fragment.js
mkdir .\${{env.BUILD_DIR_NAME}}
Compress-Archive -Path .\build\* .\${{env.BUILD_DIR_NAME }}\${{ env.RELEASE_ZIP_NAME }}
- name: Upload PR artifact
uses: actions/upload-artifact@v4
if: github.event.pull_request.auto_merge == false
with:
name: flybywire-external-simbridge
path: .\${{env.BUILD_DIR_NAME }}\${{ env.RELEASE_ZIP_NAME }}