-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
195 changed files
with
33,837 additions
and
23,358 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,90 @@ | ||
name: Docker Image CI | ||
|
||
on: | ||
push: | ||
branches: [ "main" ] | ||
pull_request: | ||
branches: [ "main" ] | ||
|
||
jobs: | ||
|
||
build-AMD64: | ||
|
||
runs-on: [self-hosted, linux, x64] | ||
|
||
steps: | ||
- | ||
name: Get current date | ||
id: date | ||
run: echo "::set-output name=today::$(date +'%Y-%m-%d_%H-%M')" | ||
- | ||
name: Checkout | ||
uses: actions/checkout@v3 | ||
- | ||
name: Login to Docker Hub | ||
uses: docker/login-action@v3 | ||
with: | ||
username: ${{ secrets.DOCKER_HUB_ACCOUNT }} | ||
password: ${{ secrets.DOCKER_HUB_TOKEN }} | ||
- | ||
name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v2 | ||
- | ||
name: Build and push | ||
uses: docker/build-push-action@v3 | ||
with: | ||
context: . | ||
file: docker/Dockerfile.x86 | ||
push: true | ||
tags: | | ||
hkustswarm/d2slam:${{ steps.date.outputs.today }} | ||
hkustswarm/d2slam:pc | ||
hkustswarm/d2slam:latest | ||
cache-from: type=local,src=/tmp/.buildx-cache | ||
cache-to: type=local,dest=/tmp/.buildx-cache | ||
|
||
build-ARM64: | ||
|
||
runs-on: [self-hosted, linux, arm64] | ||
|
||
steps: | ||
- | ||
name: Get current date | ||
id: date | ||
run: echo "::set-output name=today::$(date +'%Y-%m-%d_%H-%M')" | ||
- | ||
name: Checkout | ||
uses: actions/checkout@v3 | ||
- | ||
name: Login to Docker Hub | ||
uses: docker/login-action@v3 | ||
with: | ||
username: ${{ secrets.DOCKER_HUB_ACCOUNT }} | ||
password: ${{ secrets.DOCKER_HUB_TOKEN }} | ||
- | ||
name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v2 | ||
- | ||
name: Build-base and push | ||
uses: docker/build-push-action@v3 | ||
with: | ||
context: . | ||
file: docker/Dockerfile.jetson_orin_base_35.3.1 | ||
push: true | ||
tags: | | ||
hkustswarm/d2slam:jetson_orin_base_35.3.1-${{ steps.date.outputs.today }} | ||
hkustswarm/d2slam:jetson_orin_base_35.3.1 | ||
cache-from: type=local,src=/tmp/.buildx-cache | ||
cache-to: type=local,dest=/tmp/.buildx-cache | ||
- | ||
name: Build-app and push | ||
uses: docker/build-push-action@v3 | ||
with: | ||
context: . | ||
file: docker/Dockerfile.jetson | ||
push: true | ||
tags: | | ||
hkustswarm/d2slam:jetson_orin-${{ steps.date.outputs.today }} | ||
hkustswarm/d2slam:jetson_orin | ||
cache-from: type=local,src=/tmp/.buildx-cache | ||
cache-to: type=local,dest=/tmp/.buildx-cache |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
repos: | ||
- repo: https://github.com/cpp-linter/cpp-linter-hooks | ||
rev: v0.4.0 # Use the ref you want to point at | ||
hooks: | ||
- id: clang-format | ||
args: [--style=Google] # Other coding style: LLVM, GNU, Chromium, Microsoft, Mozilla, WebKit. | ||
# - id: clang-tidy | ||
# args: [--checks='all', -p, build] |
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
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
Oops, something went wrong.