Parcourir la source

Update CI Docker image

DarthSim il y a 1 an
Parent
commit
9e6a66deec
3 fichiers modifiés avec 12 ajouts et 2 suppressions
  1. 10 0
      .github/workflows/Dockerfile
  2. 1 1
      .github/workflows/lint.yml
  3. 1 1
      .github/workflows/test.yml

+ 10 - 0
.github/workflows/Dockerfile

@@ -9,6 +9,7 @@ RUN apt-get -qq update \
     build-essential \
     python3-pip \
     python3-venv \
+    libssl-dev \
     libglib2.0-dev \
     libxml2-dev \
     libjpeg-dev \
@@ -29,6 +30,15 @@ RUN apt-get -qq update \
   && /root/.python/bin/pip install meson ninja \
   && rm -rf /var/lib/apt/lists/*
 
+RUN curl https://sh.rustup.rs -sSf | sh -s -- -y \
+  && export PATH="/root/.cargo/bin:$PATH" \
+  && cargo install cargo-c \
+  && cd /root \
+  && git clone --depth 1 https://github.com/DarthSim/quantizr.git \
+  && cd quantizr \
+  && cargo cinstall --release --library-type=cdylib \
+  && rm -rf /root/.rustup /root/.cargo
+
 ENV PATH="/root/.python/bin:$PATH"
 
 RUN \

+ 1 - 1
.github/workflows/lint.yml

@@ -11,7 +11,7 @@ jobs:
   lint:
     runs-on: ubuntu-latest
     container:
-      image: darthsim/imgproxy-ci:202309122140
+      image: darthsim/imgproxy-ci:202310031902
     strategy:
       matrix:
         go-version: ["1.21.x"]

+ 1 - 1
.github/workflows/test.yml

@@ -11,7 +11,7 @@ jobs:
   test:
     runs-on: ubuntu-latest
     container:
-      image: darthsim/imgproxy-ci:202309122140
+      image: darthsim/imgproxy-ci:202310031902
     strategy:
       matrix:
         go-version: ["1.21.x", "1.20.x", "1.19.x"]