-
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.
CI, Test Scripts, and README Improvements (#2)
- Loading branch information
1 parent
6aee90a
commit 86c0f5d
Showing
17 changed files
with
393 additions
and
188 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,33 @@ | ||
<!-- | ||
This source file is part of the FA 2021 open source project | ||
SPDX-FileCopyrightText: 2021 Paul Schmiedmayer and the FA 2021 project authors (see CONTRIBUTORS.md) <[email protected]> | ||
SPDX-License-Identifier: MIT | ||
--> | ||
|
||
# *Name of the PR* | ||
|
||
## :recycle: Current situation & Problem | ||
*Describe the current situation (if possible with and exemplary (or real) code snippet and/or where this is used)* | ||
|
||
## :bulb: Proposed solution | ||
*Describe the solution and how this affects the project and internal structure* | ||
|
||
## :gear: Release Notes | ||
*Add a short summary of the feature as well as possible migration guides if this is a breaking change so this section can be added to the release notes.* | ||
*Include code snippets that provide examples of the feature implemented if it appends or changes the public interface.* | ||
|
||
## :heavy_plus_sign: Additional Information | ||
*Provide some additional information if possible* | ||
|
||
### Related PRs | ||
*Reference the related PRs* | ||
|
||
### Testing | ||
*Are there tests included? If yes, which situations are tested and which corner cases are missing?* | ||
|
||
### Reviewer Nudging | ||
*Where should the reviewer start, where is a good entry point?* |
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 |
---|---|---|
@@ -1,7 +1,7 @@ | ||
# | ||
# This source file is part of the FA2021 open source project | ||
# | ||
# SPDX-FileCopyrightText: 2019-2021 Paul Schmiedmayer and the project authors (see CONTRIBUTORS.md) <[email protected]> | ||
# This source file is part of the FA 2021 open source project | ||
# | ||
# SPDX-FileCopyrightText: 2021 Paul Schmiedmayer and the FA 2021 project authors (see CONTRIBUTORS.md) <[email protected]> | ||
# | ||
# SPDX-License-Identifier: MIT | ||
# | ||
|
@@ -38,12 +38,8 @@ jobs: | |
run: xcodebuild -version | ||
- name: Check Swift version | ||
run: swift --version | ||
- name: Release Build # Ensuring release build runs successfully without -enable-testing flag | ||
if: matrix.configuration == 'release' | ||
run: swift build -c release | ||
- name: Debug Build | ||
if: matrix.configuration == 'debug' | ||
run: swift build -c debug | ||
- name: Build ${{ matrix.configuration }} | ||
run: swift build -c ${{ matrix.configuration }} | ||
|
||
linux: | ||
name: Linux ${{ matrix.linux }} ${{ matrix.configuration }} | ||
|
@@ -53,8 +49,8 @@ jobs: | |
strategy: | ||
fail-fast: false | ||
matrix: | ||
linux: [bionic, focal, amazonlinux2, centos8] | ||
configuration: [debug, release, release_testing] | ||
linux: [focal, amazonlinux2, centos8] | ||
configuration: [debug, release] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Install libsqlite3, lsof, zsh and libavahi-compat-libdnssd-dev | ||
|
@@ -75,6 +71,5 @@ jobs: | |
key: ${{ runner.os }}-${{matrix.linux}}-${{matrix.configuration}}-spm2-${{ hashFiles('Package.resolved') }} | ||
- name: Check Swift version | ||
run: swift --version | ||
- name: Release Build # Ensuring release build runs successfully without -enable-testing flag | ||
if: matrix.configuration == 'release' | ||
run: swift build -c release | ||
- name: Build ${{ matrix.configuration }} | ||
run: swift build -c ${{ matrix.configuration }} |
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 |
---|---|---|
@@ -1,7 +1,7 @@ | ||
# | ||
# This source file is part of the Apodini Template open source project | ||
# This source file is part of the FA 2021 open source project | ||
# | ||
# SPDX-FileCopyrightText: 2021 Paul Schmiedmayer and the project authors (see CONTRIBUTORS.md) <[email protected]> | ||
# SPDX-FileCopyrightText: 2021 Paul Schmiedmayer and the FA 2021 project authors (see CONTRIBUTORS.md) <[email protected]> | ||
# | ||
# SPDX-License-Identifier: MIT | ||
# | ||
|
@@ -14,9 +14,9 @@ on: | |
workflow_dispatch: | ||
|
||
jobs: | ||
docker: | ||
name: Docker Build and Push Image ${{ matrix.architecture }} | ||
runs-on: ubuntu-latest | ||
dockerARM64: | ||
name: Docker Build and Push ARM64 Images | ||
runs-on: ARM64 | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
|
@@ -25,28 +25,96 @@ jobs: | |
uses: WyriHaximus/github-action-get-previous-tag@v1 | ||
with: | ||
fallback: latest | ||
- name: Set up QEMU | ||
uses: docker/setup-qemu-action@v1 | ||
- name: Log in to the container registry | ||
uses: docker/login-action@v1 | ||
with: | ||
registry: ghcr.io | ||
username: ${{ github.actor }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
- name: Build and push web service docker image | ||
uses: docker/build-push-action@v2 | ||
with: | ||
context: . | ||
file: ./Dockerfile | ||
build-args: | | ||
baseimage=swiftarm/swift:5.5.1-ubuntu-focal | ||
push: true | ||
tags: ghcr.io/fa21-collaborative-drone-interactions/buoy-webservice:latest-arm64,ghcr.io/fa21-collaborative-drone-interactions/buoy-webservice:${{ steps.latesttag.outputs.tag }}-arm64 | ||
- name: Build and push Buoy Post Discovery Action docker image | ||
uses: docker/build-push-action@v2 | ||
with: | ||
platforms: linux/arm64 | ||
- name: Set up docker buildx | ||
uses: docker/setup-buildx-action@v1 | ||
context: ./BuoyPostDiscoveryAction | ||
file: ./BuoyPostDiscoveryAction/Dockerfile | ||
push: true | ||
tags: ghcr.io/fa21-collaborative-drone-interactions/buoy-post-discovery-action:latest-arm64,ghcr.io/fa21-collaborative-drone-interactions/buoy-post-discovery-action:${{ steps.latesttag.outputs.tag }}-arm64 | ||
dockerAMD64: | ||
name: Docker Build and Push AMD64 Images | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
- name: Get latest tag | ||
id: latesttag | ||
uses: WyriHaximus/github-action-get-previous-tag@v1 | ||
with: | ||
install: true | ||
fallback: latest | ||
- name: Log in to the container registry | ||
uses: docker/login-action@v1 | ||
with: | ||
registry: ghcr.io | ||
username: ${{ github.actor }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
- name: Build and push docker image | ||
id: buildandpush | ||
- name: Build and push web service docker image | ||
uses: docker/build-push-action@v2 | ||
with: | ||
context: . | ||
file: ./Dockerfile | ||
build-args: | | ||
baseimage=swift:focal | ||
push: true | ||
tags: ghcr.io/fa21-collaborative-drone-interactions/buoy-webservice:latest-amd64,ghcr.io/fa21-collaborative-drone-interactions/buoy-webservice:${{ steps.latesttag.outputs.tag }}-amd64 | ||
- name: Build and push Buoy Post Discovery Action docker image | ||
uses: docker/build-push-action@v2 | ||
with: | ||
context: ./BuoyPostDiscoveryAction | ||
file: ./BuoyPostDiscoveryAction/Dockerfile | ||
push: true | ||
platforms: linux/arm64 | ||
tags: ghcr.io/fa21-collaborative-drone-interactions/buoy-webservice:latest | ||
- name: Image digest | ||
run: echo ${{ steps.buildandpush.outputs.digest }} | ||
tags: ghcr.io/fa21-collaborative-drone-interactions/buoy-post-discovery-action:latest-amd64,ghcr.io/fa21-collaborative-drone-interactions/buoy-post-discovery-action:${{ steps.latesttag.outputs.tag }}-amd64 | ||
dockermanifest: | ||
needs: [dockerARM64, dockerAMD64] | ||
name: Create Multi-CPU Architecture Image | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
- name: Get latest tag | ||
id: latesttag | ||
uses: WyriHaximus/github-action-get-previous-tag@v1 | ||
with: | ||
fallback: latest | ||
- name: Log in to the container registry | ||
uses: docker/login-action@v1 | ||
with: | ||
registry: ghcr.io | ||
username: ${{ github.actor }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
- name: Create and Push web service Multi Architecture Image | ||
run: | | ||
docker manifest create ghcr.io/fa21-collaborative-drone-interactions/buoy-webservice:latest \ | ||
--amend ghcr.io/fa21-collaborative-drone-interactions/buoy-webservice:latest-amd64 \ | ||
--amend ghcr.io/fa21-collaborative-drone-interactions/buoy-webservice:latest-arm64 | ||
docker manifest create ghcr.io/fa21-collaborative-drone-interactions/buoy-webservice:${{ steps.latesttag.outputs.tag }} \ | ||
--amend ghcr.io/fa21-collaborative-drone-interactions/buoy-webservice:${{ steps.latesttag.outputs.tag }}-amd64 \ | ||
--amend ghcr.io/fa21-collaborative-drone-interactions/buoy-webservice:${{ steps.latesttag.outputs.tag }}-arm64 | ||
docker manifest push ghcr.io/fa21-collaborative-drone-interactions/buoy-webservice:latest | ||
docker manifest push ghcr.io/fa21-collaborative-drone-interactions/buoy-webservice:${{ steps.latesttag.outputs.tag }} | ||
- name: Create and Push Buoy Post Discovery Action Multi Architecture Image | ||
run: | | ||
docker manifest create ghcr.io/fa21-collaborative-drone-interactions/buoy-post-discovery-action:latest \ | ||
--amend ghcr.io/fa21-collaborative-drone-interactions/buoy-post-discovery-action:latest-amd64 \ | ||
--amend ghcr.io/fa21-collaborative-drone-interactions/buoy-post-discovery-action:latest-arm64 | ||
docker manifest create ghcr.io/fa21-collaborative-drone-interactions/buoy-post-discovery-action:${{ steps.latesttag.outputs.tag }} \ | ||
--amend ghcr.io/fa21-collaborative-drone-interactions/buoy-post-discovery-action:${{ steps.latesttag.outputs.tag }}-amd64 \ | ||
--amend ghcr.io/fa21-collaborative-drone-interactions/buoy-post-discovery-action:${{ steps.latesttag.outputs.tag }}-arm64 | ||
docker manifest push ghcr.io/fa21-collaborative-drone-interactions/buoy-post-discovery-action:latest | ||
docker manifest push ghcr.io/fa21-collaborative-drone-interactions/buoy-post-discovery-action:${{ steps.latesttag.outputs.tag }} |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,7 +1,7 @@ | ||
# | ||
# This source file is part of the FA2021 open source project | ||
# This source file is part of the FA 2021 open source project | ||
# | ||
# SPDX-FileCopyrightText: 2019-2021 Paul Schmiedmayer and the project authors (see CONTRIBUTORS.md) <[email protected]> | ||
# SPDX-FileCopyrightText: 2021 Paul Schmiedmayer and the FA 2021 project authors (see CONTRIBUTORS.md) <[email protected]> | ||
# | ||
# SPDX-License-Identifier: MIT | ||
# | ||
|
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 |
---|---|---|
@@ -1,7 +1,7 @@ | ||
# | ||
# This source file is part of the FA2021 open source project | ||
# This source file is part of the FA 2021 open source project | ||
# | ||
# SPDX-FileCopyrightText: 2019-2021 Paul Schmiedmayer and the project authors (see CONTRIBUTORS.md) <[email protected]> | ||
# SPDX-FileCopyrightText: 2021 Paul Schmiedmayer and the FA 2021 project authors (see CONTRIBUTORS.md) <[email protected]> | ||
# | ||
# SPDX-License-Identifier: MIT | ||
# | ||
|
@@ -37,4 +37,4 @@ jobs: | |
assignees: ApodiniBot | ||
committer: ApodiniBot <[email protected]> | ||
author: ApodiniBot <[email protected]> | ||
reviewers: hendesi | ||
reviewers: PSchmiedmayer |
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 |
---|---|---|
@@ -1,7 +1,7 @@ | ||
# | ||
# This source file is part of the FA2021 open source project | ||
# This source file is part of the FA 2021 open source project | ||
# | ||
# SPDX-FileCopyrightText: 2019-2021 Paul Schmiedmayer and the project authors (see CONTRIBUTORS.md) <[email protected]> | ||
# SPDX-FileCopyrightText: 2021 Paul Schmiedmayer and the FA 2021 project authors (see CONTRIBUTORS.md) <[email protected]> | ||
# | ||
# SPDX-License-Identifier: MIT | ||
# | ||
|
File renamed without changes.
File renamed without changes.
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.