diff --git a/.github/workflows/build-and-test-pr-arm.yaml b/.github/workflows/build-and-test-arm-pr.yaml similarity index 77% rename from .github/workflows/build-and-test-pr-arm.yaml rename to .github/workflows/build-and-test-arm-pr.yaml index 35b7d7db3034f..ed22787d98acd 100644 --- a/.github/workflows/build-and-test-pr-arm.yaml +++ b/.github/workflows/build-and-test-arm-pr.yaml @@ -1,13 +1,13 @@ -name: build-and-test-pr-arm +name: build-and-test-arm-pr on: - pull_request: + issue_comment: types: - - labeled + - created jobs: - build-and-test: - if: ${{ github.event.label.name == 'ARM64' }} + build-and-test-arm: + if: ${{ github.event.pull_request && contains(github.event.comment.body, '/arm') }} runs-on: [self-hosted, linux, ARM64] container: ros:galactic steps: diff --git a/.github/workflows/build-and-test-pr.yaml b/.github/workflows/build-and-test-pr.yaml index 74a4ca61c3117..4928589444040 100644 --- a/.github/workflows/build-and-test-pr.yaml +++ b/.github/workflows/build-and-test-pr.yaml @@ -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/cancel-workflow-action@0.9.1 - 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 diff --git a/.github/workflows/build-and-test-scheduled.yaml b/.github/workflows/build-and-test-scheduled.yaml index 3a6f06a575531..514a192bd696c 100644 --- a/.github/workflows/build-and-test-scheduled.yaml +++ b/.github/workflows/build-and-test-scheduled.yaml @@ -6,22 +6,21 @@ on: workflow_dispatch: jobs: - get-self-packages: - uses: autowarefoundation/autoware-github-actions/.github/workflows/reusable-get-self-packages.yaml@6a086d5eac5effbed9876049233213f5cd358914 + build-and-test-scheduled: + runs-on: ${{ matrix.os }} + container: ros:galactic + strategy: + fail-fast: false + matrix: + os: [ubuntu-latest, ARM64] + steps: + - name: Get self packages + id: get-self-packages + uses: autowarefoundation/autoware-github-actions/get-self-packages@tier4/proposal - build-and-test: - needs: get-self-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-self-packages.outputs.self-packages }} - - build-and-test-arm64: - needs: get-self-packages - uses: autowarefoundation/autoware-github-actions/.github/workflows/reusable-colcon-build-and-test.yaml@6a086d5eac5effbed9876049233213f5cd358914 - with: - os: ARM64 - rosdistro: galactic - build-depends-repos: build_depends.repos - target-packages: ${{ needs.get-self-packages.outputs.self-packages }} + - name: Build and test + uses: autowarefoundation/autoware-github-actions/colcon-build-and-test@tier4/proposal + with: + rosdistro: galactic + build-depends-repos: build_depends.repos + target-packages: ${{ steps.get-self-packages.outputs.self-packages }} diff --git a/.github/workflows/deploy-docs.yaml b/.github/workflows/deploy-docs.yaml new file mode 100644 index 0000000000000..d12e80c439cd5 --- /dev/null +++ b/.github/workflows/deploy-docs.yaml @@ -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 }} diff --git a/.github/workflows/generate-docs.yaml b/.github/workflows/generate-docs.yaml deleted file mode 100644 index 88559e06d147f..0000000000000 --- a/.github/workflows/generate-docs.yaml +++ /dev/null @@ -1,34 +0,0 @@ -name: generate-docs - -on: - push: - branches: - - main - - tier4/proposal - paths: - - "mkdocs.yaml" - - "**/*.md" - - "**/*.svg" - - "**/*.png" - - "**/*.css" - pull_request_target: - paths: - - "mkdocs.yaml" - - "**/*.md" - - "**/*.svg" - - "**/*.png" - - "**/*.css" - -jobs: - get-docs-version-name: - uses: autowarefoundation/autoware-github-actions/.github/workflows/reusable-get-docs-version-name.yaml@6a086d5eac5effbed9876049233213f5cd358914 - - generate-docs: - uses: autowarefoundation/autoware-github-actions/.github/workflows/reusable-generate-docs.yaml@6a086d5eac5effbed9876049233213f5cd358914 - needs: get-docs-version-name - with: - script-ref: 6a086d5eac5effbed9876049233213f5cd358914 - mkdocs-yaml: mkdocs.yaml - version-name: ${{ needs.get-docs-version-name.outputs.version-name }} - secrets: - token: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/semantic-pull-request.yaml b/.github/workflows/semantic-pull-request.yaml index 4c6084c9e1bdb..1e6d300473b59 100644 --- a/.github/workflows/semantic-pull-request.yaml +++ b/.github/workflows/semantic-pull-request.yaml @@ -9,6 +9,6 @@ on: jobs: semantic-pull-request: - uses: autowarefoundation/autoware-github-actions/.github/workflows/reusable-semantic-pull-request.yaml@6a086d5eac5effbed9876049233213f5cd358914 + uses: autowarefoundation/autoware-github-actions/.github/workflows/semantic-pull-request.yaml@tier4/proposal secrets: token: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/spell-check.yaml b/.github/workflows/spell-check.yaml index dd3ebaeb008ab..3d83a2fac7e0d 100644 --- a/.github/workflows/spell-check.yaml +++ b/.github/workflows/spell-check.yaml @@ -5,6 +5,12 @@ on: jobs: spell-check: - uses: autowarefoundation/autoware-github-actions/.github/workflows/reusable-spell-check.yaml@6a086d5eac5effbed9876049233213f5cd358914 - with: - cspell-json-url: https://raw.githubusercontent.com/tier4/autoware-spell-check-dict/main/cspell/.cspell.json + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v2 + + - name: Run spell-check + uses: autowarefoundation/autoware-github-actions/spell-check@tier4/proposal + with: + cspell-json-url: https://raw.githubusercontent.com/tier4/autoware-spell-check-dict/main/cspell/.cspell.json diff --git a/README.md b/README.md index b6e58b0196887..aa5fe2f009af3 100644 --- a/README.md +++ b/README.md @@ -3,3 +3,5 @@ This is one of the prototype repositories for Autoware Core/Universe that AWF agreed to create in the [TSC meeting on 2021/11/17](https://discourse.ros.org/t/technical-steering-committee-tsc-meeting-36-2021-11-17-minutes/23168). Please see [autowarefoundation/autoware](https://github.com/autowarefoundation/autoware) for more details. + +--- diff --git a/mkdocs.yaml b/mkdocs.yaml index 1d9fe0be1b218..4495be26b402b 100644 --- a/mkdocs.yaml +++ b/mkdocs.yaml @@ -50,7 +50,8 @@ plugins: - awesome-pages - exclude: regex: - - '^.*\.(?!(.*\.)?md|(.*\.)?svg|(.*\.)?png|(.*\.)?jpg|(.*\.)?css).*$' + - '^(?!(.*/)?assets/).*\.(?!(.*\.)?md|(.*\.)?svg|(.*\.)?png|(.*\.)?jpg).*$' + - "^(.*/)?[^.]*$" - same-dir - search