-
-
Notifications
You must be signed in to change notification settings - Fork 11
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
[Fixes #62] Remove re-exports to avoid warnings promoted to errors #64
Changes from all commits
98ae1bc
afd9cce
53e8eb7
0550fc0
0729118
9122b53
2d75357
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,6 +8,7 @@ env: | |
|
||
jobs: | ||
setup: | ||
if: github.event.pull_request.head.repo.full_name != github.repository | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout sources | ||
|
@@ -24,6 +25,7 @@ jobs: | |
feature_matrix: ${{ steps.features.outputs.feature_matrix }} | ||
|
||
build: | ||
if: github.event.pull_request.head.repo.full_name != github.repository | ||
needs: setup | ||
runs-on: ubuntu-latest | ||
strategy: | ||
|
@@ -39,7 +41,28 @@ jobs: | |
- name: Build HAL for ${{ matrix.pac }} | ||
run: cargo check --package atsamx7x-hal --features ${{ matrix.pac }},unproven | ||
|
||
build-latest: | ||
if: github.event.pull_request.head.repo.full_name != github.repository | ||
needs: setup | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
pac: ${{ fromJson(needs.setup.outputs.pac_matrix) }} | ||
continue-on-error: true # we let this fail and carry on, but GH UI is poor not showing amber like other CIs | ||
steps: | ||
- name: Checkout sources | ||
uses: actions/checkout@v2 | ||
- name: Update toolchain | ||
run: rustup update | ||
- name: Specify toolchain | ||
run: rustup override set stable | ||
- name: Install Rust (thumbv7em) | ||
run: rustup target add thumbv7em-none-eabihf | ||
- name: Build HAL for ${{ matrix.pac }} | ||
run: cargo check --package atsamx7x-hal --features ${{ matrix.pac }},unproven | ||
|
||
build-features: | ||
if: github.event.pull_request.head.repo.full_name != github.repository | ||
needs: setup | ||
runs-on: ubuntu-latest | ||
strategy: | ||
|
@@ -56,6 +79,7 @@ jobs: | |
run: cargo check --package atsamx7x-hal --features ${{ matrix.features }},samv71q21b,unproven | ||
|
||
board-examples: | ||
if: github.event.pull_request.head.repo.full_name != github.repository | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @michalfita What is the purpose of this line? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. To stop redundant builds. We have two triggers |
||
needs: setup | ||
runs-on: ubuntu-latest | ||
strategy: | ||
|
@@ -74,6 +98,7 @@ jobs: | |
cargo check --examples | ||
|
||
clippy-hal: | ||
if: github.event.pull_request.head.repo.full_name != github.repository | ||
needs: build | ||
runs-on: ubuntu-latest | ||
steps: | ||
|
@@ -89,6 +114,7 @@ jobs: | |
run: cargo clippy --package atsamx7x-hal --no-deps --features samv71q21b,unproven,reconfigurable-system-pins -- --deny warnings | ||
|
||
clippy-examples: | ||
if: github.event.pull_request.head.repo.full_name != github.repository | ||
needs: [setup, build, board-examples] | ||
runs-on: ubuntu-latest | ||
strategy: | ||
|
@@ -109,6 +135,7 @@ jobs: | |
cargo clippy --examples --no-deps -- --deny warnings | ||
|
||
docs: | ||
if: github.event.pull_request.head.repo.full_name != github.repository | ||
needs: build | ||
runs-on: ubuntu-latest | ||
steps: | ||
|
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.
IIRC, not using a board feature (like
samv71q21b
) omits the build of some modules.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.
@tmplt
${{ matrix.pac }}
is built from following output:and that's CI coming from you or your company.
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 looks good to me, although it feels like the CI is slowly growing more and more unruly and there should be a better way to do this.
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.
GitHub Action from Software Engineering perspective are utter nightmare. It's effectively a toy for JavaScript kids to develop their creativity, to serious tool for serious projects.