Skip to content

Commit

Permalink
more temp environment and fixed gtest tag
Browse files Browse the repository at this point in the history
  • Loading branch information
pedrolcl committed Nov 17, 2024
1 parent 0920ebb commit abe7507
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/cmake-freebsd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,15 @@ jobs:
INSTALL_LOCATION: ${{github.workspace}}/SonivoxV3
steps:
- uses: actions/checkout@v4
- name: Temp Environment Variable
run: |
mkdir -p ${{github.workspace}}/temp
echo "TEMP=${{github.workspace}}/temp" >> "$GITHUB_ENV"
- name: FreeBSD test
id: test
uses: vmactions/freebsd-vm@v1
with:
envs: 'BUILD_TYPE INSTALL_LOCATION'
envs: 'BUILD_TYPE INSTALL_LOCATION TEMP'
usesh: true
prepare: |
pkg install -y \
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/cmake-mac.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: Temp Environment Variable
run: |
mkdir -p ${{github.workspace}}/temp
echo "TEMP=${{github.workspace}}/temp" >> "$GITHUB_ENV"
- name: Configure CMake
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DCMAKE_INSTALL_PREFIX=${{env.INSTALL_LOCATION}}

Expand Down
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ if (BUILD_TESTING)
set( BUILD_GMOCK OFF CACHE BOOL "Builds the googlemock subproject" FORCE )
include( FetchContent )
FetchContent_Declare( googletest
GIT_REPOSITORY https://github.com/google/googletest.git
GIT_TAG release-1.15.2
GIT_REPOSITORY "https://github.com/google/googletest.git"
GIT_TAG "v1.15.2"
)
# For Windows: Prevent overriding the parent project's compiler/linker settings
set( gtest_force_shared_crt ON CACHE BOOL "" FORCE )
Expand Down

0 comments on commit abe7507

Please sign in to comment.