-
Notifications
You must be signed in to change notification settings - Fork 18
47 lines (44 loc) · 1.05 KB
/
lib.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
name: Library
on:
push:
paths:
- 'lib/**'
jobs:
build-wasm:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: goto-bus-stop/setup-zig@v2
with:
version: master
- run: zig build -Doptimize=ReleaseSmall
working-directory: lib/src/dat-analysis
- uses: actions/upload-artifact@v3
with:
name: wasm-artifact
path: lib/src/dat-analysis/zig-out/bin/analysis.wasm
retention-days: 1
if-no-files-found: error
build-lib:
needs: build-wasm
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/download-artifact@v3
with:
name: wasm-artifact
path: lib/dist
- uses: actions/setup-node@v3
with:
node-version: 18
- run: yarn
working-directory: lib
- run: yarn tsc
working-directory: lib
- run: npm pack
working-directory: lib
- uses: actions/upload-artifact@v3
with:
name: package
path: lib/pathofexile-dat-*.tgz
retention-days: 1