Skip to content

Commit

Permalink
Fix: Don't Build Pistache Tests for Homebrew Formula
Browse files Browse the repository at this point in the history
Also: Add Comment About GitHub Rate Limit in brew.yaml
  • Loading branch information
dgreatwood committed Dec 24, 2024
1 parent 0569035 commit a1a002a
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 9 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/brew.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,9 @@ on:
push:
branches:
- master
- brewFormula
pull_request:
branches:
- master
- brewFormula

defaults:
run:
Expand Down Expand Up @@ -78,6 +76,10 @@ jobs:
export CC
echo "CXX is $CXX; CC is $CC"
# Note - if you get the GitHub error:
# GitHub API Error: API rate limit exceeded for aa.bb.cc.dd...
# Then try rerunning the job in 20-25 minutes
homebrew/runformula.sh -y --force --HEAD
# -y Say "yes" to doing the brew audit
# --force Run even if pistache brew formula unchanged
Expand Down
16 changes: 9 additions & 7 deletions homebrew/pistache.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ class Pistache < Formula
depends_on "ninja" => :build
depends_on "pkgconf" => :build
depends_on "rapidjson" => :build

depends_on "brotli"
depends_on "libevent"
depends_on "openssl@3"
Expand All @@ -30,13 +31,14 @@ class Pistache < Formula

def install
system "meson", "setup", "build",
"-DPISTACHE_USE_SSL=true", "-DPISTACHE_BUILD_EXAMPLES=true",
"-DPISTACHE_BUILD_TESTS=true",
"-DPISTACHE_BUILD_DOCS=false",
"-DPISTACHE_USE_CONTENT_ENCODING_DEFLATE=true",
"-DPISTACHE_USE_CONTENT_ENCODING_BROTLI=true",
"-DPISTACHE_USE_CONTENT_ENCODING_ZSTD=true",
*std_meson_args
"-DPISTACHE_USE_SSL=true",
"-DPISTACHE_BUILD_EXAMPLES=false",
"-DPISTACHE_BUILD_TESTS=false",
"-DPISTACHE_BUILD_DOCS=false",
"-DPISTACHE_USE_CONTENT_ENCODING_DEFLATE=true",
"-DPISTACHE_USE_CONTENT_ENCODING_BROTLI=true",
"-DPISTACHE_USE_CONTENT_ENCODING_ZSTD=true",
*std_meson_args

system "meson", "compile", "-C", "build", "--verbose"
system "meson", "install", "-C", "build"
Expand Down

0 comments on commit a1a002a

Please sign in to comment.