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 41b792a
Showing
1 changed file
with
53 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,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' |