diff --git a/.github/workflows/docker-image-upload.yml b/.github/workflows/docker-image-upload.yml index 3d62a2d..5f14d10 100644 --- a/.github/workflows/docker-image-upload.yml +++ b/.github/workflows/docker-image-upload.yml @@ -102,6 +102,35 @@ jobs: run: docker buildx imagetools create -t ghcr.io/${{ github.repository_owner }}/su2/build-su2-tsan:${{ needs.date-tag.outputs.date_tag }} ghcr.io/${{ github.repository_owner }}/su2/build-su2-tsan-amd64:${{ needs.date-tag.outputs.date_tag }} # ghcr.io/${{ github.repository_owner }}/su2/build-su2-tsan-arm64:${{ needs.date-tag.outputs.date_tag }} + build-su2-asan: + needs: [date-tag, build-su2] + if: ${{ always() && !(contains(needs.*.result, 'failure')) }} + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v3 + + - name: Set up QEMU + uses: docker/setup-qemu-action@v2 + with: + platforms: arm64 + + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v2 + + - name: Login to Github Docker Registry + uses: docker/login-action@v2 + with: + registry: ghcr.io + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} + + - name: Docker Buildx Create + run: docker buildx create --use + + - name: Build and push build-su2-asan + run: docker buildx build --platform=linux/amd64 --platform=linux/arm64 --build-arg BASE_IMAGE=ghcr.io/${{ github.repository_owner }}/su2/build-su2:${{ needs.date-tag.outputs.date_tag }} -t ghcr.io/${{ github.repository_owner }}/su2/build-su2-asan:${{ needs.date-tag.outputs.date_tag }} --push --file ./build/Dockerfile.asan ./build/ + test-su2: needs: [date-tag, build-su2, build-su2-tsan] if: ${{ always() && !(contains(needs.*.result, 'failure')) }}