-
Notifications
You must be signed in to change notification settings - Fork 10
63 lines (56 loc) · 1.73 KB
/
pull_request.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
62
63
name: Process new extensions
on: [pull_request]
jobs:
process:
name: Process new extensions
runs-on: ubuntu-latest
steps:
- name: Checkout extensions
uses: actions/checkout@v3
- name: Checkout dist
uses: actions/checkout@v3
with:
repository: moonlight-mod/extensions-dist
path: dist
ref: main
ssh-key: ${{ secrets.DIST_SSH_KEY }}
persist-credentials: true
- name: Checkout runner
uses: actions/checkout@v3
with:
repository: moonlight-mod/extensions-runner
path: runner
ref: main
- name: Setup pnpm
uses: pnpm/action-setup@v2
with:
version: 9
run_install: false
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 18
- name: Build runner Docker image
run: |
cd ${{ github.workspace }}/runner
docker build -t moonlight-mod/extensions-runner:latest .
cd ${{ github.workspace }}
- name: Run runner
env:
EXT_MANIFESTS_PATH: ${{ github.workspace }}/exts
EXT_DIST_PATH: ${{ github.workspace }}/dist
EXT_RUNNER_PATH: ${{ github.workspace }}/runner
EXT_WORK_PATH: ${{ github.workspace }}/work
run: |
cd $EXT_RUNNER_PATH
pnpm run runner
cd ${{ github.workspace }}
- name: Upload changed asars
uses: actions/upload-artifact@v4
with:
name: asars
path: ${{ github.workspace }}/work/changed/*.asar
- name: Write state
continue-on-error: true
run: cat ${{ github.workspace }}/work/state.md >> $GITHUB_STEP_SUMMARY
shell: bash