mirror of
https://github.com/progsource/maddy.git
synced 2026-03-25 16:00:39 +01:00
Bumps [actions/checkout](https://github.com/actions/checkout) from 3 to 4. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v3...v4) --- updated-dependencies: - dependency-name: actions/checkout dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
63 lines
1.7 KiB
YAML
63 lines
1.7 KiB
YAML
name: run-tests
|
|
run-name: test ${{ github.ref }}
|
|
on:
|
|
pull_request:
|
|
push:
|
|
branches:
|
|
- master
|
|
- dev
|
|
jobs:
|
|
test-on-ubuntu:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: lukka/get-cmake@latest
|
|
with:
|
|
cmakeVersion: "~3.25.0" # <--= optional, use most recent 3.25.x version
|
|
ninjaVersion: "^1.11.1" # <--= optional, use most recent 1.x version
|
|
- name: build
|
|
run: |
|
|
mkdir tmp
|
|
cd tmp
|
|
cmake -DMADDY_BUILD_WITH_TESTS=ON ..
|
|
make -j4
|
|
- name: run tests
|
|
run: |
|
|
./build/MaddyTests
|
|
|
|
test-on-windows:
|
|
runs-on: windows-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: lukka/get-cmake@latest
|
|
with:
|
|
cmakeVersion: "~3.25.0" # <--= optional, use most recent 3.25.x version
|
|
ninjaVersion: "^1.11.1" # <--= optional, use most recent 1.x version
|
|
- name: build
|
|
run: |
|
|
mkdir tmp
|
|
cd tmp
|
|
cmake -G "Visual Studio 17 2022" -A x64 -DMADDY_BUILD_WITH_TESTS=ON ..
|
|
cmake --build . --config Debug
|
|
- name: run tests
|
|
run: |
|
|
./build/Debug/MaddyTests.exe
|
|
|
|
test-on-osx:
|
|
runs-on: macos-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: lukka/get-cmake@latest
|
|
with:
|
|
cmakeVersion: "~3.25.0" # <--= optional, use most recent 3.25.x version
|
|
ninjaVersion: "^1.11.1" # <--= optional, use most recent 1.x version
|
|
- name: build
|
|
run: |
|
|
mkdir tmp
|
|
cd tmp
|
|
cmake -DMADDY_BUILD_WITH_TESTS=ON ..
|
|
make -j4
|
|
- name: run tests
|
|
run: |
|
|
./build/MaddyTests
|