Skip to content

Commit

Permalink
Create summary for test results comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
Blackhex committed Aug 8, 2024
1 parent 7a98730 commit 5ef9629
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 4 deletions.
1 change: 0 additions & 1 deletion .github/workflows/advanced.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ on:
push:
branches:
- main
pull_request:
workflow_dispatch:
inputs:
binutils_branch:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build-and-test-toolchain.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Build toolchain
name: Build and test toolchain

on:
workflow_dispatch:
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ on:
push:
branches:
- main
pull_request:
workflow_dispatch:
inputs:
binutils_branch:
Expand Down
24 changes: 23 additions & 1 deletion .github/workflows/test-toolchain.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Test toolchain
name: Test toolchain against baseline

on:
workflow_dispatch:
Expand Down Expand Up @@ -39,6 +39,14 @@ on:
description: 'C runtime to build for'
required: false
default: 'msvcrt'
gcc_module:
description: 'GCC module to test'
required: false
default: ''
gcc_test_filter:
description: 'GCC test filter'
required: false
default: ''
workflow_call:
inputs:
binutils_branch_baseline:
Expand All @@ -59,6 +67,10 @@ on:
type: string
crt:
type: string
gcc_module:
type: string
gcc_test_filter:
type: string

env:
GCC_REPO: Windows-on-ARM-Experiments/gcc-woarm64
Expand All @@ -80,6 +92,8 @@ jobs:
platform: ${{ inputs.platform }}
crt: ${{ inputs.crt }}
tag: baseline
gcc_module: ${{ inputs.gcc_module }}
gcc_test_filter: ${{ inputs.gcc_module }}

build-and-test-changes:
name: Build and test changes
Expand All @@ -92,6 +106,8 @@ jobs:
platform: ${{ inputs.platform }}
crt: ${{ inputs.crt }}
tag: changes
gcc_module: ${{ inputs.gcc_module }}
gcc_test_filter: ${{ inputs.gcc_module }}

compare-test-results:
name: Compare test results
Expand Down Expand Up @@ -128,6 +144,12 @@ jobs:
run: |
.github/scripts/toolchain/compare-gcc-results.sh baseline changes
- name: Create summary
run: |
.github/scripts/toolchain/create-gcc-summary.sh baseline changes >> \
${{ env.ARTIFACT_PATH }}/gcc-tests-results/summary.txt
cat >> $GITHUB_STEP_SUMMARY
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
Expand Down

0 comments on commit 5ef9629

Please sign in to comment.