File tree Expand file tree Collapse file tree 9 files changed +31
-6
lines changed Expand file tree Collapse file tree 9 files changed +31
-6
lines changed Original file line number Diff line number Diff line change
1
+ name : ' Install ninja'
2
+ description : ' Install ninja'
3
+
4
+ runs :
5
+ using : composite
6
+ steps :
7
+ - name : Install ninja (macOS)
8
+ run : brew install ninja
9
+ if : runner.os == 'macOS'
10
+ shell : bash
11
+ - name : Install ninja (Windows)
12
+ run : choco install ninja
13
+ if : runner.os == 'Windows'
14
+ shell : bash
15
+ - name : Install ninja (Linux)
16
+ run : sudo apt-get update && sudo apt-get install -y ninja-build
17
+ if : runner.os == 'Linux'
18
+ shell : bash
Original file line number Diff line number Diff line change 28
28
elif [ "${{ inputs.toolchain }}" = "msrv" ]; then
29
29
echo "version=1.$msrv.0" >> "$GITHUB_OUTPUT"
30
30
elif [ "${{ inputs.toolchain }}" = "wasmtime-ci-pinned-nightly" ]; then
31
- echo "version=nightly-2024-10-02 " >> "$GITHUB_OUTPUT"
31
+ echo "version=nightly-2024-10-22 " >> "$GITHUB_OUTPUT"
32
32
else
33
33
echo "version=${{ inputs.toolchain }}" >> "$GITHUB_OUTPUT"
34
34
fi
Original file line number Diff line number Diff line change @@ -1088,6 +1088,7 @@ jobs:
1088
1088
with :
1089
1089
submodules : true
1090
1090
1091
+ - uses : ./.github/actions/install-ninja
1091
1092
- uses : ./.github/actions/install-rust
1092
1093
with :
1093
1094
toolchain : ${{ matrix.rust }}
Original file line number Diff line number Diff line change @@ -45,6 +45,7 @@ cargo build --release $flags --target $target -p wasmtime-cli $bin_flags --featu
45
45
mkdir -p target/c-api-build
46
46
cd target/c-api-build
47
47
cmake \
48
+ -G Ninja \
48
49
../../crates/c-api \
49
50
$cmake_flags \
50
51
-DCMAKE_BUILD_TYPE=Release \
Original file line number Diff line number Diff line change 1
1
FROM ubuntu:16.04
2
2
3
- RUN apt-get update -y && apt-get install -y gcc gcc-aarch64-linux-gnu ca-certificates curl make git
3
+ RUN apt-get update -y && apt-get install -y gcc gcc-aarch64-linux-gnu ca-certificates curl make git ninja-build
4
4
RUN git config --global --add safe.directory '*'
5
5
6
6
# The CMake in Ubuntu 16.04 was a bit too old for us to use so download one from
Original file line number Diff line number Diff line change 1
1
FROM ubuntu:22.04
2
2
3
- RUN apt-get update -y && apt-get install -y gcc gcc-riscv64-linux-gnu ca-certificates cmake git
3
+ RUN apt-get update -y && apt-get install -y gcc gcc-riscv64-linux-gnu ca-certificates cmake git ninja-build
4
4
RUN git config --global --add safe.directory '*'
5
5
6
6
ENV CARGO_TARGET_RISCV64GC_UNKNOWN_LINUX_GNU_LINKER=riscv64-linux-gnu-gcc
Original file line number Diff line number Diff line change 1
1
FROM ubuntu:16.04
2
2
3
- RUN apt-get update -y && apt-get install -y gcc gcc-s390x-linux-gnu ca-certificates curl make git
3
+ RUN apt-get update -y && apt-get install -y gcc gcc-s390x-linux-gnu ca-certificates curl make git ninja-build
4
4
RUN git config --global --add safe.directory '*'
5
5
6
6
# The CMake in Ubuntu 16.04 was a bit too old for us to use so download one from
Original file line number Diff line number Diff line change 1
1
FROM almalinux:8
2
2
3
- RUN dnf install -y git gcc make cmake git
3
+ RUN dnf install -y git gcc make cmake git unzip
4
4
RUN git config --global --add safe.directory '*'
5
+
6
+ WORKDIR /usr/local/bin
7
+ RUN curl -LO https://github.com/ninja-build/ninja/releases/download/v1.12.1/ninja-linux.zip
8
+ RUN unzip ./ninja-linux
9
+ WORKDIR /
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ RUN apk add libgcc
6
6
# Use something glibc-based for the actual compile because the Rust toolchain
7
7
# we're using is glibc-based in CI.
8
8
FROM ubuntu:24.04
9
- RUN apt-get update -y && apt-get install -y cmake musl-tools git
9
+ RUN apt-get update -y && apt-get install -y cmake musl-tools git ninja-build
10
10
COPY --from=libgcc_s_src /usr/lib/libgcc_s.so.1 /usr/lib/x86_64-linux-musl
11
11
RUN git config --global --add safe.directory '*'
12
12
You can’t perform that action at this time.
0 commit comments