forked from gapry/arabica
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: add ci pipeline for ubuntu and macos
- Loading branch information
1 parent
2c7e243
commit 808c889
Showing
1 changed file
with
45 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
name: CI | ||
|
||
on: | ||
merge_group: | ||
pull_request: | ||
types: [ opened, synchronize, reopened, ready_for_review ] | ||
push: | ||
branches: | ||
- main | ||
|
||
|
||
jobs: | ||
ci-ubuntu: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: install dependencies | ||
run: | | ||
sudo add-apt-repository -y "deb http://archive.ubuntu.com/ubuntu `lsb_release -sc` main universe restricted multiverse" | ||
sudo apt-get update -y -qq | ||
sudo apt-get install libsdl2-dev | ||
- name: build | ||
run: make build | ||
- name: build | ||
run: make test | ||
ci-macOS: | ||
runs-on: macOS-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: install dependencies | ||
run: | | ||
brew install SDL2 | ||
- name: build | ||
run: make build | ||
- name: build | ||
run: make test | ||
fmt: | ||
name: Formatting Check | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: "Run clang-format" | ||
uses: jidicula/[email protected] | ||
with: | ||
clang-format-version: '18' |