Allow user-defined Makefile to optimize compiling #343
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This is the name of the workflow, visible on GitHub UI | |
name: windows | |
on: [push, pull_request] | |
jobs: | |
"rubocop": | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: 2.6 | |
- name: Check style | |
run: | | |
g++ -v | |
bundle install | |
bundle exec rubocop --version | |
bundle exec rubocop -D . --except Layout/EndOfLine | |
"rspec-windows": | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: 2.6 | |
- name: Check functionality | |
run: | | |
g++ -v | |
bundle install | |
bundle exec rspec | |
TestSomething: | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: 2.6 | |
- name: Check usage - TestSomething | |
run: | | |
g++ -v | |
bundle install | |
cd SampleProjects/TestSomething | |
bundle install | |
bundle exec arduino_ci.rb --help | |
bundle exec arduino_ci.rb | |
NetworkLib: | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: 2.6 | |
- name: Check usage - Test NetworkLib from scratch | |
run: | | |
g++ -v | |
cd SampleProjects/NetworkLib | |
bundle install | |
bundle exec ensure_arduino_installation.rb | |
bash -x ./scripts/install.sh | |
bundle exec arduino_ci.rb | |
SharedLibrary: | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: 2.6 | |
- name: Check usage - Test SharedLibrary should fail | |
run: ./SampleProjects/SharedLibrary/test.sh | |
Makefile: | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: 2.6 | |
- name: Check usage - Demo Makefile | |
run: ./SampleProjects/Makefile/test.sh | |