From 3ad47bd284869fa09e7127f4151983cc48def4dd Mon Sep 17 00:00:00 2001 From: Jakub Mandula Date: Thu, 8 Feb 2024 17:16:15 +0100 Subject: [PATCH] build all version as a Matrix --- .github/workflows/docker_build.yaml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/docker_build.yaml diff --git a/.github/workflows/docker_build.yaml b/.github/workflows/docker_build.yaml new file mode 100644 index 000000000..030c56948 --- /dev/null +++ b/.github/workflows/docker_build.yaml @@ -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 .