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

Make publish respect githubWorkflowOSes #169

Merged
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
1 change: 1 addition & 0 deletions src/main/scala/sbtghactions/GenerativePlugin.scala
Original file line number Diff line number Diff line change
Expand Up @@ -735,6 +735,7 @@ ${indent(jobs.map(compileJob(_, sbt)).mkString("\n\n"), 1)}
githubWorkflowPublish.value.toList :::
githubWorkflowPublishPostamble.value.toList,
sbtStepPreamble = githubWorkflowPublishSbtStepPreamble.value.toList,
oses = List(githubWorkflowOSes.value.headOption.getOrElse("ubuntu-latest")),
cond = Some(s"github.event_name != 'pull_request' && $publicationCond"),
scalas = List(scalaVersion.value),
javas = List(githubWorkflowJavaVersions.value.head),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,13 +75,14 @@ jobs:
if: github.event_name != 'pull_request' && (github.ref == 'refs/heads/main')
strategy:
matrix:
os: [ubuntu-latest]
os: [windows-latest]
scala: [2.13.10]
java: [temurin@8]
runs-on: ${{ matrix.os }}
steps:
- name: Ignore line ending differences in git
if: contains(runner.os, 'windows')
shell: bash
run: git config --global core.autocrlf false

- name: Configure pagefile for Windows
Expand Down Expand Up @@ -110,6 +111,7 @@ jobs:
name: target-${{ matrix.os }}-2.13.10-${{ matrix.java }}

- name: Inflate target directories (2.13.10)
shell: bash
run: |
tar xf targets.tar
rm targets.tar
Expand All @@ -120,9 +122,11 @@ jobs:
name: target-${{ matrix.os }}-2.12.17-${{ matrix.java }}

- name: Inflate target directories (2.12.17)
shell: bash
run: |
tar xf targets.tar
rm targets.tar

- name: Publish project
shell: bash
run: sbt +publish