Skip to content

Commit

Permalink
Update linted commit before building
Browse files Browse the repository at this point in the history
  • Loading branch information
Dextinfire committed Sep 17, 2024
1 parent e882914 commit 52d7a0e
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ jobs:
lint:
name: Run linters
runs-on: ubuntu-latest
outputs:
commitid: ${{ steps.commit.outputs.commitid }}

steps:
- name: Check out Git repository
Expand All @@ -32,11 +34,18 @@ jobs:
clang_format: true
clang_format_auto_fix: true
continue_on_error: false

- name: Get latest commit
id: commit
run: |
SHA=$(git rev-parse HEAD)
echo "::set-output name=commitid::$SHA"
job-matrix:
name: ${{ matrix.os_name }}
runs-on: ${{ matrix.os }}
timeout-minutes: 120
needs: lint
strategy:
fail-fast: false
matrix:
Expand All @@ -62,6 +71,8 @@ jobs:

steps:
- uses: actions/checkout@v3
with:
ref: ${{ needs.lint.outputs.commitid }}

- name: Download Switch deps
if: matrix.os_name == 'switch'
Expand Down

0 comments on commit 52d7a0e

Please sign in to comment.