use toolchain
This commit is contained in:
parent
aad93fef84
commit
2987afb20a
4 changed files with 11 additions and 9 deletions
14
.github/workflows/check.yml
vendored
14
.github/workflows/check.yml
vendored
|
|
@ -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
|
||||
|
|
|
|||
2
.github/workflows/publish-plugin.yml
vendored
2
.github/workflows/publish-plugin.yml
vendored
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -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 . .
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue