-
Notifications
You must be signed in to change notification settings - Fork 31
43 lines (35 loc) · 1.04 KB
/
build-and-test.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
name: build-and-test
run-name: Build and test ${{ github.sha }}
on: [push]
jobs:
build:
# This should be ubuntu-latest, but as of 2023-10-06ish, it has problems
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '18'
- uses: mymindstorm/setup-emsdk@v12
with:
version: 3.1.69
actions-cache-folder: 'cache-emsdk'
- uses: actions/cache@v3
name: Cache dependencies
with:
key: cache-dependencies-${{ hashFiles('mk/*') }}
path: build/*.tar*
- run: make extract
#- uses: bhowell2/[email protected]
# id: sha
# with:
# value: ${{ github.sha }}
# length_from_start: 7
#- run: make release -j9 LIBAVJS_VERSION_SUFFIX=-${{ steps.sha.outputs.substring }}
#- uses: actions/upload-artifact@v3
# with:
# name: build
# path: libav.js-*.zip
- run: make
- run: make build-all
- run: npm test