mirror of
https://github.com/kernelkit/infix.git
synced 2026-07-27 11:13:02 +02:00
Error: error creating container storage: the container name "infamy0" is already in use by "2011c2d7cb1737b788b854a8bd08e519f3cbd6e36dae4975784978cff1f238fc". You have to remove that container to be able to reuse that name.: that name is already in use make[1]: *** [/home/github-runner/actions-runner/_work/infix/infix/test/test.mk:6: test-unit] Error 125 Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
78 lines
2.1 KiB
YAML
78 lines
2.1 KiB
YAML
name: Reggie Regression
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- '*'
|
|
pull_request:
|
|
branches:
|
|
- '*'
|
|
workflow_dispatch:
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
build:
|
|
name: Regression Testing
|
|
runs-on: self-hosted
|
|
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
with:
|
|
submodules: 'true'
|
|
- name: Clean up cruft ...
|
|
run: |
|
|
./test/env -c
|
|
- name: Set Build Variables
|
|
id: vars
|
|
run: |
|
|
target=x86_64
|
|
echo "dir=infix-$target" >> $GITHUB_OUTPUT
|
|
echo "tgz=infix-$target.tar.gz" >> $GITHUB_OUTPUT
|
|
- name: Restore Cache of dl/
|
|
uses: actions/cache@v4
|
|
with:
|
|
path: dl/
|
|
key: dl-netconf-${{ hashFiles('.git/modules/buildroot/refs/heads/master', 'package/*/*.hash') }}
|
|
restore-keys: |
|
|
dl-netconf-
|
|
dl-
|
|
- name: Restore Cache of .ccache/
|
|
uses: actions/cache@v4
|
|
with:
|
|
path: .ccache/
|
|
key: ccache-x86_64-${{ hashFiles('.git/modules/buildroot/refs/head/master', 'package/*/*.hash') }}
|
|
restore-keys: |
|
|
ccache-x86_64-
|
|
ccache-
|
|
- name: Configure NETCONF
|
|
run: |
|
|
make x86_64_defconfig
|
|
|
|
- name: Unit Test
|
|
run: make test-unit
|
|
|
|
- name: Build
|
|
run: |
|
|
make
|
|
- name: Prepare Artifact
|
|
run: |
|
|
cd output
|
|
mv images ${{ steps.vars.outputs.dir }}
|
|
ln -s ${{ steps.vars.outputs.dir }} images
|
|
tar cfz ${{ steps.vars.outputs.tgz }} ${{ steps.vars.outputs.dir }}
|
|
- name: Upload Artifact
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
path: output/${{ steps.vars.outputs.tgz }}
|
|
|
|
- name: Regression Test
|
|
run: make test-qeneth
|
|
|
|
- name: Publish Test Result
|
|
# Ensure this runs even if Regression Test fails
|
|
if: always()
|
|
run: cat test/.log/last/result-gh.md >> $GITHUB_STEP_SUMMARY
|