Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Develop #212

Merged
merged 2 commits into from
Nov 2, 2023
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
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?