-
Notifications
You must be signed in to change notification settings - Fork 1
51 lines (41 loc) · 1.24 KB
/
cache.yml
File metadata and controls
51 lines (41 loc) · 1.24 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
name: Store rust cache
# This workflow is needed since any cache created
# on a feature-branch will NOT be available on any other ref.
# See: https://github.com/actions/cache/issues/79
on:
workflow_dispatch:
jobs:
cache:
name: Store cache
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v6
with:
filter: blob:none
- name: Create env file
run: |
echo NAVIGATION_DATA_SIGNED_URL=${{ secrets.NAVIGATION_DATA_SIGNED_URL }} >> .env
echo SENTRY_URL=${{ secrets.SENTRY_URL }} >> .env
- uses: oven-sh/setup-bun@v2
with:
bun-version: latest
- name: Install node modules
run: bun i --frozen-lockfile
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v4
- name: Build cargo-msfs image
uses: docker/build-push-action@v7
with:
context: .
file: Dockerfile
tags: navigation-data-interface-wasm-build
cache-from: type=gha
cache-to: type=gha
- name: Cache target directories
uses: actions/cache@v5
with:
path: targets
key: rust-targets
- name: Build WASM
run: bun run build:wasm