File tree Expand file tree Collapse file tree 5 files changed +19
-54
lines changed Expand file tree Collapse file tree 5 files changed +19
-54
lines changed Original file line number Diff line number Diff line change 26
26
os : ubuntu-24.04
27
27
28
28
- artifact : arm64-linux
29
- os : ubuntu-24.04
30
- rust_target : aarch64-unknown-linux-gnu
31
- env :
32
- # Don't build a sysroot for this cross-compiled target since it
33
- # would require a host compiler and the sysroot is otherwise
34
- # already built on other CI builders.
35
- WASI_SDK_CI_SKIP_SYSROOT : 1
36
-
37
- WASI_SDK_CI_TOOLCHAIN_LLVM_CMAKE_ARGS : >-
38
- -DCMAKE_C_COMPILER=aarch64-linux-gnu-gcc
39
- -DCMAKE_CXX_COMPILER=aarch64-linux-gnu-g++
40
- -DCMAKE_CROSSCOMPILING=True
41
- -DCMAKE_CXX_FLAGS=-march=armv8-a
42
- -DCMAKE_SYSTEM_PROCESSOR=arm64
43
- -DCMAKE_SYSTEM_NAME=Linux
44
- -DLLVM_HOST_TRIPLE=aarch64-linux-gnu
45
- -DRUST_TARGET=aarch64-unknown-linux-gnu
29
+ os : ubuntu-24.04-arm
46
30
47
31
- artifact : arm64-macos
48
32
os : macos-14
89
73
mkdir -p '${{ runner.tool_cache }}/ccache'
90
74
echo 'CCACHE_DIR=${{ runner.tool_cache }}/ccache' >> $GITHUB_ENV
91
75
shell: bash
76
+ # Remove and reinstall rust as default install seems broken on Ubuntu arm
77
+ - run : rm -rf $HOME/.rustup $HOME/.cargo
78
+ if : matrix.os == 'ubuntu-24.04-arm'
79
+
80
+ - uses : actions-rust-lang/setup-rust-toolchain@v1
81
+ if : matrix.os == 'ubuntu-24.04-arm'
92
82
93
83
# Configure CMake flags for `ci/build.sh` as necessary for each
94
84
# matrix entry.
Original file line number Diff line number Diff line change 1
1
#! /bin/sh
2
2
3
3
# This is a helper script invoked from CI which will execute the `ci/build.sh`
4
- # script within a docker container. This builds `ci/docker/Dockerfile.common`
5
- # along with the specified `ci/docker/Dockerfile.$x` from the command line.
4
+ # script within a docker container. This contain is built using the Dockerfile located at `ci/docker/Dockerfile`
6
5
# This container is then used to execute `ci/build.sh`.
7
6
8
7
set -e
16
15
17
16
set -x
18
17
19
- # Build the base image which the image below can used.
20
- docker build \
21
- --file ci/docker/Dockerfile.common \
22
- --tag wasi-sdk-builder-base \
23
- ci/docker
24
-
25
- # Build the container that is going to be used
26
- docker build \
27
- --file ci/docker/Dockerfile.$1 \
28
- --tag wasi-sdk-builder \
29
- ci/docker
18
+ # Build the Docker imager
19
+ docker build --tag wasi-sdk-builder ci/docker
30
20
31
21
# Perform the build in `/src`. The current directory is mounted read-write at
32
22
# this location as well. To ensure that container-created files are reasonable
Original file line number Diff line number Diff line change @@ -19,17 +19,20 @@ RUN apt-get update \
19
19
20
20
# Install a more recent version of CMake than what 18.04 has since that's what
21
21
# LLVM requires.
22
- RUN curl -sSLO https://github.com/Kitware/CMake/releases/download/v3.29.5/cmake-3.29.5-linux-x86_64.tar.gz \
23
- && tar xf cmake-3.29.5-linux-x86_64.tar.gz \
24
- && rm cmake-3.29.5-linux-x86_64.tar.gz \
22
+ RUN ARCH=$(uname -m) \
23
+ && curl -sSLO https://github.com/Kitware/CMake/releases/download/v3.29.5/cmake-3.29.5-linux-${ARCH}.tar.gz \
24
+ && tar xf cmake-3.29.5-linux-${ARCH}.tar.gz \
25
+ && rm cmake-3.29.5-linux-${ARCH}.tar.gz \
25
26
&& mkdir -p /opt \
26
- && mv cmake-3.29.5-linux-x86_64 /opt/cmake
27
+ && mv cmake-3.29.5-linux-${ARCH} /opt/cmake
27
28
28
29
ENV PATH /opt/cmake/bin:$PATH
29
30
30
31
# As with CMake install a later version of Ninja than waht 18.04 has.
31
- RUN curl -sSLO https://github.com/ninja-build/ninja/releases/download/v1.12.1/ninja-linux.zip \
32
- && unzip ninja-linux.zip \
32
+ RUN ARCH=$(uname -m) \
33
+ && if [ "$ARCH" = "aarch64" ]; then SUFFIX=-aarch64; fi \
34
+ && curl -sSL -o ninja.zip https://github.com/ninja-build/ninja/releases/download/v1.12.1/ninja-linux${SUFFIX}.zip \
35
+ && unzip ninja.zip \
33
36
&& rm *.zip \
34
37
&& mv ninja /opt/cmake/bin
35
38
Load Diff This file was deleted.
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments