Skip to content

Commit

Permalink
enhance: clean .github/workflow/main.yaml
Browse files Browse the repository at this point in the history
Signed-off-by: Sammy Huang <[email protected]>
  • Loading branch information
yellow-shine committed Dec 27, 2023
1 parent afd87e0 commit e67165d
Showing 1 changed file with 10 additions and 20 deletions.
30 changes: 10 additions & 20 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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/[email protected]
Expand Down Expand Up @@ -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/[email protected]
Expand Down Expand Up @@ -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/[email protected]
Expand Down Expand Up @@ -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/[email protected]
Expand All @@ -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

0 comments on commit e67165d

Please sign in to comment.