Skip to content

Commit

Permalink
chore: move mac-os into a separate flow (#285)
Browse files Browse the repository at this point in the history
  • Loading branch information
romange authored Jun 26, 2024
1 parent a212762 commit 0e7051e
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 36 deletions.
37 changes: 1 addition & 36 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -104,39 +104,4 @@ jobs:
uses: codecov/codecov-action@v4
with:
files: ./coverage.info
fail_ci_if_error: false

build-macos:
if: false
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
fail_ci_if_error: false
49 changes: 49 additions & 0 deletions .github/workflows/mac-os.yml
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

0 comments on commit 0e7051e

Please sign in to comment.