-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #62 from xmos/release/v2.0.0
Release/v2.0.0
- Loading branch information
Showing
15 changed files
with
169 additions
and
39 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
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 @@ | ||
# This workflow uses actions that are not certified by GitHub. | ||
# They are provided by a third-party and are governed by | ||
# separate terms of service, privacy policy, and support | ||
# documentation. | ||
|
||
name: Create and publish a Docker image | ||
|
||
on: | ||
push: | ||
branches: | ||
- 'develop' | ||
tags: | ||
- 'v*' | ||
pull_request: | ||
branches: | ||
- 'develop' | ||
|
||
# Allow manually triggering the workflow. | ||
workflow_dispatch: {} | ||
|
||
|
||
env: | ||
REGISTRY: ghcr.io | ||
IMAGE_NAME: xmos/fwk_io_tester | ||
|
||
jobs: | ||
|
||
changes: | ||
runs-on: ubuntu-latest | ||
name: Change detection | ||
# Set job outputs to values from filter step | ||
outputs: | ||
dockerfile: ${{ steps.filter.outputs.dockerfile }} | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- name: Paths filter | ||
uses: dorny/paths-filter@v2 | ||
id: filter | ||
with: | ||
filters: | | ||
dockerfile: | ||
- 'tools/docker/**' | ||
build-and-push-image: | ||
needs: changes | ||
name: Build and push Docker image | ||
if: ${{ needs.changes.outputs.dockerfile == 'true' }} | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: read | ||
packages: write | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
with: | ||
submodules: recursive | ||
|
||
- name: Log in to the Container registry | ||
uses: docker/login-action@v2 | ||
with: | ||
registry: ${{ env.REGISTRY }} | ||
username: ${{ github.actor }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Extract metadata (tags, labels) for Docker | ||
id: meta | ||
uses: docker/metadata-action@v4 | ||
with: | ||
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} | ||
tags: | | ||
# vX.Y.Z vX.Y vX (on push tag) | ||
type=semver,pattern=v{{version}} | ||
type=semver,pattern=v{{major}}.{{minor}} | ||
type=semver,pattern=v{{major}} | ||
# main/feature/etc | ||
type=ref,event=branch | ||
# pr-N | ||
type=ref,event=pr | ||
# sha-XXXXXXX | ||
type=sha | ||
- name: Build and push Docker image | ||
uses: docker/build-push-action@v4 | ||
with: | ||
context: . | ||
push: true | ||
file: 'tools/docker/Dockerfile.tests' | ||
tags: ${{ steps.meta.outputs.tags }} | ||
labels: ${{ steps.meta.outputs.labels }} |
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 |
---|---|---|
@@ -1,6 +1,11 @@ | ||
IO Framework change log | ||
======================= | ||
|
||
2.0.0 | ||
----- | ||
|
||
* CHANGE: Updated lib_xud to v2.2.2 | ||
|
||
1.0.0 | ||
----- | ||
|
||
|
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
{ | ||
"title": "XCORE Peripheral IO Framework", | ||
"project": "fwk_io", | ||
"version": "1.0.0" | ||
"version": "2.0.0" | ||
} |
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,16 @@ | ||
FROM ghcr.io/xmos/xcore_builder:latest | ||
|
||
# This Dockerfile is for use by the XMOS fwk_io CI system | ||
# It provides a minimal environment needed to build applications and run tests | ||
|
||
# install dependencies | ||
# RUN apt-get update && apt-get install -y \ | ||
# && apt-get clean autoclean | ||
|
||
WORKDIR /test | ||
ADD test/requirements.txt /test | ||
ADD test/modules/test_support /test/modules/test_support | ||
RUN pip3 install -r requirements.txt | ||
|
||
# set login shell | ||
SHELL ["/bin/bash", "-l", "-c"] |
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,16 @@ | ||
# Tests Dockerfile | ||
|
||
This dockerfile is used to build an image for testing. It build on top of the (private) base [xcore_builder](https://github.com/xmos/xcore_builder) image. Access to the private base image repository is not required to build this image. | ||
|
||
## Build Image | ||
|
||
To build the docker container locally, run the following command in the root of the repository: | ||
|
||
docker build -t ghcr.io/xmos/fwk_io_tester:develop -f tools/docker/Dockerfile.tests . | ||
|
||
## Run Container | ||
|
||
To run the container: | ||
|
||
docker run -it ghcr.io/xmos/fwk_io_tester:develop bash | ||
|