Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 14 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,32 +6,40 @@ on:
pull_request:

jobs:
macos:
name: macOS / Ruby ${{ matrix.ruby }}
runs-on: macos-14
test:
name: ${{ matrix.os }} / Ruby ${{ matrix.ruby }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
ruby: ['3.2', '3.3', '3.4']
os: [macos-14, ubuntu-24.04]
ruby: ["3.2", "3.3", "3.4"]
steps:
- uses: actions/checkout@v4

- name: Clone libBeresta (read-only) for codegen + native build
run: |
git clone --depth=1 https://github.com/libBeresta/libBeresta.git ../libBeresta

- name: Install build deps (cmake, libpng, zlib, pkg-config)
- name: Install build deps (macOS)
if: runner.os == 'macOS'
run: |
brew update
brew install cmake libpng pkg-config

- name: Install build deps (Linux)
if: runner.os == 'Linux'
run: |
sudo apt-get update
sudo apt-get install -y cmake libpng-dev zlib1g-dev pkg-config build-essential

- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true

- name: Build libBeresta.dylib
- name: Build libBeresta shared library
run: |
cmake -S . -B build \
-DLIBBRST_SOURCE_DIR=$(cd ../libBeresta && pwd) \
Expand Down
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@

## [Unreleased]

### Added
- Linux (Ubuntu 24.04) CI: converted the single macOS job into an
`os × ruby` matrix covering both macOS 14 and Ubuntu 24.04
(addresses the Linux support noted in 0.1.0 Known limitations).
No Ruby code changes — `Library.lib_path` already resolves `.so`.

### Changed
- Regenerated bindings against upstream naming-convention renames
(libBeresta PR #64). Six functions renamed on the FFI surface:
Expand Down
Loading