File tree 1 file changed +50
-0
lines changed
1 file changed +50
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Deploy
2
+ on :
3
+ push :
4
+ branches : ["main"]
5
+ workflow_dispatch :
6
+
7
+ concurrency :
8
+ group : ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
9
+ cancel-in-progress : true
10
+
11
+ jobs :
12
+ pages :
13
+ permissions :
14
+ pages : write
15
+ id-token : write
16
+ environment :
17
+ name : github-pages
18
+ url : ${{ steps.deployment.outputs.page_url }}
19
+ runs-on : ubuntu-latest
20
+ steps :
21
+ - name : Checkout sources
22
+ uses : actions/checkout@v4
23
+ - name : Cache
24
+ uses : actions/cache@v3
25
+ with :
26
+ path : |
27
+ ~/.cargo/bin/
28
+ ~/.cargo/registry/index/
29
+ ~/.cargo/registry/cache/
30
+ ~/.cargo/git/db/
31
+ target/
32
+ key : ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.toml') }}
33
+ - name : Install stable toolchain
34
+ uses : dtolnay/rust-toolchain@stable
35
+ with :
36
+ components : clippy, rustfmt
37
+ targets : wasm32-unknown-unknown
38
+ - name : Install Dependencies
39
+ run : |
40
+ sudo apt-get update
41
+ sudo apt-get install --no-install-recommends libasound2-dev libudev-dev
42
+ cargo install -f wasm-bindgen-cli
43
+ - name : Build wasm version
44
+ run : make release-wasm
45
+ - name : Upload artifact
46
+ uses : actions/upload-pages-artifact@v2
47
+ with :
48
+ path : target/web/release
49
+ - name : Deploy to GitHub Pages
50
+ uses : actions/deploy-pages@v2
You can’t perform that action at this time.
0 commit comments