|
11 | 11 | push:
|
12 | 12 | branches:
|
13 | 13 | - master
|
14 |
| - paths: ['.github/workflows/server.yml', '**/CMakeLists.txt', '**/Makefile', '**/*.h', '**/*.hpp', '**/*.c', '**/*.cpp', '**/*.cu', '**/*.swift', '**/*.m', 'examples/server/tests/**.*'] |
15 |
| - pull_request: |
| 14 | + paths: ['.github/workflows/server.yml', '**/CMakeLists.txt', '**/Makefile', '**/*.h', '**/*.hpp', '**/*.c', '**/*.cpp', '**/*.cu', '**/*.swift', '**/*.m', 'examples/server/**.*'] |
| 15 | + pull_request_target: |
16 | 16 | types: [opened, synchronize, reopened]
|
17 |
| - paths: ['.github/workflows/server.yml', '**/CMakeLists.txt', '**/Makefile', '**/*.h', '**/*.hpp', '**/*.c', '**/*.cpp', '**/*.cu', '**/*.swift', '**/*.m', 'examples/server/tests/**.*'] |
| 17 | + paths: ['.github/workflows/server.yml', '**/CMakeLists.txt', '**/Makefile', '**/*.h', '**/*.hpp', '**/*.c', '**/*.cpp', '**/*.cu', '**/*.swift', '**/*.m', 'examples/server/**.*'] |
18 | 18 | schedule:
|
19 |
| - - cron: '0 0 * * *' |
| 19 | + - cron: '2 4 * * *' |
20 | 20 |
|
21 | 21 | concurrency:
|
22 | 22 | group: ${{ github.workflow }}-${{ github.ref }}
|
@@ -44,25 +44,44 @@ jobs:
|
44 | 44 | options: --cpus 4
|
45 | 45 |
|
46 | 46 | steps:
|
47 |
| - - name: Clone |
48 |
| - id: checkout |
49 |
| - uses: actions/checkout@v3 |
50 |
| - with: |
51 |
| - fetch-depth: 0 |
52 |
| - |
53 | 47 | - name: Dependencies
|
54 | 48 | id: depends
|
55 | 49 | run: |
|
56 | 50 | apt-get update
|
57 | 51 | apt-get -y install \
|
58 | 52 | build-essential \
|
| 53 | + xxd \ |
59 | 54 | git \
|
60 | 55 | cmake \
|
61 | 56 | python3-pip \
|
| 57 | + curl \ |
62 | 58 | wget \
|
63 | 59 | language-pack-en \
|
64 | 60 | libcurl4-openssl-dev
|
65 | 61 |
|
| 62 | + - name: Clone |
| 63 | + id: checkout |
| 64 | + uses: actions/checkout@v3 |
| 65 | + with: |
| 66 | + fetch-depth: 0 |
| 67 | + |
| 68 | + - name: Verify server deps |
| 69 | + id: verify_server_deps |
| 70 | + run: | |
| 71 | + git config --global --add safe.directory $(realpath .) |
| 72 | + cd examples/server |
| 73 | + git ls-files --others --modified |
| 74 | + git status |
| 75 | + ./deps.sh |
| 76 | + git status |
| 77 | + not_ignored_files="$(git ls-files --others --modified)" |
| 78 | + echo "Modified files: ${not_ignored_files}" |
| 79 | + if [ -n "${not_ignored_files}" ]; then |
| 80 | + echo "Repository is dirty or server deps are not built as expected" |
| 81 | + echo "${not_ignored_files}" |
| 82 | + exit 1 |
| 83 | + fi |
| 84 | +
|
66 | 85 | - name: Build
|
67 | 86 | id: cmake_build
|
68 | 87 | run: |
|
|
0 commit comments