Skip to content

Commit

Permalink
chore(ci): Fixing symlink in compiler artifatcs
Browse files Browse the repository at this point in the history
  • Loading branch information
BourgerieQuentin committed Nov 29, 2024
1 parent 15d7452 commit 0ccd780
Showing 1 changed file with 21 additions and 34 deletions.
55 changes: 21 additions & 34 deletions .github/workflows/concrete_python_tests_linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,17 +91,30 @@ 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
cd /concrete/frontends/concrete-python
export COMPILER_BUILD_DIRECTORY="/build"
make whl
- 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: Upload wheel
uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3
with:
name: concrete-python-wheel
path: frontends/concrete-python/dist/*manylinux*.whl
retention-days: 3
- name: Slack Notification
if: ${{ failure() && github.ref == 'refs/heads/main' }}
continue-on-error: true
Expand All @@ -128,29 +141,11 @@ jobs:
- name: Download concrete-compiler python-bindings
uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
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
echo "$PWD"
export COMPILER_BUILD_DIRECTORY=${{ github.workspace }}/compiler-artifacts
echo "$COMPILER_BUILD_DIRECTORY"
tree $COMPILER_BUILD_DIRECTORY
echo "DEBUG END"
dnf -y install graphviz graphviz-devel
cd ${{ github.workspace }}/frontends/concrete-python
make PYTHON=${{ format('python{0}', env.python-version) }} venv
source .venv/bin/activate
make whl
name: concrete-python-wheel
path: wheel
- name: Check documentation
run: |

Check failure on line 147 in .github/workflows/concrete_python_tests_linux.yml

View workflow job for this annotation

GitHub Actions / action-lint

shellcheck reported issue in this script: SC2125:warning:2:16: Brace expansions and globs are literal in assignments. Quote it or use an array
WHEEL_DIR=${{ github.workspace }}/frontends/concrete-python/dist/
WHEEL_DIR=${{ github.workspace }}/wheel
CONCRETE_WHEEL="${WHEEL_DIR}"/*.whl .github/workflows/scripts/make_apidocs.sh
- name: Upload docs.patch if failure
if: ${{ failure() }}
Expand Down Expand Up @@ -178,10 +173,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:
Expand Down Expand Up @@ -218,10 +209,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:
Expand Down

0 comments on commit 0ccd780

Please sign in to comment.