Add concurrency and dependency on CMakeLists.txt

This commit is contained in:
Vincent Stumpf 2023-07-12 03:22:52 +00:00
parent 1b3357611b
commit 5c2718de03
6 changed files with 16 additions and 6 deletions

View File

@ -18,6 +18,8 @@ on:
# This workflow should run when a file in a source directory has been modified.
- 'src/**'
- '3rdparty/**'
# This workflow should run whenever a CMake related file has been modified
- '**/CMakeLists.txt'
jobs:
analyze:
@ -84,7 +86,7 @@ jobs:
- name: Build
working-directory: ${{github.workspace}}/build
run: cmake --build . --target server
run: cmake --build -j2 . --target server
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2

View File

@ -46,4 +46,4 @@ jobs:
- name: Build
working-directory: ${{github.workspace}}/build
# Execute the build. You can specify a specific target with "--target <NAME>"
run: cmake --build . --target server tools
run: cmake --build -j2 . --target server tools

View File

@ -18,6 +18,8 @@ on:
# This workflow should run when a file in a source directory has been modified.
- 'src/**'
- '3rdparty/**'
# This workflow should run whenever a CMake related file has been modified
- '**/CMakeLists.txt'
jobs:
build:
@ -68,7 +70,7 @@ jobs:
- name: Build
working-directory: ${{github.workspace}}/build
run: cmake --build . --target server
run: cmake --build -j2 . --target server
- name: Run Once - login-server
run: ./login-server --run-once

View File

@ -18,6 +18,8 @@ on:
# This workflow should run when a file in a source directory has been modified.
- 'src/**'
- '3rdparty/**'
# This workflow should run whenever a CMake related file has been modified
- '**/CMakeLists.txt'
jobs:
build:
@ -70,4 +72,4 @@ jobs:
- name: Build
working-directory: ${{github.workspace}}/build
run: cmake --build .
run: cmake --build -j2 .

View File

@ -18,6 +18,8 @@ on:
# This workflow should run when a file in a source directory has been modified.
- 'src/**'
- '3rdparty/**'
# This workflow should run whenever a CMake related file has been modified
- '**/CMakeLists.txt'
jobs:
build:
@ -68,7 +70,7 @@ jobs:
- name: Build
working-directory: ${{github.workspace}}/build
run: cmake --build . --target server
run: cmake --build -j2 . --target server
- name: Run Once - login-server
run: ./login-server --run-once

View File

@ -21,6 +21,8 @@ on:
# This workflow should run when a file in either the db/ or npc/ directory has been modified.
- 'db/**'
- 'npc/**'
# This workflow should run whenever a CMake related file has been modified
- '**/CMakeLists.txt'
jobs:
build:
@ -71,7 +73,7 @@ jobs:
- name: Build
working-directory: ${{github.workspace}}/build
run: cmake --build . --target map-server
run: cmake --build -j2 . --target map-server
# npc.sh enables all NPC scripts in the custom and test folders.
- name: Enable All NPCs for Testing