Skip to content

Update bundled SDL version for Windows #395

Update bundled SDL version for Windows

Update bundled SDL version for Windows #395

Workflow file for this run

name: Ruby
on:
push:
branches: [master]
pull_request:
jobs:
test:
strategy:
matrix:
platform: [ubuntu-latest, macos-latest, windows-latest]
ruby-version: ['2.6', '3.0']
runs-on: ${{ matrix.platform }}
steps:
- uses: actions/checkout@v4
- name: Install dependencies (Ubuntu)
if: startsWith(matrix.platform, 'ubuntu-')
run: sudo apt-get update && sudo apt-get install -y libsdl2-dev libgl1-mesa-dev libfontconfig1-dev xvfb
- name: Install dependencies (macOS)
if: startsWith(matrix.platform, 'macos-')
run: brew install sdl2
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby-version }}
bundler-cache: false # runs 'bundle install' and caches installed gems automatically
- name: Install dependencies
run: bundle install
- name: Compile Gosu
run: bundle exec rake compile
- name: Run tests (Linux)
if: startsWith(matrix.platform, 'ubuntu-')
run: xvfb-run --auto-servernum bundle exec rake test
- name: Run tests (other platforms)
if: "!startsWith(matrix.platform, 'ubuntu-')"
run: bundle exec rake test