use toolchain

This commit is contained in:
Andras Schmelczer 2025-03-15 17:13:27 +00:00
parent aad93fef84
commit 2987afb20a
No known key found for this signature in database
GPG key ID: FC8F2C3D3D1A718C
4 changed files with 11 additions and 9 deletions

View file

@ -19,9 +19,6 @@ jobs:
- name: Setup
run: |
rustup install nightly
rustup default nightly
rustup component add clippy rustfmt
cargo install sqlx-cli
cd backend
sqlx database create --database-url sqlite://db.sqlite3
@ -44,7 +41,7 @@ jobs:
cd backend
cargo test --verbose
cd sync_lib
# wasm-pack test --node # todo: fix this in CI
wasm-pack test --node
- name: Lint frontend
run: |
@ -62,3 +59,12 @@ jobs:
run: |
cd frontend
npm run test
- name: E2E tests
run: |
cd ../backend
UST_BACKTRACE=1 cargo run -p sync_server &
cd -
npm run build
test-client/run.sh 32

View file

@ -23,8 +23,6 @@ jobs:
- name: Build wasm
run: |
cd backend
rustup install nightly
rustup default nightly
cargo install wasm-pack
wasm-pack build --target web sync_lib

View file

@ -3,8 +3,6 @@ FROM rust:1.83 AS builder
WORKDIR /usr/src/backend
RUN apt update && apt install -y musl-tools
RUN rustup install nightly && rustup default nightly
RUN rustup target add x86_64-unknown-linux-musl
RUN cargo install sqlx-cli
COPY . .

View file

@ -1,4 +1,4 @@
[toolchain]
channel = "nightly-2025-03-14"
targets = [ "x86_64-unknown-linux-gnu" ]
targets = [ "x86_64-unknown-linux-gnu", "x86_64-unknown-linux-musl" ]
profile = "default"