From 50de0718f0d5b455da25b99930850c7e45fc86f2 Mon Sep 17 00:00:00 2001 From: Henry Schreiner Date: Mon, 18 Nov 2024 15:03:24 -0500 Subject: [PATCH] ci: add linuxbrew build Signed-off-by: Henry Schreiner --- .github/workflows/brew.yml | 22 ++++++++++++++++++++++ .github/workflows/tests.yml | 4 ++++ 2 files changed, 26 insertions(+) create mode 100644 .github/workflows/brew.yml diff --git a/.github/workflows/brew.yml b/.github/workflows/brew.yml new file mode 100644 index 0000000000..92adb1644e --- /dev/null +++ b/.github/workflows/brew.yml @@ -0,0 +1,22 @@ +name: Brew tests impl + +on: + workflow_call: + +jobs: + build_linuxbrew: + name: Build on linxbrew + runs-on: ubuntu-latest + container: homebrew/brew:latest + 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 curl pkgconfig python + + - 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 diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index b66a4b254d..54028a818f 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -42,3 +42,7 @@ jobs: with: os: ${{ matrix.os }} build_type: ${{ matrix.build_type }} + + brew_tests: + name: Brew + uses: ./.github/workflows/brew.yml