Skip to content
Merged
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
36 changes: 36 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: CI

on:
pull_request:
branches:
- main
push:
branches:
- main

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true

jobs:
main:
runs-on: ubuntu-latest
strategy:
matrix:
ruby:
- "3.1"
- "3.2"
- "3.3"
- "3.4"
- ruby-head
name: "Ruby ${{ matrix.ruby }}: ${{ matrix.task }}"
steps:
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
ruby-version: "${{ matrix.ruby }}"
bundler-cache: true
# install castxml for the importer tests
- run: sudo apt-get update && sudo apt-get install -y castxml
- run: bundle install
- run: bundle exec rake spec
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ Gemfile.lock

# rspec failure tracking
.rspec_status
.rspec

# apple files
.DS_Store
Expand Down
3 changes: 3 additions & 0 deletions .rspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
--format documentation
--color
--require spec_helper
1 change: 1 addition & 0 deletions lib/ctypes/struct.rb
Original file line number Diff line number Diff line change
Expand Up @@ -517,6 +517,7 @@ def pretty_print(q) # :nodoc:
type.is_a?(CTypes::Pad)
end
q.seplist(fields, -> { q.breakable("") }) do |name, _|
names = name.is_a?(::Array) ? name : [name]
names.each do |name|
next if name.is_a?(CTypes::Pad)
q.text(".#{name} = ")
Expand Down
Loading