-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
69 additions
and
3 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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: build | ||
name: Linux | ||
|
||
on: | ||
push: | ||
|
@@ -8,6 +8,8 @@ on: | |
- 'util/**' | ||
- 'uml/**' | ||
- '**.md' | ||
- '**.svg' | ||
- '**.png' | ||
branches-ignore: | ||
- 'noactions/*' | ||
pull_request: | ||
|
@@ -30,6 +32,8 @@ jobs: | |
uses: actions/checkout@v4 | ||
- name: Update package database | ||
run: sudo apt -y update | ||
- name: ccache | ||
uses: hendrikmuhs/[email protected] | ||
- name: Install deps | ||
run: sudo apt -y install git make pkg-config gcc-11 g++-11 ccache cmake libyaml-cpp-dev llvm-15 clang-15 libclang-15-dev libclang-cpp15-dev clang-format-15 lcov zlib1g-dev libunwind-dev libdw-dev | ||
- name: Select g++ version | ||
|
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,49 @@ | ||
name: macOS | ||
|
||
on: | ||
push: | ||
paths-ignore: | ||
- 'docs/**' | ||
- 'packaging/**' | ||
- 'util/**' | ||
- 'uml/**' | ||
- '**.md' | ||
- '**.svg' | ||
- '**.png' | ||
branches-ignore: | ||
- 'noactions/*' | ||
pull_request: | ||
paths-ignore: | ||
- 'docs/**' | ||
- 'packaging/**' | ||
- 'util/**' | ||
- 'uml/**' | ||
- '**.md' | ||
- '**.svg' | ||
- '**.png' | ||
branches-ignore: | ||
- 'noactions/*' | ||
|
||
jobs: | ||
build-macos: | ||
name: Build and test on macos | ||
runs-on: macos-14 | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: ccache | ||
uses: hendrikmuhs/[email protected] | ||
|
||
- name: Install dependencies using homebrew | ||
run: brew install llvm@18 ninja yaml-cpp cmake ccache | ||
|
||
- name: Build and test | ||
run: CC=/opt/homebrew/opt/llvm/bin/clang CXX=/opt/homebrew/opt/llvm/bin/clang++ CMAKE_PREFIX=/opt/homebrew/opt/llvm/lib/cmake/llvm/ CMAKE_GENERATOR=Ninja CMAKE_EXE_LINKER_FLAGS="-L/opt/homebrew/opt/llvm/lib/c++ -Wl,-rpath,/opt/homebrew/opt/llvm/lib/c++" make test | ||
|
||
- name: Print build version | ||
run: debug/src/clang-uml --version | ||
|
||
- name: Print help | ||
run: debug/src/clang-uml --help |
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
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