File tree Expand file tree Collapse file tree 1 file changed +51
-0
lines changed
Expand file tree Collapse file tree 1 file changed +51
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Store rust cache
2+
3+ # This workflow is needed since any cache created
4+ # on a feature-branch will NOT be available on any other ref.
5+ # See: https://github.com/actions/cache/issues/79
6+
7+ on :
8+ workflow_dispatch :
9+
10+ jobs :
11+ cache :
12+ name : Store cache
13+ runs-on : ubuntu-latest
14+ steps :
15+ - name : Checkout
16+ uses : actions/checkout@v4
17+ with :
18+ filter : blob:none
19+
20+ - name : Create env file
21+ run : |
22+ echo NAVIGATION_DATA_SIGNED_URL=${{ secrets.NAVIGATION_DATA_SIGNED_URL }} >> .env
23+ echo SENTRY_URL=${{ secrets.SENTRY_URL }} >> .env
24+
25+ - uses : oven-sh/setup-bun@v2
26+ with :
27+ bun-version : latest
28+
29+ - name : Install node modules
30+ run : bun i --frozen-lockfile
31+
32+ - name : Set up Docker Buildx
33+ uses : docker/setup-buildx-action@v3
34+
35+ - name : Build cargo-msfs image
36+ uses : docker/build-push-action@v5
37+ with :
38+ context : .
39+ file : Dockerfile
40+ tags : navigation-data-interface-wasm-build
41+ cache-from : type=gha
42+ cache-to : type=gha
43+
44+ - name : Cache target directories
45+ uses : actions/cache@v4
46+ with :
47+ path : targets
48+ key : rust-targets
49+
50+ - name : Build WASM
51+ run : bun run build:wasm && bun run package
You can’t perform that action at this time.
0 commit comments