Skip to content

Commit

Permalink
fix: copy the files into the docker container during build
Browse files Browse the repository at this point in the history
  • Loading branch information
ccrutchf committed Dec 1, 2024
1 parent e4713d8 commit 5be7629
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/Dockerfile.build
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ RUN apt-get update && \

RUN curl https://sh.rustup.rs -sSf | bash -s -- -y

RUN mkdir -p /workspace
COPY . /workspace
WORKDIR /workspace

CMD ["/bin/bash", "-c", ". $HOME/.cargo/env && cargo test --verbose && cargo build --verbose --release"]
RUN . $HOME/.cargo/env && \
cargo test --verbose && \
cargo build --verbose --release
3 changes: 0 additions & 3 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,6 @@ jobs:
platforms: linux/amd64,linux/arm64
tags: builder
file: .github/workflows/Dockerfile.build
- name: Build Rust
run: |
docker run --rm -v .:/workspace --platform=linux/amd64 builder
- name: Archive Linux x86_64 Results
uses: actions/upload-artifact@v4
with:
Expand Down

0 comments on commit 5be7629

Please sign in to comment.