Skip to content

Commit

Permalink
re-organize CI
Browse files Browse the repository at this point in the history
  • Loading branch information
koide3 committed Jul 1, 2024
1 parent aebc11e commit 558f1d8
Show file tree
Hide file tree
Showing 10 changed files with 26 additions and 126 deletions.
15 changes: 13 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,16 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
DISTRO: [jammy, jammy_cuda11.8, jammy_llvm, jammy_cuda11.8_llvm]
DISTRO: [
{ "ubuntu": "jammy", "suffix": ".gcc" },
{ "ubuntu": "jammy", "suffix": ".llvm" },
{ "ubuntu": "jammy_cuda11.8", "suffix": ".gcc.cuda" },
{ "ubuntu": "jammy_cuda11.8", "suffix": ".llvm.cuda" },
{ "ubuntu": "jammy_cuda12.2", "suffix": ".gcc.cuda" },
{ "ubuntu": "jammy_cuda12.2", "suffix": ".llvm.cuda" },
{ "ubuntu": "noble", "suffix": ".gcc" },
{ "ubuntu": "noble", "suffix": ".llvm" }
]

steps:
- uses: actions/checkout@v2
Expand All @@ -33,6 +42,8 @@ jobs:
- name: Docker build
uses: docker/build-push-action@v2
with:
file: ${{github.workspace}}/docker/${{ matrix.DISTRO }}/Dockerfile
file: ${{github.workspace}}/docker/ubuntu/Dockerfile.${{ matrix.DISTRO.suffix }}
build-args: |
BASE_IMAGE=koide3/gtsam_docker:${{ matrix.DISTRO.ubuntu }}
context: .
push: false
50 changes: 0 additions & 50 deletions docker/focal_cuda10.2/Dockerfile

This file was deleted.

18 changes: 0 additions & 18 deletions docker/focal_llvm/Dockerfile

This file was deleted.

15 changes: 0 additions & 15 deletions docker/jammy/Dockerfile

This file was deleted.

15 changes: 0 additions & 15 deletions docker/jammy_cuda11.8/Dockerfile

This file was deleted.

21 changes: 0 additions & 21 deletions docker/jammy_cuda11.8_llvm/Dockerfile

This file was deleted.

4 changes: 3 additions & 1 deletion docker/focal/Dockerfile → docker/ubuntu/Dockerfile.gcc
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
FROM koide3/gtsam_docker:focal
ARG BASE_IMAGE=jammy

FROM koide3/gtsam_docker:${BASE_IMAGE}

COPY . /root/gtsam_points
WORKDIR /root/gtsam_points/build
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
FROM koide3/gtsam_docker:focal_cuda11.2
ARG BASE_IMAGE=jammy

FROM koide3/gtsam_docker:${BASE_IMAGE}

COPY . /root/gtsam_points
WORKDIR /root/gtsam_points/build
RUN rm -rf *
RUN cmake .. \
-DBUILD_DEMO=ON \
-DBUILD_TESTS=ON \
-DBUILD_EXAMPLE=ON \
-DBUILD_WITH_CUDA=ON \
-DBUILD_WITH_CUDA_MULTIARCH=ON \
-DBUILD_EXAMPLE=ON \
-DCMAKE_BUILD_TYPE=Release
RUN make -j$(nproc)

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
FROM koide3/gtsam_docker:jammy
ARG BASE_IMAGE=jammy

FROM koide3/gtsam_docker:${BASE_IMAGE}

RUN update-alternatives --install /usr/bin/ld ld /usr/bin/ld.lld 50

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
FROM koide3/gtsam_docker:focal_cuda11.2
ARG BASE_IMAGE=jammy

FROM koide3/gtsam_docker:${BASE_IMAGE}

RUN update-alternatives --install /usr/bin/ld ld /usr/bin/ld.lld 50

Expand Down

0 comments on commit 558f1d8

Please sign in to comment.