Skip to content

Commit

Permalink
ci: add build-and-test workflow (#11)
Browse files Browse the repository at this point in the history
* fix:main code

Signed-off-by: kimurariku <[email protected]>

* chore: change dir config

Signed-off-by: kimurariku <[email protected]>

* add: setting files related cpp

Signed-off-by: kimurariku <[email protected]>

* add: build_depends.repos

Signed-off-by: kimurariku <[email protected]>

* add: etting files related markdown

Signed-off-by: kimurariku <[email protected]>

* add: etting files related pre

Signed-off-by: kimurariku <[email protected]>

* add: ignore files

Signed-off-by: kimurariku <[email protected]>

* add: config files

Signed-off-by: kimurariku <[email protected]>

* add: workflow files

Signed-off-by: kimurariku <[email protected]>

* add: PR template

Signed-off-by: kimurariku <[email protected]>

* fix: rename

Signed-off-by: kimurariku <[email protected]>

* chore: executed pre-commit

Signed-off-by: kimurariku <[email protected]>

* dumy

* fix: modify pre-commit

Signed-off-by: Masahiro Kubota <[email protected]>

* fix add token

Signed-off-by: Masahiro Kubota <[email protected]>

* fix: add permission

Signed-off-by: Masahiro Kubota <[email protected]>

* delete files

* modify

* add workflow dispatch

* fix: add files

Signed-off-by: Masahiro Kubota <[email protected]>

* add files

Signed-off-by: Masahiro Kubota <[email protected]>

* modify

Signed-off-by: Masahiro Kubota <[email protected]>

* modify

Signed-off-by: Masahiro Kubota <[email protected]>

* add

Signed-off-by: Masahiro Kubota <[email protected]>

* add permission

Signed-off-by: Masahiro Kubota <[email protected]>

* delete permission

Signed-off-by: Masahiro Kubota <[email protected]>

* modify

Signed-off-by: Masahiro Kubota <[email protected]>

* remove file

Signed-off-by: Masahiro Kubota <[email protected]>

* remove file

Signed-off-by: Masahiro Kubota <[email protected]>

* test

* remove mixed-line-ending

Signed-off-by: Masahiro Kubota <[email protected]>

* remove detect-private-key

Signed-off-by: Masahiro Kubota <[email protected]>

* remove precommit

Signed-off-by: Masahiro Kubota <[email protected]>

* add test file

Signed-off-by: Masahiro Kubota <[email protected]>

* revert: revert README fix

Signed-off-by: Masahiro Kubota <[email protected]>

* t cRevert "revert: revert README fix"

This reverts commit 4382a36.

* revert: revert README modification

Signed-off-by: Masahiro Kubota <[email protected]>

* revert: revert README modification

Signed-off-by: Masahiro Kubota <[email protected]>

* revert: remove .gitignore

Signed-off-by: Masahiro Kubota <[email protected]>

* revert: delete setup.cfg

Signed-off-by: Masahiro Kubota <[email protected]>

* fix: delete codecov

Signed-off-by: Masahiro Kubota <[email protected]>

* fix: remove unnecessary file

Signed-off-by: Masahiro Kubota <[email protected]>

* delete previledge option

* modify matrix

* modify matrix

* modify matrix

* delete if

* Squashed commit of the following:

commit f94b31f626333b9b0505bbf758942455d483546a
Author: Masahiro Kubota <[email protected]>
Date:   Tue Jan 7 18:39:23 2025 +0900

    delete df command

    Signed-off-by: Masahiro Kubota <[email protected]>

commit 33777a8
Author: Masahiro Kubota <[email protected]>
Date:   Tue Jan 7 18:36:12 2025 +0900

    partly revert

    Signed-off-by: Masahiro Kubota <[email protected]>

commit 2bfe881
Author: Masahiro Kubota <[email protected]>
Date:   Tue Jan 7 18:30:39 2025 +0900

    remove redundant parts

Signed-off-by: Masahiro Kubota <[email protected]>

---------

Signed-off-by: kimurariku <[email protected]>
Signed-off-by: Masahiro Kubota <[email protected]>
Co-authored-by: kimurariku <[email protected]>
  • Loading branch information
masahiro-kubota and kimurariku authored Jan 7, 2025
1 parent ddebb89 commit ec49a04
Show file tree
Hide file tree
Showing 9 changed files with 61 additions and 0 deletions.
52 changes: 52 additions & 0 deletions .github/workflows/build_and_test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: build-and-test

on:
pull_request:
workflow_dispatch:

jobs:
build-and-test:
runs-on: ubuntu-22.04
container:
image: ${{ matrix.image }}
strategy:
fail-fast: false
matrix:
rosdistro: [humble]
image: ["ros:humble"]
build-depends-repos: [build_depends.repos]
steps:
- name: Check out repository
uses: actions/checkout@v4
with:
fetch-depth: 1
repository: ${{ github.event.pull_request.head.repo.full_name }}
ref: ${{ github.event.pull_request.head.ref }}

- name: Remove exec_depend
uses: autowarefoundation/autoware-github-actions/remove-exec-depend@v1

- name: Get self packages
id: get-self-packages
uses: autowarefoundation/autoware-github-actions/get-self-packages@v1

- name: Update package list and install dependencies
run: |
apt-get update -yqq
apt-get install -yqq libboost-system-dev libboost-filesystem-dev libboost-thread-dev
- name: Build
if: ${{ steps.get-self-packages.outputs.self-packages != '' }}
uses: autowarefoundation/autoware-github-actions/colcon-build@v1
with:
rosdistro: ${{ matrix.rosdistro }}
target-packages: ${{ steps.get-self-packages.outputs.self-packages }}
build-depends-repos: ${{ matrix.build-depends-repos }}

- name: Test
if: ${{ steps.get-self-packages.outputs.self-packages != '' }}
uses: autowarefoundation/autoware-github-actions/colcon-test@v1
with:
rosdistro: ${{ matrix.rosdistro }}
target-packages: ${{ steps.get-self-packages.outputs.self-packages }}
build-depends-repos: ${{ matrix.build-depends-repos }}
9 changes: 9 additions & 0 deletions build_depends.repos
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
repositories:
autoware_state_machine_msgs:
type: git
url: https://github.com/eve-autonomy/autoware_state_machine_msgs.git
version: main
dio_ros_driver:
type: git
url: https://github.com/tier4/dio_ros_driver.git
version: develop/ros2
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit ec49a04

Please sign in to comment.