mirror of
https://github.com/kernelkit/infix.git
synced 2026-07-30 04:33:00 +02:00
70 lines
1.9 KiB
YAML
70 lines
1.9 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: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
with:
|
|
submodules: 'true'
|
|
- name: Set Build Variables
|
|
id: vars
|
|
run: |
|
|
target=x86_64-minimal
|
|
echo "dir=infix-$target" >> $GITHUB_OUTPUT
|
|
echo "tgz=infix-$target.tar.gz" >> $GITHUB_OUTPUT
|
|
- name: Restore Cache of dl/
|
|
uses: actions/cache@v3
|
|
with:
|
|
path: dl/
|
|
key: dl-x86_64-netconf-${{ hashFiles('.git/modules/buildroot/refs/heads/master', 'package/*/*.hash') }}
|
|
restore-keys: |
|
|
dl-x86_64-netconf-
|
|
dl-x86_64-
|
|
dl-
|
|
- name: Restore Cache of .ccache/
|
|
uses: actions/cache@v3
|
|
with:
|
|
path: .ccache/
|
|
key: ccache-x86_64-netconf-${{ hashFiles('.git/modules/buildroot/refs/head/master', 'package/*/*.hash') }}
|
|
restore-keys: |
|
|
ccache-x86_64-netconf-
|
|
ccache-x86_64-
|
|
ccache-
|
|
- name: Configure Minimal NETCONF
|
|
run: |
|
|
make x86_64_minimal_defconfig
|
|
- 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@v3
|
|
with:
|
|
path: output/${{ steps.vars.outputs.tgz }}
|
|
- name: Regression Test
|
|
run: |
|
|
rc=true
|
|
make test-qeneth || rc=false
|
|
cat test/.log/last/result.md >> $GITHUB_STEP_SUMMARY
|
|
eval $rc
|