Skip to content

Commit

Permalink
Build only internal packages in CI (autowarefoundation#227)
Browse files Browse the repository at this point in the history
Signed-off-by: Kenji Miyake <kenji.miyake@tier4.jp>
  • Loading branch information
kenji-miyake authored May 24, 2021
1 parent 5cd054a commit 2e38a3a
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/build_and_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,15 @@ jobs:
apt-get -y update
apt-get -y install kvaser-canlib-dev kvaser-drivers-dkms
- name: Search modified package
id: list_packages
run: |
echo ::set-output name=package_list::$(colcon list --names-only)
- name: Show target packages
run: |
echo "Target packages: ${{ steps.list_packages.outputs.package_list }}"
- name: Install yq
run: |
apt-get -y update
Expand Down Expand Up @@ -62,10 +71,12 @@ jobs:
run: |
. /opt/ros/foxy/setup.sh
colcon build --event-handlers console_cohesion+ \
--packages-up-to ${{ steps.list_packages.outputs.package_list }} \
--cmake-args -DCMAKE_BUILD_TYPE=Release
- name: Run tests
run: |
. /opt/ros/foxy/setup.sh
colcon test --event-handlers console_cohesion+ \
--packages-select ${{ steps.list_packages.outputs.package_list }} \
--return-code-on-test-failure
1 change: 1 addition & 0 deletions .github/workflows/build_and_test_pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v2
with:
# Fetch with depth=0 to calculate modified packages
fetch-depth: 0

- name: Install pip
Expand Down

0 comments on commit 2e38a3a

Please sign in to comment.