forked from epfl-lasa/control-libraries
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: use caching from docker to run test in CI (#169)
- Loading branch information
Showing
20 changed files
with
60 additions
and
200 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,6 +1,5 @@ | ||
name: Build and Test | ||
|
||
# Run workflow on pushes to main and develop branches, on any pull request, or by manual dispatch | ||
on: | ||
push: | ||
branches: | ||
|
@@ -9,15 +8,14 @@ on: | |
pull_request: | ||
workflow_dispatch: | ||
|
||
# Define the build test jobs for each configuration | ||
jobs: | ||
|
||
check-contribution: | ||
name: Check if changelog and version have been updated | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
uses: actions/checkout@v4 | ||
|
||
- name: Check contributions | ||
if: ${{ github.event.pull_request.base.sha }} | ||
|
@@ -39,7 +37,6 @@ jobs: | |
fi | ||
shell: bash | ||
|
||
# check if jobs can be skipped | ||
check-skippable-changes: | ||
name: Check skippable changes | ||
runs-on: ubuntu-latest | ||
|
@@ -54,62 +51,30 @@ jobs: | |
paths_ignore: '["**.md", ".**/**", "**.gitignore"]' | ||
skip_after_successful_duplicate: 'true' | ||
|
||
build-test-debug: | ||
build-test: | ||
needs: check-skippable-changes | ||
if: ${{ needs.check-skippable-changes.outputs.skip != 'true' }} | ||
runs-on: ubuntu-latest | ||
name: Debug configuration test | ||
name: Run tests | ||
steps: | ||
# First check out the repository | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
# Load the repository build-test action | ||
- name: Build and Test | ||
uses: ./.github/actions/build-test | ||
uses: actions/checkout@v4 | ||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v3 | ||
- name: Build Cache for Docker | ||
uses: actions/cache@v3 | ||
with: | ||
configuration: Debug | ||
|
||
build-test-release: | ||
needs: check-skippable-changes | ||
if: ${{ needs.check-skippable-changes.outputs.skip != 'true' }} | ||
runs-on: ubuntu-latest | ||
name: Release configuration test | ||
steps: | ||
# First check out the repository | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
# Load the repository build-test action | ||
path: build-cache | ||
key: ${{ runner.os }}-build-cache-${{ hashFiles('./') }} | ||
- name: Inject build-cache into docker | ||
uses: reproducible-containers/[email protected] | ||
with: | ||
cache-source: build-cache | ||
cache-target: /build | ||
- name: Build and Test | ||
uses: ./.github/actions/build-test | ||
uses: docker/build-push-action@v5 | ||
with: | ||
configuration: Release | ||
|
||
build-test-python: | ||
needs: | ||
- check-skippable-changes | ||
- build-test-release | ||
if: ${{ needs.check-skippable-changes.outputs.skip != 'true' }} | ||
runs-on: ubuntu-latest | ||
name: Python bindings test | ||
steps: | ||
# First check out the repository | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
# Load the repository build-test-python action | ||
- name: Build and Test Python | ||
uses: ./.github/actions/build-test-python | ||
|
||
build-test-protocol: | ||
needs: | ||
- check-skippable-changes | ||
- build-test-release | ||
if: ${{ needs.check-skippable-changes.outputs.skip != 'true' }} | ||
runs-on: ubuntu-latest | ||
name: Protocol library test | ||
steps: | ||
# First check out the repository | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
# Load the repository build-test-python action | ||
- name: Build and Test Protocol | ||
uses: ./.github/actions/build-test-protocol | ||
context: . | ||
target: python-test | ||
cache-from: type=gha | ||
cache-to: type=gha,mode=max |
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 +1 @@ | ||
7.3.7 | ||
7.3.8 |
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.