diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml index 5352ddb128d..4cea5ce1f1c 100644 --- a/.github/workflows/nightly.yml +++ b/.github/workflows/nightly.yml @@ -62,17 +62,21 @@ jobs: - tools steps: - uses: actions/checkout@v2 - - name: Build and push Docker images - uses: docker/build-push-action@v1 + - uses: docker/setup-qemu-action@v1 + - uses: docker/setup-buildx-action@v1 + - uses: docker/login-action@v1 with: username: ${{ secrets.DOCKER_USERNAME }} password: ${{ secrets.DOCKER_PASSWORD }} - repository: vesoft/nebula-${{ matrix.service }} - path: . - dockerfile: docker/Dockerfile.${{ matrix.service }} - tags: nightly,v2-nightly - cache_froms: vesoft/nebula-dev:centos7 - add_git_labels: true + - uses: docker/build-push-action@v2 + with: + context: . + file: ./docker/Dockerfile.${{ matrix.service }} + platforms: linux/amd64,linux/arm64 + tags: | + vesoft/nebula-${{ matrix.service }}:nightly + vesoft/nebula-${{ matrix.service }}:v2-nightly + push: true coverage: name: coverage @@ -113,12 +117,12 @@ jobs: -DENABLE_TESTING=on \ -DENABLE_COVERAGE=on \ -B build - echo "::set-output name=j::10" + echo "::set-output name=j::8" echo "::set-output name=t::6" - name: Make run: | ccache -z - cmake --build build/ -j $(nproc) --target nebula-metad nebula-storaged nebula-graphd + cmake --build build/ -j ${{ steps.cmake.outputs.j }} --target nebula-metad nebula-storaged nebula-graphd cmake --build build/ -j ${{ steps.cmake.outputs.t }} ccache -s - name: CTest