File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1010jobs :
1111 build_and_test :
1212 name : Rustmail - latest
13- runs-on : ubuntu-latest
13+ runs-on : self-hosted
1414 env :
1515 SQLX_OFFLINE : true
1616 strategy :
@@ -21,14 +21,14 @@ jobs:
2121 - nightly
2222 steps :
2323 - uses : actions/checkout@v4
24+ with :
25+ clean : ' false'
2426
25- - name : Set up Rust
26- run : rustup update ${{ matrix.toolchain }} && rustup default ${{ matrix.toolchain }}
27-
28- - name : Install trunk and wasm target
27+ - name : Setup Rust environment
2928 run : |
30- rustup target add wasm32-unknown-unknown
31- cargo install trunk --locked
29+ echo "$HOME/.cargo/bin" >> $GITHUB_PATH
30+ echo "CARGO_HOME=$HOME/.cargo" >> $GITHUB_ENV
31+ echo "RUSTUP_HOME=$HOME/.rustup" >> $GITHUB_ENV
3232
3333 - name : Build frontend
3434 working-directory : rustmail_panel
Original file line number Diff line number Diff line change @@ -5,4 +5,4 @@ generate-integrity = false
55[[hooks ]]
66stage = " post_build"
77command = " sh"
8- command_arguments = [" -c" , " find ../rustmail/static -name '*.wasm' -exec wasm-opt --debug - Oz {} -o {} \\ ;" ]
8+ command_arguments = [" -c" , " find ../rustmail/static -name '*.wasm' -exec wasm-opt -Oz {} -o {} \\ ;" ]
You can’t perform that action at this time.
0 commit comments