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 41b792a
Showing 1 changed file with 53 additions and 0 deletions.
53 changes: 53 additions & 0 deletions .github/workflows/develop.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
name: CI

on:
merge_group:
pull_request:
types: [ opened, synchronize, reopened, ready_for_review ]
push:
branches:
- main


jobs:
ci-ubuntu:
name: Build on Linux (Ubuntu)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: lukka/get-cmake@latest
- names: install vcpkg
run: |
git clone https://github.com/microsoft/vcpkg
./vcpkg/bootstrap-vcpkg.sh
- name: install dependencies
run: ./vcpkg.sh
- name: build
run: make build
- name: build
run: make test
ci-macOS:
name: Build on MacOS
runs-on: macOS-latest
steps:
- uses: actions/checkout@v4
- uses: lukka/get-cmake@latest
- names: install vcpkg
run: |
git clone https://github.com/microsoft/vcpkg
./vcpkg/bootstrap-vcpkg.sh
- name: install dependencies
run: ./vcpkg.sh
- 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 41b792a

Please sign in to comment.