Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: add brew toolchain test #3625

Merged
merged 2 commits into from
Nov 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
47 changes: 47 additions & 0 deletions .github/workflows/brew.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: Homebrew and Linuxbrew toolchains

on:
workflow_call:

jobs:
build_linuxbrew:
name: Build on linuxbrew
runs-on: ubuntu-latest
container:
image: homebrew/brew:latest

steps:
# v1 required due to permissions error
- name: Checkout mamba repository
uses: actions/checkout@v1

- name: Correct the creation permissions
run: sudo chown -R linuxbrew .

- name: Install host and build dependencies
run: brew install fmt libarchive libsolv lz4 openssl@3 reproc simdjson xz yaml-cpp zstd cmake cli11 nlohmann-json spdlog tl-expected curl pkgconfig python bzip2 krb5 zlib

- name: Configure to build mamba
run: cmake -S. -Bbuild -DBUILD_LIBMAMBA=ON -DBUILD_MAMBA=ON -DBUILD_SHARED=ON -DBUILD_STATIC=OFF

- name: Build mamba
run: cmake --build build -j4

build_homebrew:
name: Build on homebrew
runs-on: macos-13

steps:
- name: Checkout mamba repository
uses: actions/checkout@v4

- name: Install host and build dependencies
run: brew install fmt libarchive libsolv lz4 openssl@3 reproc simdjson xz yaml-cpp zstd cmake cli11 nlohmann-json spdlog tl-expected pkgconfig python

- name: Configure to build mamba
run: >
cmake -S. -Bbuild -DBUILD_LIBMAMBA=ON -DBUILD_MAMBA=ON -DBUILD_SHARED=ON -DBUILD_STATIC=OFF
-DLibArchive_ROOT=$(brew --prefix libarchive)

- name: Build mamba
run: cmake --build build -j4
4 changes: 4 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,7 @@ jobs:
with:
os: ${{ matrix.os }}
build_type: ${{ matrix.build_type }}

brew_tests:
name: Homebrew and Linuxbrew toolchains
uses: ./.github/workflows/brew.yml
Loading