-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: move mac-os into a separate flow (#285)
- Loading branch information
Showing
2 changed files
with
50 additions
and
36 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
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: mac-os-ci | ||
|
||
on: | ||
push: | ||
branches: [ master ] | ||
workflow_dispatch: | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | ||
cancel-in-progress: true | ||
|
||
env: | ||
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.) | ||
BUILD_TYPE: Debug | ||
|
||
jobs: | ||
build-macos: | ||
runs-on: macos-12 | ||
timeout-minutes: 30 # ✨✨✨✨ | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- run: | | ||
brew uninstall --formula node kotlin harfbuzz sbt selenium-server imagemagick \ | ||
gradle maven openjdk postgresql r ant mongodb-community@5.0 mongosh \ | ||
node@18 php composer | ||
# Prevent updating these packages that sometimes break the update | ||
brew pin azure-cli jpeg-xl aom lima pipx gcc | ||
brew update && brew install --force ninja boost openssl automake libtool | ||
- name: Configure CMake | ||
run: | | ||
cmake --version | ||
gcc-13 --version | ||
uname -a | ||
cmake -B ${{github.workspace}}/build \ | ||
-DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} \ | ||
-GNinja \ | ||
-DCMAKE_C_COMPILER="gcc-13" \ | ||
-DCMAKE_CXX_COMPILER="g++-13" | ||
- name: Build & Test | ||
run: | | ||
cd ${{github.workspace}}/build | ||
ninja gperf_project || cat third_party/src/gperf_project-stamp/gperf_project-patch-*.log | ||
ninja -k 5 base/all io/all strings/all util/all echo_server ping_iouring_server \ | ||
https_client_cli s3_demo | ||
./fibers_test --logtostderr --gtest_repeat=10 | ||
ctest -V -L CI |