Skip to content

Commit

Permalink
workflow SQLX_OFFLINE
Browse files Browse the repository at this point in the history
  • Loading branch information
vsilent committed Nov 15, 2024
1 parent 70a743d commit 1c8ea9a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,8 @@ jobs:

- name: Run cargo build
uses: actions-rs/cargo@v1
env:
SQLX_OFFLINE: true
with:
command: build
args: --release
Expand Down
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ COPY ./src ./src
#RUN ls -la /app/ >&2
#RUN sqlx migrate run
#RUN cargo sqlx prepare -- --bin stacker
ENV SQLX_OFFLINE true

RUN apt-get update && apt-get install --no-install-recommends -y libssl-dev; \
cargo build --bin=console --features="explain" && cargo build --release --features="explain"
Expand Down

0 comments on commit 1c8ea9a

Please sign in to comment.