Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CI: Avoid duplicated CI jobs #60

Merged
merged 1 commit into from
Jan 17, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 11 additions & 10 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,13 @@

name: CI

on: [push, pull_request]
on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
build:
Expand All @@ -13,25 +19,20 @@ jobs:
fail-fast: true
matrix:
os:
- ubuntu-22.04
#- ubuntu-20.04
- windows-2022
#- windows-2019
- macos-12
#- macos-11
- ubuntu-latest
- windows-latest
- macos-latest

steps:
- name: Checkout sources
uses: actions/checkout@v4

- name: Create build directory
run: mkdir build

- name: Install ninja-build tool
uses: turtlesec-no/get-ninja@main

- name: Make sure MSVC is found when Ninja generator is in use
uses: ilammy/msvc-dev-cmd@v1
if: ${{ runner.os == 'Windows' }}

- name: Configure project
run: cmake --preset=ci
Expand Down