Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
dssp
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
open
dssp
Commits
f3f00836
Unverified
Commit
f3f00836
authored
Mar 09, 2024
by
Maarten L. Hekkelman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
leave out last test and add first CI file
parent
e1941a1b
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
57 additions
and
0 deletions
+57
-0
.github/workflows/cmake-multi-platform.yml
+57
-0
No files found.
.github/workflows/cmake-multi-platform.yml
0 → 100644
View file @
f3f00836
name
:
multi platform test
on
:
push
:
branches
:
[
"
trunk"
,
"
develop"
]
pull_request
:
branches
:
[
"
trunk"
]
jobs
:
build
:
runs-on
:
${{ matrix.os }}
strategy
:
fail-fast
:
false
matrix
:
os
:
[
ubuntu-latest
,
windows-latest
,
macos-latest
]
include
:
-
os
:
windows-latest
cpp_compiler
:
cl
-
os
:
ubuntu-latest
cpp_compiler
:
g++
-
os
:
macos-latest
cpp_compiler
:
clang++
steps
:
-
uses
:
actions/checkout@v3
-
name
:
Set reusable strings
id
:
strings
shell
:
bash
run
:
echo "build-output-dir=${{ github.workspace }}/build" >> "$GITHUB_OUTPUT"
-
name
:
Install Catch2 Ubuntu
if
:
matrix.os == 'ubuntu-latest'
run
:
>
sudo apt-get update && sudo apt-get install catch2
-
name
:
Install Catch2 macOS
if
:
matrix.os == 'macos-latest'
run
:
>
brew install catch2
-
name
:
Configure CMake
run
:
>
cmake -B ${{ steps.strings.outputs.build-output-dir }}
-DCMAKE_CXX_COMPILER=${{ matrix.cpp_compiler }}
-DCMAKE_BUILD_TYPE=Release
-S ${{ github.workspace }}
-
name
:
Build
run
:
cmake --build ${{ steps.strings.outputs.build-output-dir }} --config Release
-
name
:
Test
working-directory
:
${{ steps.strings.outputs.build-output-dir }}
run
:
ctest --build-config Release --output-on-failure
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment