Skip to content

Commit 1543c05

Browse files
Version 0.0.8
1 parent c7938c6 commit 1543c05

4 files changed

Lines changed: 23 additions & 18 deletions

File tree

.github/workflows/build-binaries.yml

Lines changed: 19 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,32 +5,44 @@ on:
55
branches:
66
- main
77

8+
permissions:
9+
contents: write
10+
pull-requests: write
11+
812
jobs:
913
build-mac:
1014
if: startsWith(github.ref, 'refs/heads/ci/prebuilt-') == false
1115
runs-on: macos-latest
1216
steps:
1317
- uses: actions/checkout@v4
1418
with:
15-
submodules: recursive
1619
fetch-depth: 0
1720
- uses: actions/setup-node@v4
1821
with:
1922
node-version: '22'
20-
- name: Initialize submodules
23+
- name: Install system libraries (OpenSSL, Opus, libsrtp)
24+
if: runner.os == 'macOS'
25+
run: |
26+
brew update
27+
brew install openssl@3 opus libsrtp pkg-config ninja cmake
28+
- name: Clone dependencies (no submodules)
29+
shell: bash
2130
run: |
22-
git submodule sync --recursive
23-
git submodule update --init --recursive
31+
set -euo pipefail
32+
mkdir -p deps
33+
if [[ ! -d deps/re ]]; then git clone --depth=1 https://github.com/baresip/re.git deps/re; fi
34+
if [[ ! -d deps/baresip ]]; then git clone --depth=1 https://github.com/baresip/baresip.git deps/baresip; fi
2435
- name: Install Node dependencies
2536
run: npm ci
2637
- name: Build libre (re) static and stage SDK
2738
shell: bash
2839
run: |
2940
set -euo pipefail
3041
ROOT="$GITHUB_WORKSPACE"
42+
OPENSSL_PREFIX=$(brew --prefix openssl@3 || echo "/opt/homebrew/opt/openssl@3")
3143
cd "$ROOT/deps/re"
3244
rm -rf build
33-
cmake -B build -DCMAKE_BUILD_TYPE=Release
45+
cmake -B build -DCMAKE_BUILD_TYPE=Release -DOPENSSL_ROOT_DIR="$OPENSSL_PREFIX"
3446
cmake --build build -j
3547
mkdir -p "$ROOT/local/re/lib" "$ROOT/local/re/include"
3648
if [[ -f build/libre.a ]]; then cp -a build/libre.a "$ROOT/local/re/lib/"; \
@@ -42,9 +54,10 @@ jobs:
4254
run: |
4355
set -euo pipefail
4456
ROOT="$GITHUB_WORKSPACE"
57+
OPENSSL_PREFIX=$(brew --prefix openssl@3 || echo "/opt/homebrew/opt/openssl@3")
4558
cd "$ROOT/deps/baresip"
4659
rm -rf build
47-
cmake -B build -DSTATIC=ON -DCMAKE_BUILD_TYPE=Release
60+
cmake -B build -DSTATIC=ON -DCMAKE_BUILD_TYPE=Release -DOPENSSL_ROOT_DIR="$OPENSSL_PREFIX"
4861
cmake --build build -j
4962
mkdir -p "$ROOT/local/baresip/lib" "$ROOT/local/baresip/include"
5063
if [[ -f build/libbaresip.a ]]; then cp -a build/libbaresip.a "$ROOT/local/baresip/lib/"; \

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -428,6 +428,9 @@ deps/
428428

429429
test.js
430430

431+
# Ignore submodule working trees locally; CI will init them as-needed
432+
deps/
433+
431434
# Exclude prebuilt binaries from repo; CI will add them in PRs
432435
prebuilt/
433436

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.0.7
1+
0.0.8

deps/README.md

Lines changed: 0 additions & 11 deletions
This file was deleted.

0 commit comments

Comments
 (0)