-
Notifications
You must be signed in to change notification settings - Fork 0
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
12 changed files
with
7,552 additions
and
2,964 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 |
---|---|---|
|
@@ -3,29 +3,33 @@ name: Publish | |
on: | ||
push: | ||
branches: [ main, develop ] | ||
tags: ['v*.*.*'] | ||
|
||
tags: ['*'] | ||
pull_request: | ||
types: [opened, synchronize, reopened, ready_for_review] | ||
|
||
workflow_dispatch: | ||
|
||
env: | ||
REGISTRY: docker.io | ||
BASE_IMAGE_REPO: python | ||
BASE_IMAGE_TAG: '3.8.7-buster' | ||
|
||
# narg/NARG (number-of-CPU argument to pass to the builds) are based on OS-specific CPU counts in the GitHub-hosted GHA runners. | ||
# checked 1/4/2024: https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners/about-github-hosted-runners#supported-runners-and-hardware-resources | ||
|
||
jobs: | ||
|
||
test_docker: | ||
|
||
runs-on: ubuntu-20.04 | ||
runs-on: ubuntu-latest | ||
|
||
env: | ||
NARG: 2 | ||
|
||
# This job runs for all events that trigger this workflow | ||
|
||
steps: | ||
|
||
- name: Checkout the repo | ||
uses: actions/checkout@v2 | ||
uses: actions/checkout@v4 | ||
with: | ||
submodules: recursive | ||
|
||
|
@@ -38,6 +42,7 @@ jobs: | |
--build-arg build_type=Debug \ | ||
--build-arg build_examples=TRUE \ | ||
--build-arg enable_testing=TRUE \ | ||
--build-arg narg=${NARG} \ | ||
--tag driplineorg/dripline-cpp:test \ | ||
. | ||
docker run driplineorg/dripline-cpp:test /usr/local/build/testing/run_tests | ||
|
@@ -50,12 +55,18 @@ jobs: | |
|
||
strategy: | ||
matrix: | ||
os: [ubuntu-20.04, macos-10.15] | ||
os: [ubuntu-latest, macos-latest] | ||
include: | ||
- os: ubuntu-latest | ||
narg: 2 | ||
- os: macos-latest | ||
narg: 3 | ||
|
||
|
||
steps: | ||
|
||
- name: Checkout the repo | ||
uses: actions/checkout@v2 | ||
uses: actions/checkout@v4 | ||
with: | ||
submodules: recursive | ||
|
||
|
@@ -87,7 +98,7 @@ jobs: | |
- name: Build | ||
run: | | ||
cd build | ||
make -j2 install | ||
make -j${{ matrix.narg }} install | ||
- name: Run tests | ||
run: | | ||
|
@@ -96,7 +107,10 @@ jobs: | |
build_and_push: | ||
|
||
runs-on: ubuntu-20.04 | ||
runs-on: ubuntu-latest | ||
|
||
env: | ||
NARG: 2 | ||
|
||
# This job runs on push (limited above to develop, main and tags) and pull_requests marked read_for_review | ||
# Pushing images is limited below to push events | ||
|
@@ -124,41 +138,46 @@ jobs: | |
steps: | ||
|
||
- name: Checkout the repo | ||
uses: actions/checkout@v2 | ||
uses: actions/checkout@v4 | ||
with: | ||
submodules: recursive | ||
|
||
- name: Docker meta | ||
id: docker_meta | ||
uses: docker/metadata-action@v3 | ||
uses: docker/metadata-action@v5 | ||
with: | ||
images: driplineorg/dripline-cpp | ||
images: ${{ env.REGISTRY }}/${{ github.repository }} | ||
flavor: | | ||
latest=auto | ||
suffix=${{ matrix.tag-suffix }},onlatest=true | ||
tags: | | ||
type=semver,pattern={{raw}} | ||
type=ref,event=branch | ||
type=ref,event=pr | ||
type=raw,value=latest,enable=${{ github.ref == format('refs/heads{0}', 'main') }} | ||
- name: Set up QEMU | ||
uses: docker/setup-qemu-action@v1 | ||
uses: docker/setup-qemu-action@v3 | ||
|
||
- name: Set up Docker Buildx | ||
id: setup_buildx | ||
uses: docker/setup-buildx-action@v1 | ||
uses: docker/setup-buildx-action@v3 | ||
with: | ||
buildkitd-flags: --debug | ||
|
||
- name: Login to Docker Hub | ||
uses: docker/login-action@v1 | ||
uses: docker/login-action@v3 | ||
with: | ||
registry: ${{ env.REGISTRY }} | ||
username: ${{ secrets.DOCKER_USERNAME }} | ||
password: ${{ secrets.DOCKER_PASSWORD }} | ||
# for ghcr.io, use: | ||
# username: ${{ github.actor }} | ||
# password: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Build and push | ||
id: build_push | ||
uses: docker/build-push-action@v2 | ||
uses: docker/build-push-action@v5 | ||
with: | ||
context: . | ||
push: ${{ github.event_name == 'push' }} # limited to develop, main, and tags; don't push on PR | ||
|
@@ -168,60 +187,10 @@ jobs: | |
build_type=${{ matrix.build-type }} | ||
build_examples=${{ matrix.build-examples }} | ||
enable_testing=${{ matrix.enable-testing }} | ||
narg=${{env.NARG }} | ||
tags: ${{ steps.docker_meta.outputs.tags }} | ||
platforms: linux/amd64,linux/arm/v7,linux/arm64 | ||
|
||
docs: | ||
runs-on: ubuntu-20.04 | ||
# This job only runs for pushed tags | ||
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/') | ||
needs: [build_and_push] | ||
steps: | ||
- name: Checkout the repo | ||
uses: actions/checkout@v2 | ||
with: | ||
submodules: recursive | ||
- name: Install dependencies | ||
run: | | ||
sudo apt-get update | ||
DEBIAN_FRONTEND=noninteractive sudo apt-get install -y \ | ||
tree \ | ||
doxygen \ | ||
python3-sphinx \ | ||
graphviz | ||
- name: Output location | ||
run: | | ||
export OUTPUT_LOCATION="unknown" | ||
echo "Github ref: $GITHUB_REF" | ||
if [[ $GITHUB_REF == refs/heads/develop ]]; then | ||
echo "Branch is develop" | ||
export OUTPUT_LOCATION=develop | ||
elif [[ $GITHUB_REF == refs/heads/main ]]; then | ||
echo "Branch is main" | ||
export OUTPUT_LOCATION=main | ||
elif [[ $GITHUB_REF == refs/heads/* ]]; then | ||
suffix=${GITHUB_REF#"refs/heads/"} | ||
suffix=$(echo $suffix | tr '/' '-') | ||
echo "Branch is $GITHUB_REF; directory will be $suffix" | ||
export OUTPUT_LOCATION=branches/$suffix | ||
elif [[ $GITHUB_REF == refs/tags/* ]]; then | ||
suffx=${GITHUB_REF#"refs/tags/"} | ||
echo "Tag is $GITHUB_REF; directory will be $suffix" | ||
export OUTPUT_LOCATION=tags/$suffix | ||
fi | ||
echo "Output location: $OUTPUT_LOCATION" | ||
# Persist the output location in future steps | ||
echo "OUTPUT_LOCATION=$OUTPUT_LOCATION" >> $GITHUB_ENV | ||
- name: Build docs | ||
run: | | ||
cd documentation | ||
make html | ||
ls ./build/html | ||
mv ./build/html /tmp/build.html | ||
- name: Deploy | ||
uses: JamesIves/[email protected] | ||
with: | ||
branch: gh-pages # The branch the action should deploy to. | ||
folder: /tmp/build.html # The folder the action should deploy. | ||
target-folder: ${{ env.OUTPUT_LOCATION }} | ||
dry-run: false | ||
- name: Release | ||
uses: softprops/action-gh-release@v1 | ||
if: ${{ github.event_name == 'push' && contains(github.ref, 'refs/tags/') }} |
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
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
Submodule SimpleAmqpClient
updated
51 files
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
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
Submodule scarab
updated
16 files
+7 −1 | .github/workflows/run_tests.yaml | |
+8 −3 | CMakeLists.txt | |
+1 −1 | VERSION | |
+16 −13 | cmake/PackageBuilder.cmake | |
+61 −11 | cmake/PackageBuilderMacros.cmake | |
+23 −18 | executables/CMakeLists.txt | |
+2 −2 | library/logger/logger.cc | |
+2 −2 | library/logger/logger.hh | |
+122 −25 | library/utility/base_exception.hh | |
+1 −1 | library/utility/error.hh | |
+16 −0 | library/utility/indexed_factory.hh | |
+7 −1 | library/utility/typename.hh | |
+7 −3 | python/CMakeLists.txt | |
+19 −4 | testing/CMakeLists.txt | |
+12 −11 | testing/applications/CMakeLists.txt | |
+483 −275 | testing/catch/catch.hpp |
Oops, something went wrong.