diff --git a/.github/workflows/develop.yml b/.github/workflows/develop.yml new file mode 100644 index 0000000..5e76f4b --- /dev/null +++ b/.github/workflows/develop.yml @@ -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/clang-format-action@v4.13.0 + with: + clang-format-version: '18'