Skip to content

Commit

Permalink
ci: add ci pipeline for ubuntu and macos
Browse files Browse the repository at this point in the history
  • Loading branch information
Kelvinyu1117 committed May 31, 2024
1 parent 2c7e243 commit 808c889
Showing 1 changed file with 45 additions and 0 deletions.
45 changes: 45 additions & 0 deletions .github/workflows/develop.yml
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'

0 comments on commit 808c889

Please sign in to comment.