diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index b9aefc24b..af9e6cfb7 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -13,47 +13,47 @@ jobs: # - run: cmake --build . --target lib3mf_memcheck # working-directory: ./build # -# build-linux-ubi8-gcc12: -# runs-on: ubuntu-20.04 -# steps: -# - run: sudo apt update -# - run: sudo apt install -y uuid-dev -# - uses: actions/checkout@v2 -# with: -# submodules: true -# - run: mkdir -p build -# - run: zip -r build/bindings.zip Autogenerated/Bindings -# -# - name: Archive bindings -# uses: actions/upload-artifact@v2 -# with: -# name: bindings.zip -# path: build/bindings.zip -# - name: Set up Docker Buildx -# uses: docker/setup-buildx-action@v3 -# - name: Docker Build -# uses: docker/build-push-action@v5 -# with: -# context: . -# file: ./CI/Dockerfile -# platforms: linux/amd64 -# tags: lib3mf_ubi8:latest -# load: true -# - name: Docker Extract -# uses: shrink/actions-docker-extract@v3.0.0 -# id: extract -# with: -# image: lib3mf_ubi8:latest -# path: out.zip -# destination: dist -# -# - run: unzip out.zip -# working-directory: ./dist -# - name: Upload Artifact -# uses: actions/upload-artifact@v2 -# with: -# name: lib3mf.so -# path: dist/lib3mf.so.2 + build-linux-ubi8-gcc12: + runs-on: ubuntu-20.04 + steps: + - run: sudo apt update + - run: sudo apt install -y uuid-dev + - uses: actions/checkout@v2 + with: + submodules: true + - run: mkdir -p build + - run: zip -r build/bindings.zip Autogenerated/Bindings + + - name: Archive bindings + uses: actions/upload-artifact@v2 + with: + name: bindings.zip + path: build/bindings.zip + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + - name: Docker Build + uses: docker/build-push-action@v5 + with: + context: . + file: ./CI/Dockerfile + platforms: linux/amd64 + tags: lib3mf_ubi8:latest + load: true + - name: Docker Extract + uses: shrink/actions-docker-extract@v3.0.0 + id: extract + with: + image: lib3mf_ubi8:latest + path: out.zip + destination: dist + + - run: unzip out.zip + working-directory: ./dist + - name: Upload Artifact + uses: actions/upload-artifact@v2 + with: + name: lib3mf.so + path: dist/lib3mf.so.2 # # build-macos: # runs-on: macos-latest @@ -457,6 +457,7 @@ jobs: integration-tests-latest-commit: runs-on: ubuntu-20.04 + needs: [build-linux-ubi8-gcc12] steps: - name: Checkout code uses: actions/checkout@v2