-
Notifications
You must be signed in to change notification settings - Fork 73
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
support for Apple arm and improve the github action build
- Loading branch information
Showing
8 changed files
with
79 additions
and
58 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,50 +1,59 @@ | ||
name: CI | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
branches: | ||
- master | ||
push | ||
|
||
jobs: | ||
build: | ||
strategy: | ||
matrix: | ||
os: [ubuntu-latest, macos-latest] | ||
|
||
fail-fast: false | ||
|
||
runs-on: ${{ matrix.os }} | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
uses: actions/checkout@v4 | ||
with: | ||
submodules: true | ||
|
||
- name: Set up CMake | ||
- name: Set up dependencies for Linux | ||
if: runner.os == 'Linux' | ||
run: | | ||
sudo apt-get update -qq | ||
sudo apt-get install -qq cmake build-essential | ||
sudo apt-get install -qq cmake build-essential clang | ||
- name: Set up Homebrew | ||
- name: Set up dependencies for macOS | ||
if: runner.os == 'macOS' | ||
run: | | ||
brew update | ||
brew upgrade cmake | ||
- name: Set up compiler | ||
run: | | ||
sudo apt-get install -qq clang | ||
brew upgrade cmake | ||
brew install automake autoconf fontconfig | ||
- name: Display versions | ||
run: | | ||
gcc -v | ||
g++ -v | ||
cmake --version | ||
- name: set env variables | ||
if: runner.os == 'macOS' | ||
run: | | ||
echo "" >> $GITHUB_ENV | ||
echo "" >> $GITHUB_ENV | ||
- name: Build | ||
if: runner.os == 'macOS' | ||
env: | ||
C_INCLUDE_PATH: '/opt/homebrew/include' | ||
CPLUS_INCLUDE_PATH: '/opt/homebrew/include' | ||
run: | | ||
cmake ./ | ||
make | ||
- name: Build | ||
if: runner.os == 'Linux' | ||
run: | | ||
cmake ./ | ||
make |
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
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.