Skip to content

Commit

Permalink
Speedup test by refine the task dependencies.
Browse files Browse the repository at this point in the history
  • Loading branch information
winlinvip committed Aug 14, 2022
1 parent 2d036c3 commit 981b497
Showing 1 changed file with 10 additions and 21 deletions.
31 changes: 10 additions & 21 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
name: build-centos7
runs-on: ubuntu-20.04
needs:
- multile-arch-amd64
- utest
steps:
- name: Checkout repository
uses: actions/checkout@v2
Expand All @@ -28,7 +28,7 @@ jobs:
name: build-centos6
runs-on: ubuntu-20.04
needs:
- multile-arch-amd64
- utest
steps:
- name: Checkout repository
uses: actions/checkout@v2
Expand All @@ -42,7 +42,7 @@ jobs:
name: build-ubuntu16
runs-on: ubuntu-20.04
needs:
- multile-arch-amd64
- utest
steps:
- name: Checkout repository
uses: actions/checkout@v2
Expand All @@ -56,7 +56,7 @@ jobs:
name: build-ubuntu18
runs-on: ubuntu-20.04
needs:
- multile-arch-amd64
- utest
steps:
- name: Checkout repository
uses: actions/checkout@v2
Expand All @@ -70,7 +70,7 @@ jobs:
name: build-ubuntu20
runs-on: ubuntu-20.04
needs:
- multile-arch-amd64
- utest
steps:
- name: Checkout repository
uses: actions/checkout@v2
Expand All @@ -84,7 +84,7 @@ jobs:
name: build-cross-arm
runs-on: ubuntu-20.04
needs:
- multile-arch-amd64
- utest
steps:
- name: Checkout repository
uses: actions/checkout@v2
Expand All @@ -97,7 +97,7 @@ jobs:
name: build-cross-aarch64
runs-on: ubuntu-20.04
needs:
- multile-arch-amd64
- utest
steps:
- name: Checkout repository
uses: actions/checkout@v2
Expand All @@ -123,8 +123,6 @@ jobs:
utest:
name: utest
runs-on: ubuntu-20.04
needs:
- multile-arch-amd64
steps:
- name: Checkout repository
uses: actions/checkout@v2
Expand Down Expand Up @@ -231,23 +229,14 @@ jobs:
--build-arg IMAGE=ossrs/srs:ubuntu20-cache \
-f trunk/Dockerfile .
artifacts:
name: artifacts-done
needs:
- multile-arch-armv7
- multile-arch-aarch64
- multile-arch-amd64
runs-on: ubuntu-20.04
steps:
- run: echo 'Artifacts done'

done:
name: done
needs:
- build
- utest
- coverage
- artifacts
- multile-arch-armv7
- multile-arch-aarch64
- multile-arch-amd64
runs-on: ubuntu-20.04
steps:
- run: echo 'All done'
Expand Down

0 comments on commit 981b497

Please sign in to comment.