From 94df9ee21db25b6dc57ae01f0f1e118e507b7440 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Test=C3=A9?= Date: Wed, 11 Jan 2023 14:55:42 +0100 Subject: [PATCH] chore(ci): remove legacy linux build and test job --- .github/workflows/continuous-integration.yml | 118 ------------------- 1 file changed, 118 deletions(-) diff --git a/.github/workflows/continuous-integration.yml b/.github/workflows/continuous-integration.yml index 410e265bb..bb236c1b0 100644 --- a/.github/workflows/continuous-integration.yml +++ b/.github/workflows/continuous-integration.yml @@ -55,124 +55,6 @@ jobs: - name: Check if sources include the license header run: .github/workflows/scripts/check_for_license.sh - BuildAndTest: - runs-on: ubuntu-20.04 - # We want to always run the tests unless cancelled, but after the docker image build job. - # If there is no new build then we use the old image, else we use the new image. - if: ${{ !cancelled() }} - needs: [BuildAndPushDockerImages] - steps: - # Free 4Gb of workspace - - name: Freeing space - run: | - df -h - for image in ubuntu:{16,18}.04 \ - node:{12,14,16}{-alpine,} \ - buildpack-deps:{stretch,buster,bullseye} \ - debian:{9,10,11} alpine:3.{12,13,14} \ - moby/buildkit:latest docker:20.10 - do - docker image rm $image || echo Please clean remove it from this step - done - df -h - - # A SSH private key is required as some dependencies are from private repos - - uses: webfactory/ssh-agent@v0.5.2 - with: - ssh-private-key: ${{ secrets.CONCRETE_COMPILER_CI_SSH_PRIVATE }} - - - uses: actions/checkout@v3 - with: - submodules: recursive - token: ${{ secrets.GH_TOKEN }} - - - name: Create build dir - run: mkdir build - - - name: Set up ssh auth in docker - run: | - echo "SSH_AUTH_SOCK_DIR=$(dirname $SSH_AUTH_SOCK)" >> "${GITHUB_ENV}" - - - name: Build compiler - uses: addnab/docker-run-action@v3 - id: build-compiler - with: - registry: ghcr.io - image: ${{ env.DOCKER_IMAGE_TEST }} - username: ${{ secrets.GHCR_LOGIN }} - password: ${{ secrets.GHCR_PASSWORD }} - options: >- - -v ${{ github.workspace }}/llvm-project:/llvm-project - -v ${{ github.workspace }}/compiler:/compiler - -v ${{ github.workspace }}/build:/build - -v ${{ env.SSH_AUTH_SOCK }}:/ssh.socket - -e SSH_AUTH_SOCK=/ssh.socket - shell: bash - run: | - set -e - cd /compiler/concrete-optimizer - cargo build --release -p concrete-optimizer-cpp - cd /compiler - rm -rf /build/* - pip install pytest - sed "s/pytest/python -m pytest/g" -i Makefile - make DATAFLOW_EXECUTION_ENABLED=ON CCACHE=ON Python3_EXECUTABLE=$PYTHON_EXEC BUILD_DIR=/build all build-end-to-end-dataflow-tests - echo "Debug: ccache statistics (after the build):" - ccache -s - - - name: Test compiler - uses: addnab/docker-run-action@v3 - with: - registry: ghcr.io - image: ${{ env.DOCKER_IMAGE_TEST }} - username: ${{ secrets.GHCR_LOGIN }} - password: ${{ secrets.GHCR_PASSWORD }} - options: >- - -v ${{ github.workspace }}/llvm-project:/llvm-project - -v ${{ github.workspace }}/compiler:/compiler - -v ${{ github.workspace }}/build:/build - shell: bash - run: | - set -e - cd /compiler - pip install pytest - make DATAFLOW_EXECUTION_ENABLED=ON CCACHE=ON Python3_EXECUTABLE=$PYTHON_EXEC BUILD_DIR=/build run-tests run-end-to-end-dataflow-tests run-rust-tests - - - name: Build the documentation - id: build-doc - if: ${{ steps.build-compiler.outcome == 'success' && !cancelled() }} - uses: addnab/docker-run-action@v3 - with: - registry: ghcr.io - image: ${{ env.DOCKER_IMAGE_TEST }} - username: ${{ secrets.GHCR_LOGIN }} - password: ${{ secrets.GHCR_PASSWORD }} - options: >- - -v ${{ github.workspace }}/compiler:/compiler - -v ${{ github.workspace }}/llvm-project:/llvm-project - -v ${{ github.workspace }}/docs:/docs - -v ${{ env.SSH_AUTH_SOCK }}:/ssh.socket - -e SSH_AUTH_SOCK=/ssh.socket - shell: bash - run: | - set -e - rm -rf /build - make DATAFLOW_EXECUTION_ENABLED=ON CCACHE=ON Python3_EXECUTABLE=$PYTHON_EXEC BUILD_DIR=/build concretecompiler python-bindings doc - cd /docs - pip install -r requirements.txt - pip install -r ../llvm-project/mlir/python/requirements.txt - dnf install -y doxygen - sed "s/sphinx-apidoc/python -m sphinx.ext.apidoc/g" -i Makefile - sed "s/sphinx-build/python -m sphinx.cmd.build/g" -i Makefile - make COMPILER_BUILD_DIR=/build/ doc - - - name: Archive docs artifacts - if: ${{ steps.build-doc.outcome == 'success' && !cancelled() }} - uses: actions/upload-artifact@v3 - with: - name: html-docs - path: docs/_build/html - BuildAndTestMacOS: runs-on: macos-11 steps: