Skip to content

Commit

Permalink
ENH: Add module for testing and exporting addOne function
Browse files Browse the repository at this point in the history
  • Loading branch information
Brunner246 committed Jun 2, 2024
1 parent f5095a3 commit 2c12b4f
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 6 deletions.
18 changes: 12 additions & 6 deletions .github/workflows/build-matrix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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: |
Expand All @@ -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: |
Expand Down
9 changes: 9 additions & 0 deletions gtfs/src/mod.test.cppm
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;
}

0 comments on commit 2c12b4f

Please sign in to comment.