Skip to content

Commit

Permalink
Add CI tests
Browse files Browse the repository at this point in the history
  • Loading branch information
bugdea1er committed Jan 21, 2024
1 parent e4d4d7d commit 186f87c
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 1 deletion.
39 changes: 39 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Tests
on:
push

env:
build_dir: ${{ github.workspace }}/build

jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os:
- ubuntu-20.04
- ubuntu-22.04
- windows-2019
- windows-2022
- macos-11
- macos-12
- macos-13

steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Select Xcode 15.0 (for macOS 13)
run: sudo xcode-select -s "/Applications/Xcode_15.0.app"
if: matrix.os == 'macos-13'

- name: Configure CMake
run: cmake -B ${{ env.build_dir }}

- name: Build tests
run: cmake --build ${{ env.build_dir }}

- name: Run tests
run: ctest --build-config
working-directory: ${{ env.build_dir }}
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ Since this is a header-only library, you can just copy the [defer.hpp](https://g

### CMake integration

You can also use the CMake interface target `defer::defer` and described belowю
You can also use the CMake interface target `defer::defer` and described below:

#### Embedded

Expand Down

0 comments on commit 186f87c

Please sign in to comment.