-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
--------- Signed-off-by: rmdg88 <[email protected]> Signed-off-by: Michele Dolfi <[email protected]> Co-authored-by: Michele Dolfi <[email protected]>
- Loading branch information
1 parent
73ac4b6
commit 8e93d57
Showing
22 changed files
with
650 additions
and
433 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
#!/bin/bash | ||
|
||
set -e # trigger failure on error - do not remove! | ||
set -x # display command on output | ||
|
||
# Build the Python package with Poetry | ||
poetry build -f sdist | ||
|
||
USE_SYSTEM_DEPS="ON" | ||
|
||
docker build --progress=plain \ | ||
--build-arg USE_SYSTEM_DEPS="$USE_SYSTEM_DEPS" \ | ||
-f - . <<EOF | ||
# syntax=docker/dockerfile:1 | ||
FROM quay.io/centos/centos:stream9 | ||
RUN dnf config-manager --set-enabled crb | ||
RUN dnf copr -y enable cheimes/deepsearch-glm rhel-9-x86_64 | ||
RUN dnf install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm \ | ||
&& dnf clean all | ||
RUN dnf install -y --nodocs \ | ||
autoconf automake binutils cmake gcc gcc-c++ git glibc-devel glibc-headers glibc-static kernel-devel libtool libstdc++-devel make ninja-build pkgconfig zlib-devel \ | ||
python3.11 python3.11-pip python3.11-devel \ | ||
cxxopts-devel fasttext-devel fmt-devel json-schema-validator-devel pcre2-devel sentencepiece-devel utf8cpp-devel \ | ||
&& dnf clean all | ||
# RUN dnf install -y --nodocs loguru-devel | ||
# TEMPORARY loguru install method | ||
# https://koji.fedoraproject.org/koji/buildinfo?buildID=2563067 | ||
RUN curl -O https://kojipkgs.fedoraproject.org//packages/loguru/2.2.0%5E20230406git4adaa18/5.el9/x86_64/loguru-2.2.0%5E20230406git4adaa18-5.el9.x86_64.rpm | ||
RUN dnf install -y loguru-2.2.0%5E20230406git4adaa18-5.el9.x86_64.rpm | ||
RUN curl -O https://kojipkgs.fedoraproject.org//packages/loguru/2.2.0%5E20230406git4adaa18/5.el9/x86_64/loguru-devel-2.2.0%5E20230406git4adaa18-5.el9.x86_64.rpm | ||
RUN dnf install -y loguru-devel-2.2.0%5E20230406git4adaa18-5.el9.x86_64.rpm | ||
RUN mkdir /src | ||
COPY ./dist/*.tar.gz /src/ | ||
ARG USE_SYSTEM_DEPS | ||
RUN USE_SYSTEM_DEPS=\$USE_SYSTEM_DEPS pip3.11 install /src/deepsearch_glm*.tar.gz | ||
COPY ./tests /src/tests | ||
RUN cd /src \ | ||
&& pip3.11 install pytest \ | ||
&& pytest ./tests/test_glm.py -v | ||
EOF |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
on: | ||
workflow_call: | ||
|
||
jobs: | ||
run-checks: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: ./.github/actions/setup-poetry | ||
- name: Run build in docker | ||
run: ./.github/scripts/build_rhel.sh | ||
shell: bash |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.