Skip to content

Commit

Permalink
GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
HenryAWE committed Aug 26, 2024
1 parent c8f17aa commit 4d0a937
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Build

on: [push, pull_request]

jobs:
MSVC:
runs-on: windows-2022

name: Windows MSVC

env:
VCPKG_BUILD_TYPE: release
VCPKG_DEFAULT_TRIPLET: x64-windows

steps:
- uses: actions/checkout@v4
- uses: ilammy/msvc-dev-cmd@v1
with:
arch: amd64

- name: Configure
run: >
cmake
-S ${{github.workspace}}
-B build
-G Ninja
-DCMAKE_CXX_STANDARD=20
-DCMAKE_BUILD_TYPE=Release
-DCMAKE_TOOLCHAIN_FILE="C:/vcpkg/scripts/buildsystems/vcpkg.cmake"
-Dasbind_build_ext=1
-Dasbind_build_test=1
- name: Build
run: cmake --build ${{github.workspace}}

- name: Test
working-directory: ${{github.workspace}}/build
run: ctest

0 comments on commit 4d0a937

Please sign in to comment.