From 5be7629eb3d1fb7a09bac3f905980131f70bde66 Mon Sep 17 00:00:00 2001 From: "Christopher L. Crutchfield" Date: Sat, 30 Nov 2024 16:22:26 -0800 Subject: [PATCH] fix: copy the files into the docker container during build --- .github/workflows/Dockerfile.build | 6 ++++-- .github/workflows/rust.yml | 3 --- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/.github/workflows/Dockerfile.build b/.github/workflows/Dockerfile.build index 8f72ab5..7f24cad 100644 --- a/.github/workflows/Dockerfile.build +++ b/.github/workflows/Dockerfile.build @@ -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"] \ No newline at end of file +RUN . $HOME/.cargo/env && \ + cargo test --verbose && \ + cargo build --verbose --release \ No newline at end of file diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index d931f2e..f6c9afa 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -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: