Skip to content

Commit

Permalink
build all version as a Matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
mandulaj committed Feb 8, 2024
1 parent 0c301ef commit 3ad47bd
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/docker_build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: "Kalibr ROS1 Ubuntu"

on:
push:
branches: [ master, dockerfile ]
pull_request:

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
version: [16, 18, 20]
steps:
- name: Code Checkout
uses: actions/checkout@v2
- name: Create Workspace
run: |
export REPO=$(basename $GITHUB_REPOSITORY) &&
cd $GITHUB_WORKSPACE/.. && mkdir src/ &&
mv $REPO/ src/ && mkdir $REPO/ && mv src/ $REPO/ && cd $REPO/
- name: Build Docker
run: |
export REPO=$(basename $GITHUB_REPOSITORY) &&
docker build -t kalibr -f $GITHUB_WORKSPACE/src/$REPO/Dockerfile_ros1_${{ matrix.version }}_04 .

0 comments on commit 3ad47bd

Please sign in to comment.