Skip to content

Commit

Permalink
Merge pull request #212 from mcorino/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
mcorino committed Nov 2, 2023
2 parents b23c88f + fc0a7ce commit 4180fb4
Show file tree
Hide file tree
Showing 6 changed files with 30 additions and 5 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/linux-master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,11 @@ jobs:
run: |
bundle exec rake build
- name: Run wxRuby3 post-build checks
if: matrix.wxr_type != 'gem'
run: |
ruby tools/check_swig_types.rb
- name: Build wxRuby3 gem
if: matrix.wxr_type == 'gem' || matrix.wxr_type == 'bingem'
run: |
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,11 @@ jobs:
run: |
bundle exec rake build
- name: Run wxRuby3 post-build checks
if: matrix.wxr_type != 'gem'
run: |
ruby tools/check_swig_types.rb
- name: Build wxRuby3 gem
if: matrix.wxr_type == 'gem' || matrix.wxr_type == 'bingem'
run: |
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/mac.yml
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,11 @@ jobs:
run: |
bundle exec rake build
- name: Run wxRuby3 post-build checks
if: matrix.wxr_type != 'gem'
run: |
ruby tools/check_swig_types.rb
- name: Build wxRuby3 gem
if: matrix.wxr_type == 'gem' || matrix.wxr_type == 'bingem'
run: |
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/msw-master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,11 @@ jobs:
run: |
bundle exec rake build
- name: Run wxRuby3 post-build checks
if: matrix.wxr_type != 'gem'
run: |
ruby tools/check_swig_types.rb
- name: Build wxRuby3 gem
if: matrix.wxr_type != 'develop'
run: |
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/msw.yml
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,11 @@ jobs:
run: |
bundle exec rake build
- name: Run wxRuby3 post-build checks
if: matrix.wxr_type != 'gem'
run: |
ruby tools/check_swig_types.rb
- name: Build wxRuby3 gem
if: matrix.wxr_type != 'develop'
run: |
Expand Down
10 changes: 5 additions & 5 deletions tools/check_swig_types.rb
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def scan_sources
end
end

def check_types(quiet)
def check_types(verbose)
un_wrapped = SWIG_TYPES_USED - SWIG_TYPES_WRAPPED
un_used = SWIG_TYPES_WRAPPED - SWIG_TYPES_USED

Expand All @@ -66,7 +66,7 @@ def check_types(quiet)
STDERR.puts
end

unless un_used.empty? || quiet
unless un_used.empty? || !verbose
STDOUT.puts "INFO: The following types have wrapper classes defined not used in wrapper code:"
un_used.each { |s| STDOUT.puts "\t#{s}" }
STDOUT.puts
Expand All @@ -75,14 +75,14 @@ def check_types(quiet)

end

def self.run(quiet)
def self.run(verbose)
scan_sources

check_types(quiet)
check_types(verbose)
end

end

Tool.run(ARGV.size==1 && ARGV[0]=='-q')
Tool.run(ARGV.size==1 && ARGV[0]=='-v')

exit(1) if Tool.errors?

0 comments on commit 4180fb4

Please sign in to comment.