Skip to content

Commit

Permalink
collect final submission bundle
Browse files Browse the repository at this point in the history
  • Loading branch information
reneme committed Oct 11, 2023
1 parent 6fea949 commit 14a94a1
Showing 1 changed file with 89 additions and 7 deletions.
96 changes: 89 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ jobs:
- name: Upload artifacts
uses: actions/upload-artifact@v3
with:
name: Botan ${{ env.BOTAN_VERSION }} ${{ matrix.element.name }}
name: ${{ matrix.element.out_name }}
path: ${{ matrix.element.dir }}/_build/latex/${{ matrix.element.out_name }}-*.pdf

url_check:
Expand Down Expand Up @@ -161,7 +161,7 @@ jobs:
- name: Upload Artifacts
uses: actions/upload-artifact@v3
with:
name: Botan ${{ env.BOTAN_VERSION }} Audit Report
name: audit_report
path: source/docs/audit_report/_build/latex/*.pdf

utility:
Expand All @@ -173,14 +173,14 @@ jobs:
include:
- jobname: Documentation
target: pdf_docs
artifact_name: Upstream Documentation
artifact_name: documentation
artifacts: |
build/build/docs/handbook/botan.pdf
build/build/docs/doxygen.zip
host_os: ubuntu-latest
- jobname: Coverage Report
target: coverage
artifact_name: Coverage Report
artifact_name: coverage
artifacts: build/coverage.zip
host_os: ubuntu-latest

Expand Down Expand Up @@ -228,7 +228,7 @@ jobs:
- name: Archive Artifacts
uses: actions/upload-artifact@v3
with:
name: Botan ${{ env.BOTAN_VERSION }} ${{ matrix.artifact_name }}
name: ${{ matrix.artifact_name }}
path: ${{ matrix.artifacts }}
if: ${{ matrix.artifacts != '' }}

Expand Down Expand Up @@ -336,7 +336,7 @@ jobs:
- name: Store Test Report
uses: actions/upload-artifact@v3
with:
name: Botan ${{ env.BOTAN_VERSION }} Test Report
name: testreport
path: docs/testreport/_build/latex/testreport-*.pdf
if-no-files-found: error

Expand Down Expand Up @@ -373,5 +373,87 @@ jobs:
- name: Archive Artifacts
uses: actions/upload-artifact@v3
with:
name: Botan ${{ env.BOTAN_VERSION }} Source Archive
name: source
path: build/*.zip


collect_artifacts:
name: "Collect Submission Artifacts"
runs-on: ubuntu-latest
steps:
- name: Fetch Audit Repository
uses: actions/checkout@v3
with:
path: ./source

- name: Setup Environment Configuration
uses: ./source/.github/actions/setup-environment
with:
env_file: ./source/config/botan.env

- name: Fetch Botan Documentation
uses: actions/download-artifact@v3
with:
name: documentation
path: staging/botandocs

- name: Split API Documentation and Handbook
run: |
mkdir -p 'final/API Documentation'
mkdir -p 'final/Handbuch'
cp staging/botandocs/*.zip 'final/API Documentation'
cp staging/botandocs/*.pdf 'final/Handbuch'
- name: Fetch Architecture
uses: actions/download-artifact@v3
with:
name: architecture
path: final/Architecture

- name: Fetch Audit Method
uses: actions/download-artifact@v3
with:
name: audit_method
path: final/Audit

- name: Fetch Audit Report
uses: actions/download-artifact@v3
with:
name: audit_report
path: final/Audit

- name: Fetch Coverage Report
uses: actions/download-artifact@v3
with:
name: coverage
path: final/Coverage Report

- name: Fetch Cryptographic Documentation
uses: actions/download-artifact@v3
with:
name: cryptodoc
path: final/Kryptodoc

- name: Fetch Source Code
uses: actions/download-artifact@v3
with:
name: source
path: final/Source Code

- name: Fetch Test Report
uses: actions/download-artifact@v3
with:
name: testreport
path: final/Source Code

- name: Fetch Testspezifikation
uses: actions/download-artifact@v3
with:
name: testspec
path: final/Testspezifikation

- name: Upload Bundled Submission Documents
uses: actions/upload-artifact@v3
with:
name: Submission Bundle for Botan {{ $env.BOTAN_VERSION }}
path: final/*

0 comments on commit 14a94a1

Please sign in to comment.