diff --git a/Earthfile b/Earthfile index f621b313..083cd55f 100644 --- a/Earthfile +++ b/Earthfile @@ -349,18 +349,16 @@ argon2-ndll: RUN apt-get update \ && DEBIAN_FRONTEND=noninteractive apt-get install -y \ build-essential \ + cmake \ && rm -r /var/lib/apt/lists/* - RUN curl -fsSL "https://github.com/Kitware/CMake/releases/download/v3.24.0/cmake-3.24.0-linux-x86_64.sh" -o cmake-install.sh \ - && sh cmake-install.sh --skip-license --prefix /usr/local \ - && rm cmake-install.sh - DO +INSTALL_NEKO RUN neko -version COPY lib/argon2 lib/argon2 RUN mkdir lib/argon2/build RUN cmake -B lib/argon2/build -S lib/argon2 + RUN make -C lib/argon2/build Argon2 RUN make -C lib/argon2/build SAVE ARTIFACT lib/argon2/build/argon2.ndll diff --git a/lib/argon2/CMakeLists.txt b/lib/argon2/CMakeLists.txt index c3155e3e..cc2aebb3 100644 --- a/lib/argon2/CMakeLists.txt +++ b/lib/argon2/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 3.23) +cmake_minimum_required(VERSION 3.16.3) project(Argon2Ndll C)