Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/pardeike/Harmony
Browse files Browse the repository at this point in the history
  • Loading branch information
pardeike committed Feb 19, 2024
2 parents ca21a76 + 32e3f7b commit 2457353
Show file tree
Hide file tree
Showing 10 changed files with 26 additions and 32 deletions.
18 changes: 16 additions & 2 deletions .github/actions/test-execute-test/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,14 +82,28 @@ runs:
}
shell: pwsh

- name: Perform Tests Windows .NET | Ubuntu/MacOS/MacOS-arm64 .NET/Mono
if: ${{(inputs.os == 'windows' && inputs.runtime-type == 'dotnet') || inputs.os == 'ubuntu' || inputs.os == 'macos' || inputs.os == 'macos-arm64'}}
- name: Perform Tests Windows .NET | Ubuntu .NET/Mono
if: ${{(inputs.os == 'windows' && inputs.runtime-type == 'dotnet') || inputs.os == 'ubuntu'}}
run: |
foreach ($target_framework in ConvertFrom-Json "${{steps.test-args.outputs.target_frameworks}}") {
dotnet test "HarmonyTests/bin/Release/$target_framework/HarmonyTests.dll" -f $target_framework ${{steps.test-args.outputs.dotnet}} -- ${{steps.test-args.outputs.run_settings_args}};
}
shell: pwsh

# Not sure if continue_on_error: true is needed
- name: Perform Tests MacOS/MacOS-arm64 .NET/Mono
uses: nick-fields/retry@v3
if: ${{inputs.os == 'macos' || inputs.os == 'macos-arm64'}}
with:
timeout_minutes: 3
max_attempts: 3
retry_on: timeout
command: |
foreach ($target_framework in ConvertFrom-Json "${{steps.test-args.outputs.target_frameworks}}") {
dotnet test "HarmonyTests/bin/Release/$target_framework/HarmonyTests.dll" -f $target_framework ${{steps.test-args.outputs.dotnet}} -- ${{steps.test-args.outputs.run_settings_args}};
}
shell: pwsh

- name: Upload Test Result
uses: ./.github/actions/test-upload-result
if: ${{(inputs.upload_tests == 'true') && (always() || failure())}}
Expand Down
24 changes: 2 additions & 22 deletions .github/actions/test-setup-mono-windows/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,28 +14,8 @@ outputs:
runs:
using: "composite"
steps:
- name: Setup Mono x86 Manually
if: inputs.architecture == 'x86'
run: |
curl -L https://download.mono-project.com/archive/mono-latest-x86-preview.msi -o mono.msi;
$file = "mono.msi"
$log = "install.log"
$procMain = Start-Process "msiexec" "/i `"$file`" /qn /l*! `"$log`"" -NoNewWindow -PassThru
$procLog = Start-Process "powershell" "Get-Content -Path `"$log`" -Wait" -NoNewWindow -PassThru
$procMain.WaitForExit()
$procLog.Kill()
shell: pwsh

- name: Setup Mono x64 Manually
if: inputs.architecture == 'x64'
run: |
curl -L https://download.mono-project.com/archive/mono-latest-x64-preview.msi -o mono.msi;
$file = "mono.msi"
$log = "install.log"
$procMain = Start-Process "msiexec" "/i `"$file`" /qn /l*! `"$log`"" -NoNewWindow -PassThru
$procLog = Start-Process "powershell" "Get-Content -Path `"$log`" -Wait" -NoNewWindow -PassThru
$procMain.WaitForExit()
$procLog.Kill()
- name: Setup Mono
run: choco install mono --yes --no-progress --${{inputs.architecture}} --ignore-checksums
shell: pwsh

- name: Get Program Files path for ${{inputs.architecture}}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:
name: Upload Test Build Output Cache
runs-on: ${{inputs.image}}
if: ${{!inputs.manual_build || inputs.publish}}
timeout-minutes: 8
timeout-minutes: 10
steps:
- uses: actions/checkout@v4

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-qemu-dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
name: .NET ubuntu-arm64 ${{ inputs.target_framework }} ${{ inputs.build_configuration }}
runs-on: ubuntu-latest
continue-on-error: ${{inputs.experimental}}
timeout-minutes: 8
timeout-minutes: 10
steps:
- uses: actions/checkout@v4

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-qemu-mono.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
name: Mono ubuntu-arm64 ${{ inputs.target_framework }} ${{ inputs.build_configuration }}
runs-on: ubuntu-latest
continue-on-error: ${{inputs.experimental}}
timeout-minutes: 8
timeout-minutes: 10
steps:
- uses: actions/checkout@v4

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-unix-dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ jobs:
name: .NET ${{inputs.os}}-${{inputs.architecture}} ${{ inputs.target_framework }} ${{inputs.build_configuration}}
runs-on: ${{inputs.image}}
continue-on-error: ${{inputs.experimental}}
timeout-minutes: 8
timeout-minutes: 10
steps:
- uses: actions/checkout@v4

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-unix-mono.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ jobs:
name: Mono ${{ inputs.os }}-${{ inputs.architecture }} ${{ inputs.target_framework }} ${{ inputs.build_configuration }}
runs-on: ${{inputs.image}}
continue-on-error: ${{inputs.experimental}}
timeout-minutes: 8
timeout-minutes: 10
steps:
- uses: actions/checkout@v4

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-windows-dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ jobs:
name: .NET ${{ inputs.architecture }} ${{ inputs.target_framework }} ${{ inputs.build_configuration }}
runs-on: windows-latest
continue-on-error: ${{inputs.experimental}}
timeout-minutes: 8
timeout-minutes: 10
steps:
- uses: actions/checkout@v4

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-windows-framework.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ jobs:
name: .NET FX ${{ inputs.architecture }} ${{ inputs.target_framework }} ${{ inputs.build_configuration }}
runs-on: windows-2019
continue-on-error: ${{inputs.experimental}}
timeout-minutes: 8
timeout-minutes: 10
steps:
- uses: actions/checkout@v4

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-windows-mono.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ jobs:
name: Mono ${{ inputs.architecture }} ${{ inputs.target_framework }} ${{ inputs.build_configuration }}
runs-on: windows-latest
continue-on-error: ${{inputs.experimental}}
timeout-minutes: 8
timeout-minutes: 10
steps:
- uses: actions/checkout@v4

Expand Down

0 comments on commit 2457353

Please sign in to comment.