Skip to content

Commit

Permalink
added windows-build-job
Browse files Browse the repository at this point in the history
  • Loading branch information
Nikita-Smirnov-Exactpro committed Oct 16, 2024
1 parent fb3d9b2 commit bcbe53a
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
19 changes: 19 additions & 0 deletions .github/workflows/build-sanpshot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,25 @@ on:
- README.md

jobs:
windows-build-job:
runs-on: windows-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up JDK 11 ('zulu')
uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: '11'
- name: Build and test with Gradle
run: gradlew.bat clean build test
- name: Upload test report
if: always()
uses: actions/upload-artifact@v4
with:
name: test-report
path: build/reports/tests/test
overwrite: true
build-job:
uses: th2-net/.github/.github/workflows/compound-java-dev.yml@main
with:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ internal class ExactproMetaInf(
}

internal fun URL.toPath(): Path = when (protocol) {
"jar" -> URL(file).toPath() // the code below are added to provide windows compatibility
"jar" -> URL(file).toPath() // this code is added to provide windows compatibility
"file" -> Path.of(path)
else -> error("The '$protocol' protocol of '$this' URL can't be handled")
}
Expand Down

0 comments on commit bcbe53a

Please sign in to comment.