update Earthfile

This commit is contained in:
Anton-4 2024-12-14 11:54:58 +01:00 committed by GitHub
parent 10ebd029cb
commit 1f15f632a6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 10 additions and 10 deletions

View file

@ -1,5 +1,5 @@
on:
pull_request:
# pull_request:
name: CI manager

View file

@ -1,5 +1,5 @@
on:
#pull_request:
pull_request:
workflow_dispatch:
schedule:
- cron: '0 9 * * *'

View file

@ -1,5 +1,5 @@
on:
#pull_request:
pull_request:
workflow_dispatch:
schedule:
- cron: '0 9 * * *'

View file

@ -16,20 +16,20 @@ install-zig-llvm:
ARG ZIG_ARCH
FROM +install-other-libs
# zig
RUN wget -c https://ziglang.org/download/0.11.0/zig-linux-$ZIG_ARCH-0.11.0.tar.xz --no-check-certificate
RUN tar -xf zig-linux-$ZIG_ARCH-0.11.0.tar.xz
RUN ln -s /earthbuild/zig-linux-$ZIG_ARCH-0.11.0/zig /bin/zig
RUN wget -c https://ziglang.org/download/0.13.0/zig-linux-$ZIG_ARCH-0.13.0.tar.xz --no-check-certificate
RUN tar -xf zig-linux-$ZIG_ARCH-0.13.0.tar.xz
RUN ln -s /earthbuild/zig-linux-$ZIG_ARCH-0.13.0/zig /bin/zig
# zig builtins wasm tests
RUN apt -y install build-essential
# llvm
RUN apt -y install lsb-release software-properties-common gnupg
RUN wget https://apt.llvm.org/llvm.sh
RUN chmod +x llvm.sh
RUN ./llvm.sh 16
RUN ln -s /usr/bin/clang-16 /usr/bin/clang
RUN ./llvm.sh 18
RUN ln -s /usr/bin/clang-18 /usr/bin/clang
# use lld as linker
RUN ln -s /usr/bin/lld-16 /usr/bin/ld.lld
RUN apt -y install libpolly-16-dev # required by llvm-sys crate
RUN ln -s /usr/bin/lld-18 /usr/bin/ld.lld
RUN apt -y install libpolly-18-dev # required by llvm-sys crate
ENV RUSTFLAGS="-C link-arg=-fuse-ld=lld -C target-cpu=native"
RUN apt -y install libssl-dev
RUN wget https://rustwasm.github.io/wasm-pack/installer/init.sh -O init.sh && sh init.sh