Skip to content

Commit

Permalink
[WIP] Add verification action
Browse files Browse the repository at this point in the history
  • Loading branch information
vabold committed Feb 4, 2024
1 parent fb84a72 commit 6bbe89d
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 20
outputs:
outDir: ${{ steps.artifact-upload-step.outputs.artifact-id }}
steps:
- name: Checkout
uses: actions/checkout@v3
Expand All @@ -26,6 +28,7 @@ jobs:
- name: Compile
run: ninja
- name: Upload result
id: artifact-upload-step
uses: actions/upload-artifact@v3
with:
name: Kinoko
Expand All @@ -43,3 +46,15 @@ jobs:
run: |
dirs="include source"
find $dirs -regex '.*\.\(c\|h\|cc\|hh\)' | xargs clang-format-15 --dry-run -Werror
verify:
name: Verify
runs-on: ubuntu-latest
needs: build
steps:
- env:
outDir: ${{needs.build.outputs.outDir}}
run: |
cp -r $outDir ./
./out/Kinoko.exe

0 comments on commit 6bbe89d

Please sign in to comment.