Skip to content

Commit

Permalink
use dockerfile instead of downloading packages at compile time
Browse files Browse the repository at this point in the history
  • Loading branch information
b1ek committed Dec 17, 2024
1 parent 812d5f1 commit 935fd9f
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,13 +81,18 @@ jobs:
test_container
bash
run: |
docker run --network host --detach --name test_container ${{ matrix.bash_docker_image }} sleep infinity
echo "FROM ${{ matrix.bash_docker_image }}" > Dockerfile
# coreutils includes mktemp
docker exec test_container apk add coreutils curl
apks="coreutils curl"
if [ "${{ matrix.sed }}" == "GNU sed" ]; then
docker exec test_container apk add sed
apks="$apks sed"
fi
echo "RUN apk add $apks" >> Dockerfile
docker build -t testbash .
docker run --network host --detach --name test_container testbash sleep infinity
cargo test --all-targets --all-features
docker stop test_container -t 0
docker rm --force test_container
clippy:
name: Clippy tests
Expand Down

0 comments on commit 935fd9f

Please sign in to comment.