Skip to content

Commit

Permalink
Fix workflow
Browse files Browse the repository at this point in the history
Signed-off-by: Bensuperpc <bensuperpc@gmail.com>
  • Loading branch information
bensuperpc committed Dec 30, 2024
1 parent bcfd5d9 commit f6bf699
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
matrix:
compiler: [g++, clang++]
shared: [YES, NO]
standard: [20]
standard: [20, 23]
build_type: [Debug, Release]

steps:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ on:
workflow_dispatch:

jobs:
if: false
build:
name: dockcross ${{ matrix.dockcross.image_name }} ${{ matrix.build_type }}
runs-on: ubuntu-latest
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ on:
workflow_dispatch:

jobs:
if: false
build:
runs-on: windows-latest
strategy:
Expand Down
4 changes: 4 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ project(
include(cmake/utile/ccache.cmake)
#include(cmake/utile/sccache.cmake)

if (NOT Threads_FOUND)
find_package(Threads REQUIRED)
endif()

include(cmake/project-is-top-level.cmake)
include(cmake/variables.cmake)

Expand Down
4 changes: 4 additions & 0 deletions source/GTASA_alternative_code/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ project(
LANGUAGES C CXX
)

if (NOT Threads_FOUND)
find_package(Threads REQUIRED)
endif()

# ---- CUDA ----
if (NOT DEFINED ENABLE_CUDA)
find_package(CUDAToolkit 11.0)
Expand Down
4 changes: 4 additions & 0 deletions test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ cmake_minimum_required(VERSION 3.14)

project(GTASA_alternative_code_tests LANGUAGES C CXX)

if (NOT Threads_FOUND)
find_package(Threads REQUIRED)
endif()

# ---- CUDA ----
if (NOT DEFINED ENABLE_CUDA)
find_package(CUDAToolkit 11.0)
Expand Down

0 comments on commit f6bf699

Please sign in to comment.