Skip to content

new ci

new ci #108

Workflow file for this run

name: Build
on:
push:
branches: [ master ]
paths-ignore: '**.md'
pull_request:
branches: [ master ]
paths-ignore: '**.md'
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
DISTRO: [
{ "base_image": "jammy", "suffix": "gcc" },
{ "base_image": "jammy_cuda12.2", "suffix": "gcc.cuda" }
]
steps:
- uses: actions/checkout@v2
with:
repository: 'koide3/gtsam_points'
path: 'gtsam_points'
token: ${{ secrets.GH_PAT }}
submodules: recursive
- uses: actions/checkout@v2
with:
path: 'glim'
token: ${{ secrets.GH_PAT }}
submodules: recursive
- name: Docker login
continue-on-error: true
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_TOKEN }}
- name: Docker build (gtsam_points)
uses: docker/build-push-action@v6
with:
file: ${{github.workspace}}/gtsam_points/docker/ubuntu/Dockerfile.${ matrix.DISTRO.suffix }
build-args: |
BASE_IMAGE=koide3/gtsam_docker:${{ matrix.DISTRO.ubuntu }}
context: gtsam_points
tags: gtsam_points
- name: Docker build (glim)
uses: docker/build-push-action@v6
with:
file: ${{github.workspace}}/glim/docker/ubuntu/Dockerfile.${ matrix.DISTRO.suffix }
build-args: |
BASE_IMAGE=gtsam_points
context: glim
tags: glim