Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
lihaoyi committed Sep 5, 2024
1 parent 45264b1 commit 680f482
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 5 deletions.
14 changes: 13 additions & 1 deletion .github/workflows/actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,19 @@ concurrency:
cancel-in-progress: true

jobs:

build-linux:
uses: ./.github/workflows/run-mill-action.yml
with:
java-version: 11
millargs: __.compile
populate_cache: true
build-windows:
uses: ./.github/workflows/run-mill-action.yml
with:
os: windows-latest
java-version: 11
millargs: __.compile
populate_cache: true
itest:
strategy:
fail-fast: false
Expand Down
15 changes: 11 additions & 4 deletions .github/workflows/run-mill-action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ on:
continue-on-error:
default: false
type: boolean
populate_cache:
default: false
type: boolean
timeout-minutes:
default: 60
type: number
Expand All @@ -35,9 +38,8 @@ jobs:
MILL_COMPILER_BRIDGE_VERSIONS: ${{ inputs.env-bridge-versions }}

steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/download-artifact@v4
if: ${{ !inputs.populate_cache }}

- uses: coursier/cache-action@v6

Expand All @@ -61,4 +63,9 @@ jobs:

- name: Run Mill (on Windows) '${{ inputs.millargs }}'
run: cmd /C %GITHUB_WORKSPACE%\ci\mill.bat -ij1 __.resolvedIvyDeps; cmd /C %GITHUB_WORKSPACE%\ci\mill.bat -i -d -k ${{ inputs.millargs }}
if: inputs.millargs != '' && startsWith(inputs.os, 'windows')
if: inputs.millargs != '' && startsWith(inputs.os, 'windows')

- uses: actions/upload-artifact@v4
with:
path: .
if: ${{ inputs.populate_cache }}

0 comments on commit 680f482

Please sign in to comment.