-
Notifications
You must be signed in to change notification settings - Fork 359
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: add homebrew and linuxbrew build
Signed-off-by: Henry Schreiner <[email protected]>
- Loading branch information
Showing
2 changed files
with
51 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
name: Brew tests impl | ||
|
||
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 prerequisites | ||
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 | ||
run: cmake -S. -Bbuild -DBUILD_LIBMAMBA=ON -DBUILD_MAMBA=ON -DBUILD_SHARED=ON -DBUILD_STATIC=OFF | ||
|
||
- name: Build | ||
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 prerequisites | ||
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 | ||
run: > | ||
cmake -S. -Bbuild -DBUILD_LIBMAMBA=ON -DBUILD_MAMBA=ON -DBUILD_SHARED=ON -DBUILD_STATIC=OFF | ||
-DLibArchive_ROOT=$(brew --prefix libarchive) | ||
- name: Build | ||
run: cmake --build build -j4 |
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