Skip to content

Commit

Permalink
Merge branch 'dev' of https://github.com/dimkauzh/festi into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
dimkauzh committed Dec 2, 2023
2 parents 83330c2 + 8cc3a58 commit 33e0c2f
Showing 1 changed file with 56 additions and 0 deletions.
56 changes: 56 additions & 0 deletions .github/workflows/cmake-multi-platform.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
name: CMake on multiple platforms

on:
push:
branches: [ "dev" ]
pull_request:
branches: [ "dev" ]

jobs:
build:
runs-on: ${{ matrix.os }}

strategy:
fail-fast: false

matrix:
os: [ubuntu-latest, windows-latest]
build_type: [Release]
c_compiler: [gcc, clang, cl]
include:
- os: windows-latest
c_compiler: cl
cpp_compiler: cl
- os: ubuntu-latest
c_compiler: gcc
cpp_compiler: g++
- os: ubuntu-latest
c_compiler: clang
cpp_compiler: clang++
exclude:
- os: windows-latest
c_compiler: gcc
- os: windows-latest
c_compiler: clang
- os: ubuntu-latest
c_compiler: cl

steps:
- uses: actions/checkout@v3

- name: Install libxrandr (Linux)
if: startsWith(matrix.os, 'ubuntu')
run: sudo apt-get install xorg-dev

- name: Git Submodule Update
run: |
git submodule update --init --recursive
git submodule foreach 'git fetch origin main:main || true'
git submodule foreach 'git checkout main || true'
- name: Build
run: cmake .

- name: Test
run: make

0 comments on commit 33e0c2f

Please sign in to comment.