Skip to content

Commit

Permalink
feat: more improvements
Browse files Browse the repository at this point in the history
Add a concurrency group, disable fail-fast, and install dependencies on Linux.
  • Loading branch information
BD103 committed Apr 20, 2024
1 parent 9798709 commit 47d7144
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/create-caches.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,16 @@ on:
# TODO: Remove this. It is for testing purposes only.
pull_request:

# Prevent this workflow from being run more than once at a time.
concurrency:
group: ${{ github.workflow }}

jobs:
build:
name: Build
strategy:
# Don't cancel everything if one configuration happens to fail.
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
toolchain: [stable]
Expand All @@ -25,6 +31,9 @@ jobs:
with:
toolchain: ${{ matrix.toolchain }}

- name: Install Linux dependencies
uses: ./.github/actions/install-linux-deps

- name: Build workspace
run: cargo build --workspace

Expand All @@ -38,6 +47,8 @@ jobs:
check:
name: Check
strategy:
# Don't cancel everything if one configuration happens to fail.
fail-fast: false
matrix:
include:
- os: ubuntu-latest
Expand All @@ -62,6 +73,9 @@ jobs:
with:
toolchain: ${{ matrix.toolchain }}

- name: Install Linux dependencies
uses: ./.github/actions/install-linux-deps

- name: Build workspace
run: cargo check --workspace

Expand All @@ -76,6 +90,8 @@ jobs:
doc:
name: Doc
strategy:
# Don't cancel everything if one configuration happens to fail.
fail-fast: false
matrix:
os: [ubuntu-latest]
toolchain: [nightly]
Expand All @@ -89,6 +105,9 @@ jobs:
with:
toolchain: ${{ matrix.toolchain }}

- name: Install Linux dependencies
uses: ./.github/actions/install-linux-deps

- name: Build workspace
run: cargo doc -p bevy --no-deps

Expand Down

0 comments on commit 47d7144

Please sign in to comment.