From 675ef4387f87f45ae5ca48bcce45e845b694384e Mon Sep 17 00:00:00 2001 From: Quentin Bourgerie Date: Thu, 28 Nov 2024 15:56:05 +0100 Subject: [PATCH] chore(ci): Fixing symlink in compiler artifatcs --- .../workflows/concrete_python_tests_linux.yml | 30 +++++++------------ 1 file changed, 11 insertions(+), 19 deletions(-) diff --git a/.github/workflows/concrete_python_tests_linux.yml b/.github/workflows/concrete_python_tests_linux.yml index 4cf761a0f..e52e9bdf3 100644 --- a/.github/workflows/concrete_python_tests_linux.yml +++ b/.github/workflows/concrete_python_tests_linux.yml @@ -91,17 +91,20 @@ jobs: echo "Debug: ccache statistics (after the build):" ccache -s - - name: Create artifact archive - run: | - cd build - tar czvf artifacts.tgz lib/libConcretelangRuntime.so tools/concretelang/python_packages + + for f in $(find /build/tools/concretelang/python_packages/concretelang_core/ -type l); + do + cp --remove-destination $(readlink -e $f) $f + done - name: Upload concrete-compiler python-bindings uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3 with: name: concrete-compiler-python-bindings include-hidden-files: true retention-days: 3 - path: build/artifacts.tgz + path: | + ./build/lib/libConcretelangRuntime.so + ./build/tools/concretelang/python_packages/ - name: Slack Notification if: ${{ failure() && github.ref == 'refs/heads/main' }} continue-on-error: true @@ -130,11 +133,6 @@ jobs: with: name: concrete-compiler-python-bindings path: compiler-artifacts - - name: Extract artifacts archive - run: | - cd compiler-artifacts - echo "$PWD" - tar xzvf artifacts.tgz - name: Build wheel run: | set -e @@ -143,7 +141,9 @@ jobs: echo "$COMPILER_BUILD_DIRECTORY" tree $COMPILER_BUILD_DIRECTORY echo "DEBUG END" - dnf -y install graphviz graphviz-devel + # Install extra requirements for tests + sudo apt update -y + sudo apt install -y graphviz libgraphviz-dev cd ${{ github.workspace }}/frontends/concrete-python make PYTHON=${{ format('python{0}', env.python-version) }} venv source .venv/bin/activate @@ -178,10 +178,6 @@ jobs: with: name: concrete-compiler-python-bindings path: compiler-artifacts - - name: Extract artifacts archive - run: | - cd compiler-artifacts - tar xzvf artifacts.tgz - name: Run pytest uses: addnab/docker-run-action@4f65fabd2431ebc8d299f8e5a018d79a769ae185 # v3 with: @@ -218,10 +214,6 @@ jobs: with: name: concrete-compiler-python-bindings path: compiler-artifacts - - name: Extract artifacts archive - run: | - cd compiler-artifacts - tar xzvf artifacts.tgz - name: Run pytest uses: addnab/docker-run-action@4f65fabd2431ebc8d299f8e5a018d79a769ae185 # v3 with: