From 3314fc211f38e7b5a776c0e0680e331724c14ec9 Mon Sep 17 00:00:00 2001 From: Deepak Kumar Date: Tue, 7 Jan 2025 19:10:19 +0530 Subject: [PATCH] Fix GitHub actions build for macOS --- .github/workflows/osx.yml | 3 +-- bin/osx/setup-rabbit.sh | 5 +++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/osx.yml b/.github/workflows/osx.yml index cc57411a..c669c1e1 100644 --- a/.github/workflows/osx.yml +++ b/.github/workflows/osx.yml @@ -1,6 +1,6 @@ # This is a basic workflow that is manually triggered -name: Safari, Edge +name: Safari # Controls when the action will run. Workflow runs when manually triggered using the UI # or API. @@ -22,4 +22,3 @@ jobs: - run: npm ci - run: npm run build - run: npx karma start spec/karma.conf.js --single-run --browsers=Safari - - run: npx karma start spec/karma.conf.js --single-run --browsers=EdgeHeadless diff --git a/bin/osx/setup-rabbit.sh b/bin/osx/setup-rabbit.sh index ea044f07..d05e23ff 100755 --- a/bin/osx/setup-rabbit.sh +++ b/bin/osx/setup-rabbit.sh @@ -4,8 +4,9 @@ set -ex brew install rabbitmq -/usr/local/sbin/rabbitmq-plugins enable --offline rabbitmq_web_stomp -echo 'web_stomp.ws_frame = binary' >> /usr/local/etc/rabbitmq/rabbitmq.conf +# Path depends on whether Apple or Intel silicon is in use, https://www.rabbitmq.com/docs/install-homebrew +/opt/homebrew/sbin/rabbitmq-plugins enable --offline rabbitmq_web_stomp +echo 'web_stomp.ws_frame = binary' >>/opt/homebrew/etc/rabbitmq/rabbitmq.conf brew services run rabbitmq brew services list