Skip to content

Commit

Permalink
Only make contrib nightly CI fallible.
Browse files Browse the repository at this point in the history
  • Loading branch information
SergioBenitez committed Apr 12, 2024
1 parent 8831d47 commit b7e02fb
Showing 1 changed file with 18 additions and 9 deletions.
27 changes: 18 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,30 +13,39 @@ jobs:
strategy:
fail-fast: false
matrix:
fallible: [false]
platform:
- { name: Linux, distro: ubuntu-latest, toolchain: stable }
- { name: Windows, distro: windows-latest, toolchain: stable }
- { name: macOS, distro: macOS-latest, toolchain: stable }
- { name: Linux, distro: ubuntu-latest, toolchain: nightly }
test:
- { name: Debug, flag: }
- { name: Debug }
- { name: Contrib, flag: "--contrib" }
- { name: Examples, flag: "--examples" }
include:
- platform: { name: Linux, distro: ubuntu-latest, toolchain: nightly }
# Additional tests on Linux/stable.
- platform: { name: Linux, distro: ubuntu-latest, toolchain: stable }
test: { name: Core, flag: "--core" }
fallible: true
- platform: { name: Linux, distro: ubuntu-latest, toolchain: stable }
test: { name: Release, flag: "--release" }
- platform: { name: Linux, distro: ubuntu-latest, toolchain: stable }
test: { name: UI, flag: "--ui" }
fallible: true

# Additional tests on Linux/nightly.
- platform: { name: Linux, distro: ubuntu-latest, toolchain: nightly }
test: { name: UI, flag: "--ui" }
test: { name: Debug }
- platform: { name: Linux, distro: ubuntu-latest, toolchain: nightly }
test: { name: Core, flag: "--core" }
- platform: { name: Linux, distro: ubuntu-latest, toolchain: nightly }
test: { name: Examples, flag: "--examples" }
- platform: { name: Linux, distro: ubuntu-latest, toolchain: nightly }
test: { name: Contrib, flag: "--contrib" }
fallible: true

# Use the bigger 'C:/' from the "Switch Disk" step
- platform: { name: Windows }
working-directory: "C:\\a\\${{ github.event.repository.name }}\\${{ github.event.repository.name }}"
working-directory:
"C:\\a\\${{ github.event.repository.name }}\\${{ github.event.repository.name }}"

steps:
- name: Checkout Sources
Expand Down Expand Up @@ -112,7 +121,7 @@ jobs:
Get-PSDrive
- name: Run Tests
continue-on-error: ${{ matrix.fallible }}
continue-on-error: ${{ matrix.fallible || false }}
working-directory: ${{ matrix.working-directory || github.workspace }}
run: ./scripts/test.sh ${{ matrix.test.flag }} -q
run: ./scripts/test.sh ${{ matrix.test.flag || '' }} -q
shell: bash

0 comments on commit b7e02fb

Please sign in to comment.