Skip to content

Commit

Permalink
Build an Alpine container for CI
Browse files Browse the repository at this point in the history
This will be used for running tests using Alpine/musl.
  • Loading branch information
yorickpeterse committed Sep 13, 2024
1 parent 3a17396 commit 742e1c2
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/containers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ jobs:
uses: ./.github/workflows/container.yml
with:
name: 'fedora'
alpine:
uses: ./.github/workflows/container.yml
with:
name: 'alpine'
debian-amd64:
uses: ./.github/workflows/container.yml
with:
Expand Down
14 changes: 14 additions & 0 deletions ci/docker/alpine/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
FROM alpine:3

ENV LLVM_VERSION 17
ENV RUST_VERSION 1.78

ENV PATH /opt/cargo/bin:$PATH
ENV RUSTUP_HOME /opt/rustup
ENV CARGO_HOME /opt/cargo

RUN apk add --update build-base tar git rustup \
llvm$LLVM_VERSION llvm$LLVM_VERSION-dev libstdc++-dev

RUN rustup-init --quiet -y --no-modify-path --profile minimal \
--component clippy,rustfmt --default-toolchain $RUST_VERSION

0 comments on commit 742e1c2

Please sign in to comment.