Skip to content
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
21 changes: 19 additions & 2 deletions .github/workflows/driver-cross-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,33 @@ on:
branches:
- master
paths:
- '.github/workflows/driver-cross-build.yml'
- '.test/bin/**'
- '.test/lint.sh'
- 'src/drivers/**'
- '.github/workflows/**'
pull_request:
types: [opened, synchronize]
paths:
- '.github/workflows/driver-cross-build.yml'
- '.test/bin/**'
- '.test/lint.sh'
- 'src/drivers/**'
- '.github/workflows/**'

jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- uses: actions/setup-python@v2
with:
python-version: '3.x'

- name: Lint
run: |
./.test/lint.sh
build:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lintをワークフローではなくジョブにして、Lintが失敗したらクロスビルドをキャンセルするように変更するのはどうでしょうか?

Copy link
Contributor Author

@Tiryoh Tiryoh Jul 19, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

1つのワークフローにまとめてLint失敗時はビルドテストしないようにしました。

https://github.com/rt-net/RaspberryPiMouse/runs/3100729669

Screenshot from 2021-07-19 13-58-22
Screenshot from 2021-07-19 14-00-31

needs: lint
strategy:
fail-fast: false
matrix:
Expand Down
Loading