-
Notifications
You must be signed in to change notification settings - Fork 35
39 lines (37 loc) · 1.1 KB
/
build_benchmarker.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
name: Build Benchmarker
on:
push:
branches:
- 'test/benchmarker'
- 'dev/benchmarker'
jobs:
build_wasm:
name: Compile Benchmarker to WASM
runs-on: ubuntu-latest
permissions:
contents: write
statuses: write
steps:
- uses: actions/checkout@v4
- name: Install
run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
- name: Cargo Build
run: >
wasm-pack build tig-benchmarker --release --target web;
rm tig-benchmarker/pkg/.gitignore;
- name: Auto commit
id: auto_commit
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: Add compiled WASM for benchmarker
- name: Update Commit Status (Success)
if: success()
uses: myrotvorets/set-commit-status-action@master
with:
status: 'success'
sha: ${{ steps.auto_commit.outputs.commit_hash }}
- name: Update Commit Status (Failure)
if: failure()
uses: myrotvorets/set-commit-status-action@master
with:
status: 'failure'