Skip to content

Commit e97a8e8

Browse files
authored
fix(ci): fix macOS ci to use provided fmt (#670)
1 parent 6c781c7 commit e97a8e8

3 files changed

Lines changed: 18 additions & 0 deletions

File tree

.github/workflows/rc.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,13 @@ jobs:
105105
shell: bash
106106
run: sudo apt-get update && sudo apt-get install -y libcurl4-openssl-dev
107107

108+
- name: Install fmt on macOS
109+
if: ${{ startsWith(matrix.os, 'macos') }}
110+
shell: bash
111+
run: |
112+
brew install fmt
113+
echo "CMAKE_PREFIX_PATH=$(brew --prefix fmt):${CMAKE_PREFIX_PATH:-}" >> "${GITHUB_ENV}"
114+
108115
- name: Verify
109116
run: |
110117
tar_gz=$(echo apache-iceberg-cpp-*.tar.gz)

.github/workflows/s3_test.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,12 @@ jobs:
7373
run: |
7474
echo "CC=${{ matrix.CC }}" >> $GITHUB_ENV
7575
echo "CXX=${{ matrix.CXX }}" >> $GITHUB_ENV
76+
- name: Install fmt on macOS
77+
if: ${{ startsWith(matrix.runs-on, 'macos') }}
78+
shell: bash
79+
run: |
80+
brew install fmt
81+
echo "CMAKE_PREFIX_PATH=$(brew --prefix fmt):${CMAKE_PREFIX_PATH:-}" >> "${GITHUB_ENV}"
7682
- name: Start MinIO
7783
shell: bash
7884
run: bash ci/scripts/start_minio.sh

.github/workflows/test.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,11 @@ jobs:
7474
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
7575
with:
7676
persist-credentials: false
77+
- name: Install fmt
78+
shell: bash
79+
run: |
80+
brew install fmt
81+
echo "CMAKE_PREFIX_PATH=$(brew --prefix fmt):${CMAKE_PREFIX_PATH:-}" >> "${GITHUB_ENV}"
7782
- name: Build Iceberg
7883
shell: bash
7984
run: ci/scripts/build_iceberg.sh $(pwd)

0 commit comments

Comments
 (0)