Skip to content

Commit ebd58c2

Browse files
committed
fix: temp ci
1 parent 2bc2c0e commit ebd58c2

File tree

2 files changed

+25
-22
lines changed

2 files changed

+25
-22
lines changed

Diff for: .github/workflows/ci.yml

+23-22
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
name: Checks
22

3+
n
4+
35
on:
46
pull_request:
57
workflow_dispatch:
@@ -22,38 +24,37 @@ jobs:
2224
- name: 🔑 Checkout
2325
uses: actions/checkout@v4
2426

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
2732
28-
- name: Setup Cachix
29-
uses: cachix/cachix-action@v15
33+
- name: Setup Rust Cache
34+
uses: Swatinem/[email protected]
3035
with:
31-
name: 'devenv'
36+
prefix-key: v0 # increment this to bust the cache if needed
3237

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
3543

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'
4048

4149
- name: Format
4250
run: |
43-
direnv allow
44-
taplo fmt *.toml
51+
bunx taplo@latest fmt *.toml
4552
cargo fmt --all --check
46-
nixfmt *.nix --width=100
47-
sqlfluff format --dialect sqlite schema.sql
4853
4954
- name: Lint
5055
run: |
51-
direnv allow
52-
taplo lint *.toml
53-
sqlfluff lint --dialect sqlite schema.sql
56+
bunx taplo@latest lint *.toml
5457
cargo clippy --all-targets --all-features -- -D warnings
5558
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

Diff for: README.md

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# URL Shortener - Cloudflare Worker
2+
13
## Usage
24

35
> [!NOTE]

0 commit comments

Comments
 (0)