Skip to content

Commit

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

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

RUN . $HOME/.cargo/env && \
cargo test --verbose && \
cargo build --verbose --release
RUN mkdir -p /workspace
WORKDIR /workspace

CMD ["/bin/bash", "-c", ". $HOME/.cargo/env && cargo test --verbose && cargo build --verbose --release"]
6 changes: 5 additions & 1 deletion .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,16 @@ jobs:
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Build and push
- name: Build Container
uses: docker/build-push-action@v4
with:
context: .
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 e4713d8

Please sign in to comment.