This repository was archived by the owner on Sep 20, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 37
.github/workflow : Added compile tests #79
Open
akshaim
wants to merge
1
commit into
RIOT-OS:master
Choose a base branch
from
akshaim:add-CI-buildtests
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,32 @@ | ||
| name: Compilation tests for RIOT-OS submodule update | ||
|
|
||
| on: | ||
| push: | ||
| branches: [ master] | ||
| paths: | ||
| - RIOT | ||
| pull_request: | ||
| types: [opened, edited, reopened, synchronize] | ||
| branches: [ master ] | ||
| paths: | ||
| - RIOT | ||
|
|
||
| jobs: | ||
| build: | ||
| runs-on: ubuntu-latest | ||
| strategy: | ||
| fail-fast: false | ||
| matrix: | ||
| applications: [coap-chat, sniffer, spectrum-scanner] | ||
|
|
||
| steps: | ||
| - uses: actions/checkout@v2 | ||
| with: | ||
| submodules: true | ||
|
|
||
| - name: Pull the latest riotbuild docker image | ||
| run: docker pull riot/riotbuild:latest | ||
|
|
||
| - name: Run compile tests | ||
| run: | | ||
| make BUILD_IN_DOCKER=1 -C ${{ matrix.applications }} | ||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tried the following locally, this would all apps to be added without having to touch the CI list in order for testing.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This would however disable parallel testing. I personally prefer to use a CI matrix if there is one.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That means every test we would have to add into a list, also touching the github config, which also means that any non-maintainer would have to wait for it to be triggered.
Either way, AFAIK, we are merging this repo with the examples in the main RIOT repo. This would reduce all the duplicate CI work I suppose...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Only 10% of changes in the past were file additions and not all of those were new applications (given that this repo only contains 3 applications at the moment)
I think we would manage ;-). But yes, given RIOT-OS/RIOT#18602 this might indeed be a mood point.