Skip to content

Commit

Permalink
re-generate workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
ilg-ul committed Sep 13, 2024
1 parent 06b2910 commit e73d6d7
Showing 1 changed file with 1 addition and 69 deletions.
70 changes: 1 addition & 69 deletions .github/workflows/test-prime.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,12 +75,6 @@ jobs:
- name: 'Run ${{github.event.inputs.version}} native test'
run: bash build-assets/scripts/test.sh --image github-actions-ubuntu-latest --version ${{github.event.inputs.version}} --base-url ${{github.event.inputs.base_url}}

- name: Upload platform tests report
uses: actions/upload-artifact@v4
with:
name: tests-report-linux-x64
path: ${{github.workspace}}/build-assets/build/linux-x64/artefacts/tests-report-*.md
overwrite: true

linux-arm64-test:
name: 'linux-arm64 cmake ${{github.event.inputs.version}} test'
Expand Down Expand Up @@ -121,12 +115,6 @@ jobs:
entrypoint: /bin/bash
args: /github/workspace/build-assets/scripts/test.sh --image ubuntu:22.04 --version ${{github.event.inputs.version}} --base-url ${{github.event.inputs.base_url}}

- name: Upload platform tests report
uses: actions/upload-artifact@v4
with:
name: tests-report-linux-arm64
path: ${{github.workspace}}/build-assets/build/linux-arm64/artefacts/tests-report-*.md
overwrite: true

linux-arm-test:
name: 'linux-arm cmake ${{github.event.inputs.version}} test'
Expand Down Expand Up @@ -167,12 +155,6 @@ jobs:
entrypoint: /bin/bash # /usr/bin/linux32
args: /github/workspace/build-assets/scripts/test.sh --image debian --version ${{github.event.inputs.version}} --base-url ${{github.event.inputs.base_url}}

- name: Upload platform tests report
uses: actions/upload-artifact@v4
with:
name: tests-report-linux-arm
path: ${{github.workspace}}/build-assets/build/linux-arm/artefacts/tests-report-*.md
overwrite: true

darwin-x64-test:
name: 'darwin-x64 cmake ${{github.event.inputs.version}} test'
Expand Down Expand Up @@ -218,12 +200,6 @@ jobs:
- name: 'Run ${{github.event.inputs.version}} native test'
run: bash build-assets/scripts/test.sh --version ${{github.event.inputs.version}} --base-url ${{github.event.inputs.base_url}}

- name: Upload platform tests report
uses: actions/upload-artifact@v4
with:
name: tests-report-darwin-x64
path: ${{github.workspace}}/build-assets/build/darwin-x64/artefacts/tests-report-*.md
overwrite: true

darwin-arm64-test:
name: 'darwin-arm64 cmake ${{github.event.inputs.version}} test'
Expand Down Expand Up @@ -269,12 +245,6 @@ jobs:
- name: 'Run ${{github.event.inputs.version}} native test'
run: bash build-assets/scripts/test.sh --version ${{github.event.inputs.version}} --base-url ${{github.event.inputs.base_url}}

- name: Upload platform tests report
uses: actions/upload-artifact@v4
with:
name: tests-report-darwin-arm64
path: ${{github.workspace}}/build-assets/build/darwin-arm64/artefacts/tests-report-*.md
overwrite: true

win32-x64-test:
name: 'win32-x64 cmake ${{github.event.inputs.version}} test'
Expand Down Expand Up @@ -311,12 +281,7 @@ jobs:
- name: 'Run ${{github.event.inputs.version}} native test'
run: bash build-assets/scripts/test.sh --version ${{github.event.inputs.version}} --base-url ${{github.event.inputs.base_url}}

- name: Upload platform tests report
uses: actions/upload-artifact@v4
with:
name: tests-report-win32-x64
path: ${{github.workspace}}/build-assets/build/win32-x64/artefacts/tests-report-*.md
overwrite: true


# One more run with the oldest Windows available.
win32-x64-test2:
Expand Down Expand Up @@ -354,37 +319,4 @@ jobs:
- name: 'Run ${{github.event.inputs.version}} native test'
run: bash build-assets/scripts/test.sh --version ${{github.event.inputs.version}} --base-url ${{github.event.inputs.base_url}}

generate-tests-report:
name: 'Generate tests report for CMake@${{github.event.inputs.version}}'
runs-on: ubuntu-22.04
needs: [linux-x64-test, linux-arm64-test, linux-arm-test, darwin-x64-test, darwin-arm64-test, win32-x64-test]

steps:
- name: Download platform test reports
uses: actions/download-artifact@v4
with:
path: ${{github.workspace}}/build-assets/artefacts
merge-multiple: true

- name: Concatenate platform test reports
run: |
ls -lR ${{github.workspace}}/build-assets/artefacts
touch ${{github.workspace}}/build-assets/artefacts/tests-report.md
echo "---" >>${{github.workspace}}/build-assets/artefacts/tests-report.md
echo "title: CMake ${{github.event.inputs.version}} test results" >>${{github.workspace}}/build-assets/artefacts/tests-report.md
echo >>${{github.workspace}}/build-assets/artefacts/tests-report.md
echo "date: $(date "+%Y-%m-%d %H:%M:%S %z")" >>${{github.workspace}}/build-assets/artefacts/tests-report.md
echo >>${{github.workspace}}/build-assets/artefacts/tests-report.md
echo "---" >>${{github.workspace}}/build-assets/artefacts/tests-report.md
echo >>${{github.workspace}}/build-assets/artefacts/tests-report.md
(cd ${{github.workspace}}; cat -s build-assets/artefacts/tests-report-linux-x64.md build-assets/artefacts/tests-report-linux-arm64.md build-assets/artefacts/tests-report-linux-arm.md build-assets/artefacts/tests-report-darwin-x64.md build-assets/artefacts/tests-report-darwin-arm64.md build-assets/artefacts/tests-report-win32-x64.md | tee -a build-assets/artefacts/tests-report.md)
mv -v ${{github.workspace}}/build-assets/artefacts/tests-report.md ${{github.workspace}}/build-assets/artefacts/${{github.event.inputs.version}}.md
- name: Upload tests report
uses: actions/upload-artifact@v4
with:
name: tests-report
path: ${{github.workspace}}/build-assets/artefacts/${{github.event.inputs.version}}.md
overwrite: true

# -----------------------------------------------------------------------------

0 comments on commit e73d6d7

Please sign in to comment.