Skip to content

Commit a4b4013

Browse files
committed
ci: add cache to release workflows
1 parent e8de612 commit a4b4013

File tree

2 files changed

+38
-0
lines changed

2 files changed

+38
-0
lines changed

.github/workflows/pre-release.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,25 @@ jobs:
2525
- name: Install node modules
2626
run: bun i --frozen-lockfile
2727

28+
- name: Set up Docker Buildx
29+
uses: docker/setup-buildx-action@v3
30+
31+
- name: Build cargo-msfs image
32+
uses: docker/build-push-action@v5
33+
with:
34+
context: .
35+
file: Dockerfile
36+
tags: navigation-data-interface-wasm-build:latest
37+
load: true
38+
cache-from: type=gha
39+
cache-to: type=gha
40+
41+
- name: Cache target directories
42+
uses: actions/cache@v4
43+
with:
44+
path: targets
45+
key: rust-targets
46+
2847
- name: Build WASM
2948
run: bun run build:wasm && bun run package
3049

.github/workflows/release.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,25 @@ jobs:
2626
- name: Install node modules
2727
run: bun i --frozen-lockfile
2828

29+
- name: Set up Docker Buildx
30+
uses: docker/setup-buildx-action@v3
31+
32+
- name: Build cargo-msfs image
33+
uses: docker/build-push-action@v5
34+
with:
35+
context: .
36+
file: Dockerfile
37+
tags: navigation-data-interface-wasm-build:latest
38+
load: true
39+
cache-from: type=gha
40+
cache-to: type=gha
41+
42+
- name: Cache target directories
43+
uses: actions/cache@v4
44+
with:
45+
path: targets
46+
key: rust-targets
47+
2948
- name: Build WASM
3049
run: bun run build:wasm && bun run package
3150

0 commit comments

Comments
 (0)