Skip to content

Commit

Permalink
ci modified
Browse files Browse the repository at this point in the history
  • Loading branch information
Julien Sirocchi committed Sep 4, 2023
1 parent a2d05d8 commit 11ffe98
Showing 1 changed file with 37 additions and 3 deletions.
40 changes: 37 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
os: [ubuntu-latest]
scala: [2.12.18, 2.13.11, 3.3.0]
java: [temurin@11, temurin@17]
project: [rootJVM]
project: [rootJS, rootJVM]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout current branch (full)
Expand Down Expand Up @@ -89,6 +89,10 @@ jobs:
if: matrix.java == 'temurin@11' && matrix.os == 'ubuntu-latest'
run: sbt 'project ${{ matrix.project }}' '++ ${{ matrix.scala }}' headerCheckAll scalafmtCheckAll 'project /' scalafmtSbtCheck

- name: scalaJSLink
if: matrix.project == 'rootJS'
run: sbt 'project ${{ matrix.project }}' '++ ${{ matrix.scala }}' Test/scalaJSLinkerResult

- name: Test
run: sbt 'project ${{ matrix.project }}' '++ ${{ matrix.scala }}' test

Expand All @@ -102,11 +106,11 @@ jobs:

- name: Make target directories
if: github.event_name != 'pull_request' && (startsWith(github.ref, 'refs/tags/v') || github.ref == 'refs/heads/master')
run: mkdir -p fs2/target target .js/target .jvm/target zio/target .native/target core/target interop/target project/target
run: mkdir -p zio/.js/target interop/.jvm/target target .js/target interop/.js/target core/.js/target zio/.jvm/target core/.jvm/target .jvm/target .native/target fs2/.js/target fs2/.jvm/target project/target

- name: Compress target directories
if: github.event_name != 'pull_request' && (startsWith(github.ref, 'refs/tags/v') || github.ref == 'refs/heads/master')
run: tar cf targets.tar fs2/target target .js/target .jvm/target zio/target .native/target core/target interop/target project/target
run: tar cf targets.tar zio/.js/target interop/.jvm/target target .js/target interop/.js/target core/.js/target zio/.jvm/target core/.jvm/target .jvm/target .native/target fs2/.js/target fs2/.jvm/target project/target

- name: Upload target directories
if: github.event_name != 'pull_request' && (startsWith(github.ref, 'refs/tags/v') || github.ref == 'refs/heads/master')
Expand Down Expand Up @@ -174,6 +178,16 @@ jobs:
~/Library/Caches/Coursier/v1
key: ${{ runner.os }}-sbt-cache-v2-${{ hashFiles('**/*.sbt') }}-${{ hashFiles('project/build.properties') }}

- name: Download target directories (2.12.18, rootJS)
uses: actions/download-artifact@v3
with:
name: target-${{ matrix.os }}-${{ matrix.java }}-2.12.18-rootJS

- name: Inflate target directories (2.12.18, rootJS)
run: |
tar xf targets.tar
rm targets.tar
- name: Download target directories (2.12.18, rootJVM)
uses: actions/download-artifact@v3
with:
Expand All @@ -184,6 +198,16 @@ jobs:
tar xf targets.tar
rm targets.tar
- name: Download target directories (2.13.11, rootJS)
uses: actions/download-artifact@v3
with:
name: target-${{ matrix.os }}-${{ matrix.java }}-2.13.11-rootJS

- name: Inflate target directories (2.13.11, rootJS)
run: |
tar xf targets.tar
rm targets.tar
- name: Download target directories (2.13.11, rootJVM)
uses: actions/download-artifact@v3
with:
Expand All @@ -194,6 +218,16 @@ jobs:
tar xf targets.tar
rm targets.tar
- name: Download target directories (3.3.0, rootJS)
uses: actions/download-artifact@v3
with:
name: target-${{ matrix.os }}-${{ matrix.java }}-3.3.0-rootJS

- name: Inflate target directories (3.3.0, rootJS)
run: |
tar xf targets.tar
rm targets.tar
- name: Download target directories (3.3.0, rootJVM)
uses: actions/download-artifact@v3
with:
Expand Down

0 comments on commit 11ffe98

Please sign in to comment.