Skip to content

Commit

Permalink
Let the build workflow depend on release workflow (#4)
Browse files Browse the repository at this point in the history
* Let the build workflow depend on release workflow

* Use self-hosted runner to build
  • Loading branch information
yixinglu authored Nov 8, 2021
1 parent b5cd9c0 commit f665991
Show file tree
Hide file tree
Showing 2 changed files with 76 additions and 88 deletions.
88 changes: 0 additions & 88 deletions .github/workflows/build.yml

This file was deleted.

76 changes: 76 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}"

0 comments on commit f665991

Please sign in to comment.