-
Notifications
You must be signed in to change notification settings - Fork 14
67 lines (55 loc) · 1.65 KB
/
wasm.yml
File metadata and controls
67 lines (55 loc) · 1.65 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
name: wasm-ci
on:
push:
branches:
- main
pull_request:
branches:
- main
permissions:
contents: write
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
VCPKG_FEATURE_FLAGS: "-manifests"
EM_VERSION: 4.0.11
EM_CACHE_FOLDER: 'emsdk-cache'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
with:
submodules: recursive
- name: Cache vcpkg binaries
id: cache-vcpkg
uses: actions/cache@v5
with:
path: |
${{ github.workspace }}/vcpkg/buildtrees
${{ github.workspace }}/vcpkg/packages
${{ github.workspace }}/vcpkg/downloads
${{ github.workspace }}/vcpkg/installed
${{ github.workspace }}/vcpkg/.cache
key: vcpkg-${{ runner.os }}-${{ github.workflow }}-${{ hashFiles('**/vcpkg.json') }}
restore-keys: |
vcpkg-${{ runner.os }}-${{ github.workflow }}-
- uses: lukka/run-vcpkg@v11
- name: Setup EMSDK cache
id: cache-system-libraries
uses: actions/cache@v5
with:
path: ${{env.EM_CACHE_FOLDER}}
key: ${{env.EM_VERSION}}-${{ runner.os }}
- name: Setup Emscripten toolchain
uses: mymindstorm/setup-emsdk@v15
with:
version: ${{env.EM_VERSION}}
actions-cache-folder: ${{env.EM_CACHE_FOLDER}}
- uses: lukka/run-vcpkg@v11
- name: Build WebAssembly libraries
run: ${{ github.workspace }}/scripts/build-wasm.sh build
- name: Upload artifacts
uses: actions/upload-artifact@v7
with:
name: wasm-artifacts
path: build/core.*