-
Notifications
You must be signed in to change notification settings - Fork 658
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: replace reusable workflows with composite actions (#161)
* ci: replace reusable workflows with composite actions Signed-off-by: Keisuke Shima <[email protected]> Signed-off-by: Kenji Miyake <[email protected]> * fix style Signed-off-by: Kenji Miyake <[email protected]> * cancel previous runs of build-and-test Signed-off-by: Kenji Miyake <[email protected]> * replace trigger from label to comment Signed-off-by: Kenji Miyake <[email protected]> * update mkdocs settings Signed-off-by: Kenji Miyake <[email protected]> * update README.md for test Signed-off-by: Kenji Miyake <[email protected]> * ci(pre-commit): autofix Co-authored-by: Keisuke Shima <[email protected]> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
- Loading branch information
1 parent
d6007c3
commit 3a6d162
Showing
9 changed files
with
95 additions
and
83 deletions.
There are no files selected for viewing
10 changes: 5 additions & 5 deletions
10
.github/workflows/build-and-test-pr-arm.yaml → .github/workflows/build-and-test-arm-pr.yaml
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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,28 +4,40 @@ on: | |
pull_request: | ||
|
||
jobs: | ||
get-modified-packages: | ||
uses: autowarefoundation/autoware-github-actions/.github/workflows/reusable-get-modified-packages.yaml@6a086d5eac5effbed9876049233213f5cd358914 | ||
with: | ||
script-ref: 6a086d5eac5effbed9876049233213f5cd358914 | ||
build-and-test: | ||
runs-on: ubuntu-latest | ||
container: ros:galactic | ||
steps: | ||
- name: Cancel previous runs | ||
uses: styfle/[email protected] | ||
|
||
get-modified-source-files: | ||
uses: autowarefoundation/autoware-github-actions/.github/workflows/reusable-get-modified-source-files.yaml@6a086d5eac5effbed9876049233213f5cd358914 | ||
- name: Get modified packages | ||
id: get-modified-packages | ||
uses: autowarefoundation/autoware-github-actions/get-modified-packages@tier4/proposal | ||
|
||
build-and-test: | ||
needs: get-modified-packages | ||
uses: autowarefoundation/autoware-github-actions/.github/workflows/reusable-colcon-build-and-test.yaml@6a086d5eac5effbed9876049233213f5cd358914 | ||
with: | ||
rosdistro: galactic | ||
build-depends-repos: build_depends.repos | ||
target-packages: ${{ needs.get-modified-packages.outputs.modified-packages }} | ||
- name: Build and test | ||
if: ${{ steps.get-modified-packages.outputs.modified-packages != '' }} | ||
id: build-and-test | ||
uses: autowarefoundation/autoware-github-actions/colcon-build-and-test@tier4/proposal | ||
with: | ||
rosdistro: galactic | ||
target-packages: ${{ steps.get-modified-packages.outputs.modified-packages }} | ||
build-depends-repos: build_depends.repos | ||
|
||
clang-tidy: | ||
needs: [get-modified-source-files, build-and-test] | ||
uses: autowarefoundation/autoware-github-actions/.github/workflows/reusable-clang-tidy.yaml@6a086d5eac5effbed9876049233213f5cd358914 | ||
with: | ||
script-ref: 6a086d5eac5effbed9876049233213f5cd358914 | ||
rosdistro: galactic | ||
build-depends-repos: build_depends.repos | ||
target-files: ${{ needs.get-modified-source-files.outputs.modified-source-files }} | ||
compile-commands-hash: ${{ needs.build-and-test.outputs.compile-commands-hash }} | ||
runs-on: ubuntu-latest | ||
container: ros:galactic | ||
needs: build-and-test | ||
steps: | ||
- name: Get modified packages | ||
id: get-modified-packages | ||
uses: autowarefoundation/autoware-github-actions/get-modified-packages@tier4/proposal | ||
|
||
- name: Run clang-tidy | ||
if: ${{ steps.get-modified-packages.outputs.modified-packages != '' }} | ||
uses: autowarefoundation/autoware-github-actions/clang-tidy@tier4/proposal | ||
with: | ||
rosdistro: galactic | ||
target-packages: ${{ steps.get-modified-packages.outputs.modified-packages }} | ||
clang-tidy-config-url: https://raw.githubusercontent.com/autowarefoundation/autoware-github-actions/tier4/proposal/.clang-tidy | ||
build-depends-repos: build_depends.repos |
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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
name: deploy-docs | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
- tier4/proposal | ||
paths: | ||
- "mkdocs.yaml" | ||
- "**/*.md" | ||
- "**/*.svg" | ||
- "**/*.png" | ||
- "**/*.jpg" | ||
issue_comment: | ||
types: | ||
- created | ||
|
||
jobs: | ||
deploy-docs: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Deploy docs | ||
if: ${{ github.event.push || contains(github.event.comment.body, '/docs') }} | ||
uses: autowarefoundation/autoware-github-actions/deploy-docs@tier4/proposal | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} |
This file was deleted.
Oops, something went wrong.
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 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 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 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