-
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.
ENH: Add module for testing and exporting
addOne
function
- Loading branch information
1 parent
f5095a3
commit 2c12b4f
Showing
2 changed files
with
21 additions
and
6 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 |
---|---|---|
|
@@ -2,15 +2,15 @@ name: CMake Build Matrix | |
|
||
on: | ||
push: | ||
branches: [ "main" ] | ||
branches: ["main"] | ||
pull_request: | ||
branches: [ "main" ] | ||
branches: ["main"] | ||
jobs: | ||
build: | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: [ windows-latest, ubuntu-latest, macos-latest ] # | ||
os: [windows-latest, ubuntu-latest, macos-latest] # | ||
include: | ||
- os: windows-latest | ||
compiler: msvc | ||
|
@@ -22,6 +22,14 @@ jobs: | |
- name: Checkout code | ||
uses: actions/[email protected] | ||
|
||
- name: Install Ninja | ||
run: | | ||
if [[ "${{ runner.os }}" == "Windows" ]]; then | ||
choco install ninja | ||
else | ||
sudo apt-get install -y ninja-build | ||
fi | ||
- name: vcpkg installation | ||
shell: bash | ||
run: | | ||
|
@@ -35,11 +43,9 @@ jobs: | |
./vcpkg integrate install | ||
./vcpkg install | ||
- name: Configure CMake | ||
run: | | ||
cmake -B build -DCMAKE_BUILD_TYPE=Release -DCMAKE_TOOLCHAIN_FILE=${{ github.workspace }}/vcpkg/scripts/buildsystems/vcpkg.cmake | ||
# cmake -B build -DCMAKE_BUILD_TYPE=Release -DCPM_SOURCE_CACHE=~/cpm-cache | ||
cmake -B build -G Ninja -DCMAKE_BUILD_TYPE=Release -DCMAKE_TOOLCHAIN_FILE=${{ github.workspace }}/vcpkg/scripts/buildsystems/vcpkg.cmake | ||
- name: Build | ||
run: | | ||
|
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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
// | ||
// Created by MichaelBrunner on 02/06/2024. | ||
// | ||
|
||
export module mod.test; | ||
|
||
export int addOne(const int a) { | ||
return a + 1; | ||
} |