File tree 2 files changed +8
-20
lines changed 2 files changed +8
-20
lines changed Original file line number Diff line number Diff line change @@ -71,30 +71,18 @@ jobs:
71
71
java-version : 17
72
72
- name : Build with Gradle
73
73
run : ./gradlew
74
- - name : Copy test logs (Unix)
74
+ - name : Copy test logs
75
75
id : copy_test_logs
76
- if : failure() && runner.os != 'Windows'
76
+ if : failure()
77
77
run : |
78
- echo "file=build/distributions/test_logs.tbz2" >> $GITHUB_OUTPUT
78
+ ${{ runner.os == 'Windows' && ' echo "file=build/distributions/test_logs.tbz2" | Out-File -FilePath $env:GITHUB_OUTPUT -Encoding utf8 -Append' || 'echo "file=build/distributions/test_logs.tbz2" >> $GITHUB_OUTPUT' }}
79
79
./gradlew tarTestLogs
80
- - name : Upload crash logs (Unix)
80
+ - name : Upload crash logs
81
81
if : always() && steps.copy_test_logs.outputs.file == 'build/distributions/test_logs.tbz2'
82
82
uses : actions/upload-artifact@v4
83
83
with :
84
84
name : crash-logs-${{ matrix.os }}-java-${{ matrix.java }}
85
85
path : ${{ steps.copy_test_logs.outputs.file }}
86
- - name : Copy test logs (Windows)
87
- id : copy_test_logs_windows
88
- if : runner.os == 'Windows' && failure()
89
- run : |
90
- echo "file=build/distributions/test_logs.tbz2" | Out-File $env:GITHUB_OUTPUT -Encoding utf8 -Append
91
- ./gradlew tarTestLogs
92
- - name : Upload crash logs (Windows)
93
- if : runner.os == 'Windows' && always() && steps.copy_test_logs_windows.outputs.file == 'build/distributions/test_logs.tbz2'
94
- uses : actions/upload-artifact@v4
95
- with :
96
- name : crash-logs-${{ matrix.os }}-java-${{ matrix.java }}
97
- path : ${{ steps.copy_test_logs_windows.outputs.file }}
98
86
99
87
csharp-build :
100
88
name : C# ${{ matrix.dotnet }}
Original file line number Diff line number Diff line change @@ -55,17 +55,17 @@ jobs:
55
55
run : ./csharp/build.sh
56
56
- name : Run property tests
57
57
run : ./gradlew propertyTest
58
- - name : Copy test logs (Unix)
58
+ - name : Copy test logs
59
59
id : copy_test_logs
60
60
if : failure()
61
61
run : |
62
- echo "file=build/distributions/test_logs.tbz2" >> $GITHUB_OUTPUT
62
+ ${{ runner.os == 'Windows' && ' echo "file=build/distributions/test_logs.tbz2" | Out-File -FilePath $env:GITHUB_OUTPUT -Encoding utf8 -Append' || 'echo "file=build/distributions/test_logs.tbz2" >> $GITHUB_OUTPUT' }}
63
63
./gradlew tarTestLogs
64
- - name : Upload crash logs (Unix)
64
+ - name : Upload crash logs
65
65
if : always() && steps.copy_test_logs.outputs.file == 'build/distributions/test_logs.tbz2'
66
66
uses : actions/upload-artifact@v4
67
67
with :
68
- name : crash-logs-${{ matrix.os }}-property-tests
68
+ name : crash-logs-${{ matrix.os }}-property-tests-java-${{matrix.java}}-dotnet-${{matrix.dotnet}}
69
69
path : ${{ steps.copy_test_logs.outputs.file }}
70
70
- name : Upload test results
71
71
uses : actions/upload-artifact@v4
You can’t perform that action at this time.
0 commit comments