From f665991240f60b93e811ff406d97b5f56ebb2d21 Mon Sep 17 00:00:00 2001 From: Yee <2520865+yixinglu@users.noreply.github.com> Date: Mon, 8 Nov 2021 22:22:25 +0800 Subject: [PATCH] Let the build workflow depend on release workflow (#4) * Let the build workflow depend on release workflow * Use self-hosted runner to build --- .github/workflows/build.yml | 88 ----------------------------------- .github/workflows/release.yml | 76 ++++++++++++++++++++++++++++++ 2 files changed, 76 insertions(+), 88 deletions(-) delete mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml deleted file mode 100644 index abea593..0000000 --- a/.github/workflows/build.yml +++ /dev/null @@ -1,88 +0,0 @@ -name: build - -on: - push: - branches: - - master - -defaults: - run: - shell: bash - -concurrency: - group: ${{ github.workflow }} - cancel-in-progress: true - -jobs: - gcc: - name: gcc - runs-on: ubuntu-latest - strategy: - fail-fast: false - matrix: - os: - - centos-7 - - debian-8 - arch: - - amd64 - - arm64 - version: - # - 7.5.0 - # - 8.3.0 - # - 9.1.0 - - 9.2.0 - # - 9.3.0 - # - 10.1.0 - steps: - - uses: actions/checkout@v1 - - uses: docker/login-action@v1 - with: - username: ${{ secrets.DOCKER_USERNAME }} - password: ${{ secrets.DOCKER_PASSWORD }} - - uses: docker/setup-qemu-action@v1 - - uses: docker/setup-buildx-action@v1 - - uses: docker/build-push-action@v2 - with: - context: . - file: ./docker/images/buildx/${{ matrix.os }}.Dockerfile - platforms: linux/${{ matrix.arch }} - tags: vesoft/toolset-build:${{ matrix.os }}-${{ matrix.arch }}-${{ matrix.version }} - push: false - build-args: | - BUILD_GCC_VERSIONS=${{ matrix.version }} - secrets: | - "ossutilconfig=${{ secrets.OSS_UTIL_CONFIG }}" - llvm: - name: llvm - runs-on: ubuntu-latest - strategy: - fail-fast: false - matrix: - os: - - centos-7 - - debian-8 - arch: - - amd64 - - arm64 - version: - # - 9.0.0 - - 10.0.0 - steps: - - uses: actions/checkout@v1 - - uses: docker/login-action@v1 - with: - username: ${{ secrets.DOCKER_USERNAME }} - password: ${{ secrets.DOCKER_PASSWORD }} - - uses: docker/setup-qemu-action@v1 - - uses: docker/setup-buildx-action@v1 - - uses: docker/build-push-action@v2 - with: - context: . - file: ./docker/images/buildx/${{ matrix.os }}.Dockerfile - platforms: linux/${{ matrix.arch }} - tags: vesoft/toolset-build:${{ matrix.os }}-${{ matrix.arch }}-${{ matrix.version }} - push: false - build-args: | - BUILD_LLVM_VERSIONS=${{ matrix.version }} - secrets: | - "ossutilconfig=${{ secrets.OSS_UTIL_CONFIG }}" diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 0f1454b..01f98d0 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -44,3 +44,79 @@ jobs: asset_path: build/nebula-gears-installer.sh asset_name: nebula-gears-installer.sh asset_content_type: application/x-sh + + gcc: + name: gcc + needs: build + runs-on: [self-hosted, nebula] + strategy: + fail-fast: false + matrix: + os: + - centos-7 + - debian-8 + arch: + - amd64 + - arm64 + version: + # - 7.5.0 + # - 8.3.0 + # - 9.1.0 + - 9.2.0 + # - 9.3.0 + # - 10.1.0 + steps: + - uses: actions/checkout@v1 + - uses: docker/login-action@v1 + with: + username: ${{ secrets.DOCKER_USERNAME }} + password: ${{ secrets.DOCKER_PASSWORD }} + - uses: docker/setup-qemu-action@v1 + - uses: docker/setup-buildx-action@v1 + - uses: docker/build-push-action@v2 + with: + context: . + file: ./docker/images/buildx/${{ matrix.os }}.Dockerfile + platforms: linux/${{ matrix.arch }} + tags: vesoft/toolset-build:${{ matrix.os }}-${{ matrix.arch }}-${{ matrix.version }} + push: false + build-args: | + BUILD_GCC_VERSIONS=${{ matrix.version }} + secrets: | + "ossutilconfig=${{ secrets.OSS_UTIL_CONFIG }}" + + llvm: + name: llvm + needs: build + runs-on: [self-hosted, nebula] + strategy: + fail-fast: false + matrix: + os: + - centos-7 + - debian-8 + arch: + - amd64 + - arm64 + version: + # - 9.0.0 + - 10.0.0 + steps: + - uses: actions/checkout@v1 + - uses: docker/login-action@v1 + with: + username: ${{ secrets.DOCKER_USERNAME }} + password: ${{ secrets.DOCKER_PASSWORD }} + - uses: docker/setup-qemu-action@v1 + - uses: docker/setup-buildx-action@v1 + - uses: docker/build-push-action@v2 + with: + context: . + file: ./docker/images/buildx/${{ matrix.os }}.Dockerfile + platforms: linux/${{ matrix.arch }} + tags: vesoft/toolset-build:${{ matrix.os }}-${{ matrix.arch }}-${{ matrix.version }} + push: false + build-args: | + BUILD_LLVM_VERSIONS=${{ matrix.version }} + secrets: | + "ossutilconfig=${{ secrets.OSS_UTIL_CONFIG }}"