Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move CI from old Ubuntu images to Debian #114

Merged
merged 3 commits into from
Aug 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 18 additions & 14 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,14 @@ env:
CCACHE_DIR: ${{ github.workspace }}/.ccache
jobs:
coverage:
name: Coverage on Ubuntu Bionic
name: Build and Test on Debian Bullseye
runs-on: ubuntu-latest
env:
DOCKER_TAG: docker.pkg.github.com/uptane/aktualizr/aktualizr-ci:bionic-master
DOCKERFILE: docker/Dockerfile.ubuntu.bionic
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
DOCKER_TAG: docker.pkg.github.com/uptane/aktualizr/aktualizr-ci:bullseye-master
DOCKERFILE: docker/Dockerfile.debian.bullseye
DARGS: >-
-eCCACHE_DIR
-eCODECOV_TOKEN
-eTEST_CMAKE_BUILD_TYPE=Valgrind
-eTEST_WITH_COVERAGE=1
-eTEST_WITH_P11=1
-eTEST_WITH_FAULT_INJECTION=1
-eTEST_TESTSUITE_EXCLUDE=credentials
Expand All @@ -35,26 +32,33 @@ jobs:
run: |
docker pull "$DOCKER_TAG" || true
docker build --cache-from "$DOCKER_TAG" --pull -t "$DOCKER_TAG" -f "$DOCKERFILE" .
- uses: actions/cache@v1.1.0
- uses: actions/cache@v4
with:
path: ${{ github.workspace }}/.ccache
key: ubuntu-bionic-${{ github.run_id }}
path: ${{ github.workspace }}/cache
key: debian-bullseye-${{ github.run_id }}
restore-keys: |
ubuntu-bionic-${{ github.run_id }}
ubuntu-bionic-
debian-bullseye-${{ github.run_id }}
debian-bullseye-
- name: Unpack ccache
run: docker run --mount=type=volume,source=ccache,destination=/home/testuser/.cache -i "$DOCKER_TAG" tar -xf- < ${{github.workspace}}/cache/cache.tar || echo "No cache found"
- name: Test
run: docker run -v "$PWD:$PWD" -w "$PWD" $DARGS -t "$DOCKER_TAG" ./scripts/test.sh
run: |
docker run --mount=type=volume,source=ccache,destination=/home/testuser/.cache -t "$DOCKER_TAG" source/scripts/build-and-test.sh
- name: Stash ccache
run: |
mkdir -p ${{github.workspace}}/cache
docker run --mount=type=volume,source=ccache,destination=/home/testuser/.cache -i "$DOCKER_TAG" tar -cf- .cache > ${{github.workspace}}/cache/cache.tar

nop11:
name: Tests without p11 support on Ubuntu Bionic
name: Tests with PKCS#11 support on Ubuntu Bionic
runs-on: ubuntu-latest
env:
DOCKER_TAG: docker.pkg.github.com/uptane/aktualizr/aktualizr-ci:bionic-master
DOCKERFILE: docker/Dockerfile.ubuntu.bionic
DARGS: >-
-eCCACHE_DIR
-eTEST_CMAKE_BUILD_TYPE=Debug
-eTEST_WITH_P11=0
-eTEST_WITH_P11=1
-eTEST_WITH_TESTSUITE=0
steps:
- uses: actions/checkout@main
Expand Down
Loading
Loading