Skip to content

Commit

Permalink
merge: pull request #8 from floooh/github-ci
Browse files Browse the repository at this point in the history
Add a GitHub CI script to test compilation on Linux, MacOS, and Windows
  • Loading branch information
brenocq authored Dec 22, 2024
2 parents e3dfbc2 + b31c9c4 commit be74d95
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Build

on: [push, pull_request]

jobs:
build:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
fail-fast: false
runs-on: ${{matrix.os}}
steps:
- uses: actions/checkout@main
- name: prepare-linux
if: runner.os == 'Linux'
run: |
sudo apt-get update
sudo apt-get install mesa-common-dev xorg-dev
- name: build
run: |
cd example
cmake -B build
cmake --build build

0 comments on commit be74d95

Please sign in to comment.