From e67165dd9ce12df5f6dfcdbdf99787c24261497f Mon Sep 17 00:00:00 2001 From: Sammy Huang Date: Wed, 27 Dec 2023 13:22:00 +0800 Subject: [PATCH] enhance: clean .github/workflow/main.yaml Signed-off-by: Sammy Huang --- .github/workflows/main.yaml | 30 ++++++++++-------------------- 1 file changed, 10 insertions(+), 20 deletions(-) diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index 6a99772850e3c..02d70060567bd 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -41,19 +41,16 @@ concurrency: jobs: Build: - name: Build and test AMD64 Ubuntu ${{ matrix.ubuntu }} - runs-on: ubuntu-${{ matrix.ubuntu }} + name: Build and test AMD64 Ubuntu 20.04 + runs-on: ubuntu-latest timeout-minutes: 180 strategy: fail-fast: false - matrix: - ubuntu: [20.04] env: - UBUNTU: ${{ matrix.ubuntu }} + UBUNTU: 20.04 steps: - name: Setup mold uses: rui314/setup-mold@v1 - - name: Maximize build space uses: easimon/maximize-build-space@master if: ${{ ! startsWith(runner.name, 'self') }} # skip this step if it is self-hosted runner @@ -103,14 +100,12 @@ jobs: UT-Cpp: name: UT for Cpp needs: Build - runs-on: ubuntu-${{ matrix.ubuntu }} + runs-on: ubuntu-latest timeout-minutes: 60 strategy: fail-fast: false - matrix: - ubuntu: [20.04] env: - UBUNTU: ${{ matrix.ubuntu }} + UBUNTU: 20.04 steps: - name: Download code uses: actions/download-artifact@v3.0.1 @@ -146,14 +141,12 @@ jobs: UT-Go: name: UT for Go needs: Build - runs-on: ubuntu-${{ matrix.ubuntu }} + runs-on: ubuntu-latest timeout-minutes: 60 strategy: fail-fast: false - matrix: - ubuntu: [20.04] env: - UBUNTU: ${{ matrix.ubuntu }} + UBUNTU: 20.04 steps: - name: Download code uses: actions/download-artifact@v3.0.1 @@ -189,14 +182,12 @@ jobs: integration-test: name: Integration Test needs: Build - runs-on: ubuntu-${{ matrix.ubuntu }} + runs-on: ubuntu-latest timeout-minutes: 60 strategy: fail-fast: false - matrix: - ubuntu: [20.04] env: - UBUNTU: ${{ matrix.ubuntu }} + UBUNTU: 20.04 steps: - name: Download code uses: actions/download-artifact@v3.0.1 @@ -248,7 +239,6 @@ jobs: - name: Display structure of code coverage results run: | ls -lah - - name: Upload coverage to Codecov if: "github.repository == 'milvus-io/milvus'" uses: codecov/codecov-action@v3.1.1 @@ -265,5 +255,5 @@ jobs: with: token: ${{ secrets.CODECOV_TOKEN }} files: ./go_coverage.txt,./lcov_output.info,./it_coverage.txt - name: ubuntu-${{ matrix.ubuntu }}-unittests + name: ubuntu-20.04-unittests fail_ci_if_error: true