limit maximum fast forward steps (#120) #276
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 | |
on: | |
push: | |
branches: [ master ] | |
paths-ignore: '**.md' | |
pull_request: | |
branches: [ master ] | |
paths-ignore: '**.md' | |
repository_dispatch: | |
types: [trigger-event] | |
# Allows you to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
DISTRO: [ | |
{ "ubuntu": "noble", "suffix": "gcc" }, | |
{ "ubuntu": "noble", "suffix": "llvm" }, | |
{ "ubuntu": "jammy", "suffix": "gcc" }, | |
{ "ubuntu": "jammy", "suffix": "llvm" }, | |
{ "ubuntu": "jammy_cuda12.2", "suffix": "gcc.cuda" }, | |
{ "ubuntu": "jammy_cuda12.2", "suffix": "llvm.cuda" } | |
] | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
token: ${{ secrets.GH_PAT }} | |
submodules: recursive | |
- name: Docker login | |
continue-on-error: true | |
uses: docker/login-action@v3 | |
with: | |
username: ${{ secrets.DOCKER_USERNAME }} | |
password: ${{ secrets.DOCKER_TOKEN }} | |
- name: Docker build | |
uses: docker/build-push-action@v6 | |
with: | |
tags: koide3/glim:${{ matrix.DISTRO.ubuntu }} | |
file: ${{github.workspace}}/docker/ubuntu/Dockerfile.${{ matrix.DISTRO.suffix }} | |
build-args: | | |
BASE_IMAGE=koide3/gtsam_points:${{ matrix.DISTRO.ubuntu }} | |
context: . | |
dispatch: | |
needs: build | |
strategy: | |
matrix: | |
repo: ['koide3/glim_ros1', 'koide3/glim_ros2'] | |
runs-on: ubuntu-latest | |
steps: | |
- name: Repository Dispatch | |
uses: peter-evans/repository-dispatch@v3 | |
with: | |
token: ${{ secrets.GH_PAT }} | |
repository: ${{ matrix.repo }} | |
event-type: trigger-event |