Skip to content

Commit 47275ce

Browse files
committed
fix(ci): clean project before build frontend
1 parent 9b77dea commit 47275ce

1 file changed

Lines changed: 20 additions & 5 deletions

File tree

.github/workflows/release-ci.yml

Lines changed: 20 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,17 @@ jobs:
3030
- name: Set up Rust
3131
run: rustup update ${{ matrix.toolchain }} && rustup default ${{ matrix.toolchain }}
3232

33-
- name: Install trunk and wasm target
33+
- name: Install trunk, wasm-bindgen-cli and wasm target
3434
run: |
3535
rustup target add wasm32-unknown-unknown
3636
cargo install trunk --locked
37+
cargo install wasm-bindgen-cli
38+
39+
- name: Clean cargo cache and target directory
40+
run: |
41+
cargo clean
42+
rm -rf target
43+
rm -rf rustmail_panel/target
3744
3845
- name: Build frontend
3946
working-directory: rustmail_panel
@@ -89,13 +96,22 @@ jobs:
8996
- name: Add wasm32 target
9097
run: rustup target add wasm32-unknown-unknown
9198

92-
- name: Install trunk
93-
run: cargo install trunk --locked
99+
- name: Install trunk and wasm-bindgen-cli
100+
run: |
101+
cargo install trunk --locked
102+
cargo install wasm-bindgen-cli
94103
95104
- name: Create static directory
96105
run: mkdir -p rustmail/static
97106
shell: bash
98107

108+
- name: Clean cargo cache and target directory
109+
run: |
110+
cargo clean
111+
rm -rf target
112+
rm -rf rustmail_panel/target
113+
shell: bash
114+
99115
- name: Build frontend
100116
working-directory: rustmail_panel
101117
run: trunk build --release --dist ../rustmail/static --config Trunk.toml
@@ -171,5 +187,4 @@ jobs:
171187
tags: ${{ steps.meta.outputs.tags }}
172188
labels: ${{ steps.meta.outputs.labels }}
173189
platforms: linux/amd64
174-
cache-from: type=gha
175-
cache-to: type=gha,mode=max
190+
no-cache: true

0 commit comments

Comments
 (0)