Skip to content

Commit

Permalink
ci: Update .github/workflows/Dockerfile-x86_64-alpine
Browse files Browse the repository at this point in the history
  • Loading branch information
aboeglin committed Jun 20, 2023
1 parent 96bbb63 commit cdcdf79
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/Dockerfile-x86_64-alpine
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ RUN apk add --no-cache --upgrade grep
RUN git clone https://github.com/llvm/llvm-project.git --branch llvmorg-12.0.0 --depth 1
RUN cd llvm-project/llvm && mkdir build

RUN ls -l ..
# The flag LLVM_ENABLE_PROJECTS is crucial, otherwise only llvm will be built, without clang or lld,
# and we need all three with the exact same version since C++ does not have a stable ABI.
RUN cd llvm-project/llvm/build && cmake -DCMAKE_BUILD_TYPE=Release -DLLVM_EXPERIMENTAL_TARGETS_TO_BUILD="AVR" -DLLVM_ENABLE_LIBXML2=OFF -DLLVM_ENABLE_TERMINFO=OFF -DLLVM_ENABLE_PROJECTS="clang;lld" ..
Expand All @@ -35,6 +34,9 @@ RUN ~/.ghcup/bin/ghcup set stack 2.11.1
RUN apk add --update nodejs npm
RUN npm i -g rollup @rollup/plugin-node-resolve

# run the build
COPY . .

# build runtime
RUN TARGET="MUSL_X64" sh ./scripts/build-runtime-libs
RUN AR="llvm-ar" TARGET="MUSL_X64" sh ./scripts/build-runtime
Expand Down

0 comments on commit cdcdf79

Please sign in to comment.