/ concept-collection / matmul-bench
Sign in
concept-collection / matmul-bench
matmul-bench / .github / workflows / deploy.yml
64 lines · 1.4 KBBlameHistoryRaw
1name: Deploy to GitHub Pages
3on:
4 push:
5 branches:
6 - main
7 workflow_dispatch:
9permissions:
10 contents: read
11 pages: write
12 id-token: write
14concurrency:
15 group: "pages"
16 cancel-in-progress: false
18jobs:
19 build:
20 runs-on: ubuntu-latest
21 steps:
22 - name: Checkout
23 uses: actions/checkout@v4
25 - name: Setup Node
26 uses: actions/setup-node@v4
27 with:
28 node-version: '20'
29 cache: 'npm'
31 - name: Install dependencies
32 run: npm ci
34 - name: Setup emsdk
35 uses: mymindstorm/setup-emsdk@v14
36 with:
37 version: 5.0.4
38 actions-cache-folder: 'emsdk-cache'
40 # Builds the custom C kernels (wasm/dist/matmul.* + public/matmul/matmul_mt.*).
41 # The libFLAME/BLIS modules (public/matmul/matmul_blis_*) are committed
42 # vendored binaries — they link prebuilt libraries not available here — so
43 # nothing outside this repo is needed to produce the full site.
44 - name: Build custom wasm kernels
45 run: bash wasm/build-wasm.sh
47 - name: Build
48 run: npm run build
50 - name: Upload artifact
51 uses: actions/upload-pages-artifact@v3
52 with:
53 path: ./dist
55 deploy:
56 environment:
57 name: github-pages
58 url: ${{ steps.deployment.outputs.page_url }}
59 runs-on: ubuntu-latest
60 needs: build
61 steps:
62 - name: Deploy to GitHub Pages
63 id: deployment
64 uses: actions/deploy-pages@v4
moveopenescclose