1
1
name : Checks
2
2
3
+ n
4
+
3
5
on :
4
6
pull_request :
5
7
workflow_dispatch :
@@ -22,38 +24,37 @@ jobs:
22
24
- name : 🔑 Checkout
23
25
uses : actions/checkout@v4
24
26
25
- - name : Install Nix
26
- uses : cachix/install-nix-action@v30
27
+ - name : 🦀 Set up Rust
28
+ run : |
29
+ rustup set auto-self-update disable
30
+ rustup toolchain install 1.81.0 --profile minimal
31
+ rustup default 1.81.0
27
32
28
- - name : Setup Cachix
29
- uses : cachix/cachix-action@v15
33
+ - name : Setup Rust Cache
34
+
30
35
with :
31
- name : ' devenv '
36
+ prefix-key : v0 # increment this to bust the cache if needed
32
37
33
- - name : Install devenv.sh
34
- run : nix profile install nixpkgs#devenv
38
+ - name : Install sccache
39
+ uses :
mozilla-actions/[email protected]
40
+ env :
41
+ RUSTC_WRAPPER : ' sccache'
42
+ SCCACHE_GHA_ENABLED : true
35
43
36
- - name : Install direnv
37
- run : |
38
- nix profile install nixpkgs#direnv
39
- nix profile install nixpkgs#nix-direnv
44
+ - name : 🐰 Set up Bun
45
+ uses : oven-sh/setup-bun@main
46
+ with :
47
+ bun-version : ' latest '
40
48
41
49
- name : Format
42
50
run : |
43
- direnv allow
44
- taplo fmt *.toml
51
+ bunx taplo@latest fmt *.toml
45
52
cargo fmt --all --check
46
- nixfmt *.nix --width=100
47
- sqlfluff format --dialect sqlite schema.sql
48
53
49
54
- name : Lint
50
55
run : |
51
- direnv allow
52
- taplo lint *.toml
53
- sqlfluff lint --dialect sqlite schema.sql
56
+ bunx taplo@latest lint *.toml
54
57
cargo clippy --all-targets --all-features -- -D warnings
55
58
56
- - name : Build
57
- run : |
58
- direnv allow
59
- cargo build --release --target wasm32-unknown-unknown
59
+ - name : 🛠️ Build worker
60
+ run : cargo install --quiet worker-build && worker-build --release
0 commit comments