Skip to content

Commit 675de8a

Browse files
authored
Merge pull request #279 from Rustmail/278-switch-to-github-self-hosted-runners
build(ci): switch to GitHub self hosted runners
2 parents 57d46b7 + 29cb7b8 commit 675de8a

2 files changed

Lines changed: 8 additions & 8 deletions

File tree

.github/workflows/ci.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ env:
1010
jobs:
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

rustmail_panel/Trunk.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ generate-integrity = false
55
[[hooks]]
66
stage = "post_build"
77
command = "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 {} \\;"]

0 commit comments

Comments
 (0)