Skip to content

Commit

Permalink
ci: add check to ensure formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
florianvazelle committed May 9, 2024
1 parent 79e6c9d commit dd9b2cc
Showing 1 changed file with 16 additions and 7 deletions.
23 changes: 16 additions & 7 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,18 @@ env:
CPM_SOURCE_CACHE: "${{ github.workspace }}/cpm_modules"

jobs:
check:
runs-on: ubuntu-22.04

steps:
- uses: actions/checkout@v4
- uses: extractions/setup-just@v2

- name: Check
run: just fmt

generate-matrix:
name: Generate matrix
runs-on: ubuntu-latest
runs-on: ubuntu-22.04

outputs:
include: ${{ steps.set-matrix.outputs.include }}
Expand All @@ -47,12 +56,13 @@ jobs:
echo "include=$MATRIX" >> $GITHUB_OUTPUT
linux:
runs-on: ${{ matrix.os }}
needs: [generate-matrix, check]

strategy:
fail-fast: false
include: ${{ fromJson(needs.generate-matrix.outputs.include) }}

runs-on: ${{ matrix.os }}

steps:
- uses: actions/checkout@v4
- uses: extractions/setup-just@v2
Expand Down Expand Up @@ -100,6 +110,7 @@ jobs:

windows:
runs-on: windows-2019
needs: [check]

steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -149,9 +160,7 @@ jobs:
name: windows-msvc

docs:
name: Publish documentation
runs-on: ubuntu-latest

runs-on: ubuntu-22.04
needs: [linux]

steps:
Expand Down

0 comments on commit dd9b2cc

Please sign in to comment.