-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #41 from naviqore/feature/add-ctest-options
Feature/add ctest options
- Loading branch information
Showing
4 changed files
with
25 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,8 +15,10 @@ jobs: | |
include: | ||
- os: windows-latest | ||
compiler: msvc | ||
triplet: x64-windows-release | ||
- os: ubuntu-latest | ||
compiler: gcc-linux | ||
triplet: x64-linux | ||
|
||
steps: | ||
- name: Checkout code | ||
|
@@ -31,39 +33,29 @@ jobs: | |
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-13 60 | ||
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-13 60 | ||
- name: vcpkg installation | ||
shell: bash | ||
run: | | ||
git clone https://github.com/microsoft/vcpkg.git | ||
cd vcpkg | ||
if [[ "${{ runner.os }}" == "Windows" ]]; then | ||
./bootstrap-vcpkg.bat | ||
else | ||
./bootstrap-vcpkg.sh | ||
fi | ||
./vcpkg integrate install | ||
./vcpkg install | ||
- name: Cache vcpkg packages | ||
uses: actions/[email protected] | ||
- name: Set up vcpkg | ||
uses: johnwason/vcpkg-action@v6 | ||
with: | ||
path: | | ||
${{ github.workspace }}/vcpkg/installed | ||
${{ github.workspace }}/vcpkg/vcpkg | ||
key: ${{ runner.os }}-vcpkg-${{ hashFiles('vcpkg.json') }} | ||
restore-keys: | | ||
${{ runner.os }}-vcpkg- | ||
manifest-dir: ${{ github.workspace }} | ||
triplet: ${{ matrix.triplet }} | ||
token: ${{ github.token }} | ||
github-binarycache: true | ||
|
||
- name: Configure CMake | ||
run: | | ||
cmake -B build -DCMAKE_BUILD_TYPE=Release -DCMAKE_TOOLCHAIN_FILE=${{ github.workspace }}/vcpkg/scripts/buildsystems/vcpkg.cmake | ||
cmake -B cmake-build-release -DCMAKE_BUILD_TYPE=Release -DCMAKE_TOOLCHAIN_FILE=${{ github.workspace }}/vcpkg/scripts/buildsystems/vcpkg.cmake | ||
- name: Build | ||
run: | | ||
cmake --build build --config Release | ||
cmake --build cmake-build-release --config Release | ||
- name: List contents of output directory | ||
run: | | ||
echo "Contents of output directory:" | ||
ls -R ${{ github.workspace }}/output/bin/release | ||
- name: Run tests | ||
continue-on-error: true | ||
run: | | ||
cd cmake-build-release | ||
ctest -C Release --output-on-failure |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters