Skip to content

Commit

Permalink
Extract OpenGL Renderer from Mittsu
Browse files Browse the repository at this point in the history
  • Loading branch information
danini-the-panini committed Nov 17, 2024
0 parents commit 0fc4362
Show file tree
Hide file tree
Showing 233 changed files with 27,092 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .codeclimate.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
---
engines:
duplication:
enabled: true
config:
languages:
- ruby
fixme:
enabled: true
rubocop:
enabled: true
ratings:
paths:
- "**.rb"
exclude_paths:
- test/
- examples/
- bin/
67 changes: 67 additions & 0 deletions .github/workflows/build-workflow.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
name: Build
on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
linux:
name: Linux
runs-on: ubuntu-latest
strategy:
matrix:
ruby: ['2.6', '2.7', '3.0', '3.1', '3.2', '3.3', 'head']
steps:
- uses: actions/checkout@v4
- uses: awalsh128/cache-apt-pkgs-action@v1
with:
packages: libglfw3
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- name: Test & publish code coverage
uses: paambaati/codeclimate-action@v2.2.1
if: github.event_name == 'push'
env:
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
with:
coverageCommand: bundle exec rake test
- name: Test
if: github.event_name != 'push'
run: bundle exec rake test

macos:
name: macOS
runs-on: macos-latest
strategy:
matrix:
ruby: ['2.6', '2.7', '3.0', '3.1', '3.2', '3.3', 'head']
steps:
- uses: actions/checkout@v4
- run: brew install glfw
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- run: bundle exec rake test

windows:
name: Windows
runs-on: windows-latest
env:
MITTSU_LIBGLFW_PATH: c:\projects\mittsu\glfw-3.3.1.bin.WIN32\lib-mingw
strategy:
matrix:
ruby: ['2.6', '2.7', '3.0', '3.1', '3.2', '3.3', 'head']
steps:
- uses: actions/checkout@v4
- run: .\install-glfw.ps1
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- run: bundle exec rake test
12 changes: 12 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
/.bundle/
/.yardoc
/Gemfile.lock
/_yardoc/
/coverage/
/doc/
/pkg/
/spec/reports/
/tmp/
/test/reports
*.gem
.tool-versions
Loading

0 comments on commit 0fc4362

Please sign in to comment.