Skip to content

Commit

Permalink
separated individual workflow builds (lbr-stack/lbr_stack_doc#27)
Browse files Browse the repository at this point in the history
  • Loading branch information
mhubii committed Sep 8, 2024
1 parent 4c98e26 commit f669bc4
Show file tree
Hide file tree
Showing 7 changed files with 100 additions and 12 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/build-ubuntu-22.04-fri-1.11.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: build-ubuntu-22.04-fri-1.11
on:
pull_request:
branches:
- humble
workflow_dispatch:
schedule:
- cron: "0 0 * * 0"

jobs:
build:
uses: ./.github/workflows/build.yml
with:
os: ubuntu-22.04
fri_version: 1.11
15 changes: 15 additions & 0 deletions .github/workflows/build-ubuntu-22.04-fri-1.14.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: build-ubuntu-22.04-fri-1.14
on:
pull_request:
branches:
- humble
workflow_dispatch:
schedule:
- cron: "0 0 * * 0"

jobs:
build:
uses: ./.github/workflows/build.yml
with:
os: ubuntu-22.04
fri_version: 1.14
15 changes: 15 additions & 0 deletions .github/workflows/build-ubuntu-22.04-fri-1.15.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: build-ubuntu-22.04-fri-1.15
on:
pull_request:
branches:
- humble
workflow_dispatch:
schedule:
- cron: "0 0 * * 0"

jobs:
build:
uses: ./.github/workflows/build.yml
with:
os: ubuntu-22.04
fri_version: 1.15
15 changes: 15 additions & 0 deletions .github/workflows/build-ubuntu-22.04-fri-1.16.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: build-ubuntu-22.04-fri-1.16
on:
pull_request:
branches:
- humble
workflow_dispatch:
schedule:
- cron: "0 0 * * 0"

jobs:
build:
uses: ./.github/workflows/build.yml
with:
os: ubuntu-22.04
fri_version: 1.16
15 changes: 15 additions & 0 deletions .github/workflows/build-ubuntu-22.04-fri-2.5.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: build-ubuntu-22.04-fri-2.5
on:
pull_request:
branches:
- humble
workflow_dispatch:
schedule:
- cron: "0 0 * * 0"

jobs:
build:
uses: ./.github/workflows/build.yml
with:
os: ubuntu-22.04
fri_version: 2.5
15 changes: 15 additions & 0 deletions .github/workflows/build-ubuntu-22.04-fri-2.7.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: build-ubuntu-22.04-fri-2.7
on:
pull_request:
branches:
- humble
workflow_dispatch:
schedule:
- cron: "0 0 * * 0"

jobs:
build:
uses: ./.github/workflows/build.yml
with:
os: ubuntu-22.04
fri_version: 2.7
22 changes: 10 additions & 12 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,26 +1,24 @@
name: Build

on:
pull_request:
branches:
- humble
workflow_dispatch:
schedule:
- cron: "0 0 * * 0"
workflow_call: # https://github.com/orgs/community/discussions/52616#discussioncomment-9364532
inputs:
os:
required: true
type: string
fri_version:
required: true
type: string

# ros 2 ci: https://github.com/marketplace/actions/ros-2-ci-action
# doc: https://ubuntu.com/blog/ros-2-ci-with-github-actions
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-22.04]
fri_version: [1.11, 1.14, 1.15, 1.16, 2.5, 2.7]
runs-on: ${{ inputs.os }}
steps:
- uses: ros-tooling/[email protected]
- uses: ros-tooling/[email protected]
with:
package-name: lbr_fri_ros2_stack
target-ros2-distro: humble
vcs-repo-file-url: https://raw.githubusercontent.com/lbr-stack/lbr_fri_ros2_stack/humble/lbr_fri_ros2_stack/repos-fri-${{ matrix.fri_version }}.yaml
vcs-repo-file-url: https://raw.githubusercontent.com/lbr-stack/lbr_fri_ros2_stack/humble/lbr_fri_ros2_stack/repos-fri-${{ inputs.fri_version }}.yaml

0 comments on commit f669bc4

Please sign in to comment.