New Automatic Build and Push Actions #11
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "Build Kalibr" | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
version: [16, 18, 20] | |
name: Build Ubuntu ${{ matrix.version }}.04 | |
steps: | |
- name: Code Checkout | |
uses: actions/checkout@v4 | |
- 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 . |