Skip to content

Commit

Permalink
ci: server: verify deps are coherent with the commit
Browse files Browse the repository at this point in the history
  • Loading branch information
phymbert committed Mar 31, 2024
1 parent c50a82c commit c4062df
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions .github/workflows/server.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ on:
branches:
- master
paths: ['.github/workflows/server.yml', '**/CMakeLists.txt', '**/Makefile', '**/*.h', '**/*.hpp', '**/*.c', '**/*.cpp', '**/*.cu', '**/*.swift', '**/*.m', 'examples/server/tests/**.*']
pull_request:
pull_request_target:
types: [opened, synchronize, reopened]
paths: ['.github/workflows/server.yml', '**/CMakeLists.txt', '**/Makefile', '**/*.h', '**/*.hpp', '**/*.c', '**/*.cpp', '**/*.cu', '**/*.swift', '**/*.m', 'examples/server/tests/**.*']
schedule:
- cron: '0 0 * * *'
- cron: '2 4 * * *'

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
Expand Down Expand Up @@ -50,6 +50,18 @@ jobs:
with:
fetch-depth: 0

- name: Verify server deps
id: verify_server_deps
run: |
cd examples/server
./deps.sh
not_ignored_files="$(git ls-files --others)"
if [ -n "${not_ignored_files}" ]; then
echo "Repository is dirty or server deps are not built as expected"
echo "${not_ignored_files}"
exit 1
fi
- name: Dependencies
id: depends
run: |
Expand Down

0 comments on commit c4062df

Please sign in to comment.