Skip to content

Commit

Permalink
ci: fix runs-on error, make jobs parallel
Browse files Browse the repository at this point in the history
  • Loading branch information
7sDream committed May 22, 2020
1 parent 67ad672 commit 04731cd
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,8 @@ jobs:
build:
strategy:
matrix:
platform: [ubuntu-latest, macos-latest]
needs: [lint_and_format_check]
runs-on: ${{ matrix.platform }}
os: [ubuntu-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Install freetype and fontconfig for macOS
if: ${{ runner.os == 'macOS' }}
Expand Down Expand Up @@ -89,7 +88,6 @@ jobs:

check_deps_version:
if: github.event_name == 'push' && contains(github.ref, 'refs/tags/')
needs: [build]
runs-on: ubuntu-latest
steps:
- name: Checkout code
Expand Down Expand Up @@ -124,8 +122,7 @@ jobs:
if: github.event_name == 'push' && contains(github.ref, 'refs/tags/')
strategy:
matrix:
platform: [ubuntu-latest, macos-latest]
needs: [check_deps_version]
os: [ubuntu-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Install freetype and fontconfig for macOS
Expand Down Expand Up @@ -156,7 +153,7 @@ jobs:

create_release:
if: github.event_name == 'push' && contains(github.ref, 'refs/tags/')
needs: [release_build]
needs: [lint_and_format_check, build, check_deps_version, release_build]
runs-on: ubuntu-latest
outputs:
release_upload_url: ${{ steps.release.outputs.upload_url }}
Expand Down

0 comments on commit 04731cd

Please sign in to comment.