fix(ci): specify new rust crates path

This commit is contained in:
alyssa 2025-01-02 02:45:27 +00:00
parent cb5b9fde8b
commit c998a66a46
2 changed files with 3 additions and 7 deletions

View file

@ -3,12 +3,10 @@
# Include project code and build files # Include project code and build files
!PluralKit.*/ !PluralKit.*/
!services/
!lib/
!Myriad/ !Myriad/
!.git !.git
!proto
!dashboard !dashboard
!crates/
!Cargo.toml !Cargo.toml
!Cargo.lock !Cargo.lock
@ -25,4 +23,4 @@
**/node_modules **/node_modules
# don't clear docker cache when updating dockerfiles # don't clear docker cache when updating dockerfiles
Dockerfile Dockerfile

View file

@ -23,9 +23,7 @@ RUN cargo chef cook --release --recipe-path recipe.json --target x86_64-unknown-
COPY Cargo.toml /build/ COPY Cargo.toml /build/
COPY Cargo.lock /build/ COPY Cargo.lock /build/
# this needs to match workspaces in Cargo.toml COPY crates/ /build/crates
COPY lib /build/lib
COPY services/ /build/services
RUN cargo build --bin api --release --target x86_64-unknown-linux-musl RUN cargo build --bin api --release --target x86_64-unknown-linux-musl
RUN cargo build --bin dispatch --release --target x86_64-unknown-linux-musl RUN cargo build --bin dispatch --release --target x86_64-unknown-linux-musl