Skip to content

fix memory leak

fix memory leak #122

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: [
{ "ubuntu": "noble", "suffix": "gcc" },
{ "ubuntu": "noble", "suffix": "llvm" },
{ "ubuntu": "noble_cuda12.5", "suffix": "gcc.cuda" },
{ "ubuntu": "noble_cuda12.5", "suffix": "llvm.cuda" },
{ "ubuntu": "jammy", "suffix": "gcc" },
{ "ubuntu": "jammy_cuda12.2", "suffix": "gcc.cuda" },
{ "ubuntu": "jammy_cuda12.5", "suffix": "gcc.cuda" },
{ "ubuntu": "focal", "suffix": "focal" },
{ "ubuntu": "focal_cuda12.2", "suffix": "focal.cuda" },
{ "ubuntu": "focal_cuda12.5", "suffix": "focal.cuda" },
]
steps:
- uses: actions/checkout@v2
with:
submodules: true
- 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/gtsam_points:${{ matrix.DISTRO.ubuntu }}
file: ${{github.workspace}}/docker/ubuntu/Dockerfile.${{ matrix.DISTRO.suffix }}
build-args: |
BASE_IMAGE=koide3/gtsam_docker:${{ matrix.DISTRO.ubuntu }}
context: .
push: ${{ github.event_name == 'push' && (contains(matrix.DISTRO.suffix, 'gcc') || contains(matrix.DISTRO.suffix, 'focal')) }}
dispatch:
needs: build
strategy:
matrix:
repo: ['koide3/glim']
runs-on: ubuntu-latest
steps:
- name: Repository Dispatch
uses: peter-evans/repository-dispatch@v3
with:
token: ${{ secrets.PAT }}
repository: ${{ matrix.repo }}
event-type: trigger-event