Skip to content

Commit

Permalink
fix: just brew install fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
c-dilks committed Jan 13, 2024
1 parent 37c8a9e commit 4f7923b
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,28 +52,24 @@ jobs:
runs-on: ${{ inputs.runner }}
steps:
- name: checkout fmt
if: ${{ inputs.runner != 'macos-latest' }} # FIXME
uses: actions/checkout@v4
with:
repository: fmtlib/fmt
ref: ${{ env.fmt_version }}
- name: build static library # NOTE: `fmt` prefers to be built as a static or shared library, but not both
- name: build
if: ${{ inputs.runner != 'macos-latest' }} # FIXME
run: |
cmake -S . -B build -DCMAKE_INSTALL_PREFIX=fmt -DCMAKE_POSITION_INDEPENDENT_CODE=ON
cmake --build build -j2
cmake --install build
- name: build shared library ### FIXME `cppyy` on macOS needs shared (dynamic) libfmt
if: ${{ inputs.runner == 'macos-latest' }}
run: |
cmake -S . -B build-shared -DBUILD_SHARED_LIBS=ON
cmake --build build-shared -j2
echo "[+] INSTALLING SHARED LIBRARIES"
cp -v build-shared/libfmt*.dylib* fmt/lib/ # pretty much what the Homebrow formula does...
- run: brew install tree
if: ${{ inputs.runner == 'macos-latest' }}
- run: tree fmt
if: ${{ inputs.runner != 'macos-latest' }} # FIXME
- name: tar
if: ${{ inputs.runner != 'macos-latest' }} # FIXME
run: tar czvf fmt{.tar.gz,}
- uses: actions/upload-artifact@v3
if: ${{ inputs.runner != 'macos-latest' }} # FIXME
with:
name: build_deps
retention-days: 1
Expand Down Expand Up @@ -117,6 +113,8 @@ jobs:
uses: actions/download-artifact@v3
with:
name: build_deps
- run: brew install fmt
if: ${{ inputs.runner == 'macos-latest' }}
- name: untar build
run: ls *.tar.gz | xargs -I{} tar xzvf {}
- run: brew install tree
Expand Down Expand Up @@ -208,6 +206,8 @@ jobs:
uses: actions/download-artifact@v3
with:
name: build_deps
- run: brew install fmt
if: ${{ inputs.runner == 'macos-latest' }}
- name: get iguana build artifacts
uses: actions/download-artifact@v3
with:
Expand Down Expand Up @@ -252,6 +252,8 @@ jobs:
uses: actions/download-artifact@v3
with:
name: build_deps
- run: brew install fmt
if: ${{ inputs.runner == 'macos-latest' }}
- name: get iguana build artifacts
uses: actions/download-artifact@v3
with:
Expand Down

0 comments on commit 4f7923b

Please sign in to comment.