mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2024-12-26 19:19:32 +03:00
480d809703
Set the retention-days variable to 14 days for these artifacts: - the zloop error logs - the zloop vdev files - the compiled modules Add the abality to re-run some part of the functional testings. Fix some comments and remove the deleting of the modules artifact. Reviewed-by: George Melikov <mail@gmelikov.ru> Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Tino Reichardt <milky-zfs@mcmilk.de> Closes #14637
65 lines
1.7 KiB
YAML
65 lines
1.7 KiB
YAML
name: zfs-linux
|
|
|
|
on:
|
|
push:
|
|
pull_request:
|
|
|
|
jobs:
|
|
|
|
build:
|
|
name: Build
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
os: [20.04, 22.04]
|
|
runs-on: ubuntu-${{ matrix.os }}
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
with:
|
|
ref: ${{ github.event.pull_request.head.sha }}
|
|
- name: Build modules
|
|
run: .github/workflows/scripts/setup-dependencies.sh build
|
|
- name: Prepare modules upload
|
|
run: tar czf modules-${{ matrix.os }}.tgz *.deb .github tests/test-runner tests/ImageOS.txt
|
|
- uses: actions/upload-artifact@v3
|
|
with:
|
|
name: modules-${{ matrix.os }}
|
|
path: modules-${{ matrix.os }}.tgz
|
|
retention-days: 14
|
|
|
|
testings:
|
|
name: Testing
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
os: [20.04, 22.04]
|
|
needs: build
|
|
uses: ./.github/workflows/zfs-linux-tests.yml
|
|
with:
|
|
os: ${{ matrix.os }}
|
|
|
|
cleanup:
|
|
if: always()
|
|
name: Cleanup
|
|
runs-on: ubuntu-22.04
|
|
needs: testings
|
|
steps:
|
|
- uses: actions/download-artifact@v3
|
|
- name: Generating summary
|
|
run: |
|
|
tar xzf modules-22.04/modules-22.04.tgz .github tests
|
|
.github/workflows/scripts/generate-summary.sh
|
|
# up to 4 steps, each can have 1 MiB output (for debugging log files)
|
|
- name: Summary for errors #1
|
|
run: .github/workflows/scripts/generate-summary.sh 1
|
|
- name: Summary for errors #2
|
|
run: .github/workflows/scripts/generate-summary.sh 2
|
|
- name: Summary for errors #3
|
|
run: .github/workflows/scripts/generate-summary.sh 3
|
|
- name: Summary for errors #4
|
|
run: .github/workflows/scripts/generate-summary.sh 4
|
|
- uses: actions/upload-artifact@v3
|
|
with:
|
|
name: Summary Files
|
|
path: Summary/
|