From 64e6a602fd02f954475837e7174b0cf707138786 Mon Sep 17 00:00:00 2001 From: Slava <20563034+veaceslavdoina@users.noreply.github.com> Date: Sat, 10 Feb 2024 19:48:40 +0200 Subject: [PATCH] Install Rust during Docker builds (#703) * Install Rust during Docker builds Signed-off-by: Slava <20563034+veaceslavdoina@users.noreply.github.com> * Stop CI matrix on error --------- Signed-off-by: Slava <20563034+veaceslavdoina@users.noreply.github.com> --- .github/workflows/ci-reusable.yml | 1 - docker/codex.Dockerfile | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci-reusable.yml b/.github/workflows/ci-reusable.yml index 6578f2da..401ef161 100644 --- a/.github/workflows/ci-reusable.yml +++ b/.github/workflows/ci-reusable.yml @@ -27,7 +27,6 @@ jobs: name: '${{ matrix.os }}-${{ matrix.cpu }}-${{ matrix.nim_version }}-${{ matrix.tests }}' runs-on: ${{ matrix.builder }} timeout-minutes: 80 - continue-on-error: true steps: - name: Checkout sources uses: actions/checkout@v4 diff --git a/docker/codex.Dockerfile b/docker/codex.Dockerfile index 2c039252..eb312766 100644 --- a/docker/codex.Dockerfile +++ b/docker/codex.Dockerfile @@ -14,8 +14,8 @@ ARG MAKE_PARALLEL ARG NIMFLAGS RUN apt-get update && apt-get install -y git cmake curl make bash lcov build-essential nim -RUN echo 'export NIMBLE_DIR="${HOME}/.nimble"' >> "${HOME}/.bash_env" -RUN echo 'export PATH="${NIMBLE_DIR}/bin:${PATH}"' >> "${HOME}/.bash_env" +RUN curl --proto '=https' --tlsv1.3 https://sh.rustup.rs -sSf | sh -s -- -y +ENV PATH="/root/.cargo/bin:${PATH}" WORKDIR ${BUILD_HOME} COPY . .