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 1fc9af5
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 20 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
53 changes: 36 additions & 17 deletions .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 @@ -35,10 +35,14 @@ on:
description: 'Platform to build for'
required: false
default: 'w64-mingw32'
crt:
description: 'C runtime to build for'
gcc_module:
description: 'GCC module to test'
required: false
default: 'msvcrt'
default: ''
gcc_test_filter:
description: 'GCC test filter'
required: false
default: ''
workflow_call:
inputs:
binutils_branch_baseline:
Expand All @@ -57,7 +61,9 @@ on:
type: string
platform:
type: string
crt:
gcc_module:
type: string
gcc_test_filter:
type: string

env:
Expand All @@ -73,25 +79,29 @@ jobs:
name: Build and test baseline
uses: ./.github/workflows/build-and-test-toolchain.yml
with:
binutils_branch: ${{ inputs.binutils_branch_baseline }}
gcc_branch: ${{ inputs.gcc_branch_baseline || 'aarch64-patch-stage1-v11-upstream' }}
mingw_branch: ${{ inputs.mingw_branch_baseline }}
arch: ${{ inputs.arch }}
platform: ${{ inputs.platform }}
crt: ${{ inputs.crt }}
binutils_branch: ${{ inputs.binutils_branch_baseline || 'upstream' }}
gcc_branch: ${{ inputs.gcc_branch_baseline || 'upstream' }}
mingw_branch: ${{ inputs.mingw_branch_baseline || 'upstream' }}
arch: ${{ inputs.arch || 'x86_64' }}
platform: ${{ inputs.platform || 'w64-mingw32' }}
crt: msvcrt
tag: baseline
gcc_module: ${{ inputs.gcc_module || '' }}
gcc_test_filter: ${{ inputs.gcc_test_filter || '' }}

build-and-test-changes:
name: Build and test changes
uses: ./.github/workflows/build-and-test-toolchain.yml
with:
binutils_branch: ${{ inputs.binutils_branch_changes }}
gcc_branch: ${{ inputs.gcc_branch_changes || 'aarch64-patch-stage1-v11' }}
mingw_branch: ${{ inputs.mingw_branch_changes }}
arch: ${{ inputs.arch }}
platform: ${{ inputs.platform }}
crt: ${{ inputs.crt }}
binutils_branch: ${{ inputs.binutils_branch_changes || 'woarm64' }}
gcc_branch: ${{ inputs.gcc_branch_changes || 'woarm64' }}
mingw_branch: ${{ inputs.mingw_branch_changes || 'woarm64' }}
arch: ${{ inputs.arch || 'x86_64' }}
platform: ${{ inputs.platform || 'w64-mingw32' }}
crt: msvcrt
tag: changes
gcc_module: ${{ inputs.gcc_module || '' }}
gcc_test_filter: ${{ inputs.gcc_test_filter || '' }}

compare-test-results:
name: Compare test results
Expand Down Expand Up @@ -128,6 +138,15 @@ jobs:
run: |
.github/scripts/toolchain/compare-gcc-results.sh baseline changes
- name: Create summary
run: |
source .github/scripts/config.sh
RESULTS_PATH=$ARTIFACT_PATH/gcc-tests-results
for FILE in $RESULTS_PATH/*.diff; do
echo "FILE: $FILE" >> $GITHUB_STEP_SUMMARY
cat >> $GITHUB_STEP_SUMMARY
done
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
Expand Down

0 comments on commit 1fc9af5

Please sign in to comment.