Merge pull request #28 from ra3xdh/revert-25-develop #59
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
name: macos | |
on: | |
push: | |
branches: [ "develop", "release/*" ] | |
pull_request: | |
branches: [ "develop", "release/*" ] | |
env: | |
BUILD_TYPE: Release | |
jobs: | |
build-mac-intel: | |
runs-on: macos-12 | |
steps: | |
- uses: maxim-lobanov/setup-xcode@v1 | |
with: | |
xcode-version: latest-stable | |
- uses: actions/checkout@v4 | |
- name: Install dependencies | |
shell: bash | |
run: | | |
brew install gperf dos2unix bison flex ninja | |
echo 'export PATH="$(brew --prefix bison)/bin:$PATH"' >> /Users/runner/.bashrc | |
export LDFLAGS="-L$(brew --prefix bison)/lib" | |
source ~/.bashrc | |
brew link bison --force | |
- name: Configure CMake | |
run: | | |
cmake -B ${{github.workspace}}/build -G 'Ninja' -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} | |
- name: Build | |
run: | | |
cmake --build ${{github.workspace}}/build --parallel --config ${{env.BUILD_TYPE}} | |
build-mac-arm: | |
runs-on: macos-latest | |
steps: | |
- uses: maxim-lobanov/setup-xcode@v1 | |
with: | |
xcode-version: latest-stable | |
- uses: actions/checkout@v4 | |
- name: Install dependencies | |
shell: bash | |
run: | | |
brew install gperf dos2unix bison flex ninja | |
echo 'export PATH="$(brew --prefix bison)/bin:$PATH"' >> /Users/runner/.bashrc | |
export LDFLAGS="-L$(brew --prefix bison)/lib" | |
source ~/.bashrc | |
brew link bison --force | |
- name: Configure CMake | |
run: | | |
cmake -B ${{github.workspace}}/build -G 'Ninja' -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} | |
- name: Build | |
run: | | |
cmake --build ${{github.workspace}}/build --parallel --config ${{env.BUILD_TYPE}} |