Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: Windows #62

Merged
merged 1 commit into from
Jan 19, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,15 @@ jobs:
- os: ubuntu-latest
java: 8
jobtype: 1
- os: windows-latest
java: 8
jobtype: 2
- os: ubuntu-latest
java: 11
jobtype: 1
- os: ubuntu-latest
java: 11
jobtype: 2
jobtype: 3
runs-on: ${{ matrix.os }}
env:
# define Java options for both official sbt and sbt-extras
Expand All @@ -41,6 +44,11 @@ jobs:
- name: Build and test (2)
if: ${{ matrix.jobtype == 2 }}
shell: bash
run: |
sbt -v -Dfile.encoding=UTF8 "jarjar/publishLocal" "+test" "publishLocal;scripted"
- name: Build and test (3)
if: ${{ matrix.jobtype == 3 }}
shell: bash
run: |
sbt -v -Dfile.encoding=UTF8 scalafmtCheckAll

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ private static void zipDirectory(Path sourceDir, File zipFile) throws IOExceptio
Stream<Path> paths = Files.walk(sourceDir)
) {
paths.forEach(path -> {
String name = sourceDir.relativize(path).toString();
String name = sourceDir.relativize(path).toString().replace('\\', '/');
if (Files.isDirectory(path)) {
name = name + "/";
}
Expand Down
Loading