Skip to content

Commit

Permalink
Regenerate workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
armanbilge committed Sep 10, 2022
1 parent 1007332 commit 6f58330
Showing 1 changed file with 45 additions and 3 deletions.
48 changes: 45 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
os: [ubuntu-latest]
scala: [3.1.3, 2.12.16, 2.13.8]
java: [temurin@8, temurin@11, temurin@17]
project: [rootJS, rootJVM]
project: [rootJS, rootJVM, rootNative]
jsenv: [NodeJS, Chrome, Firefox]
exclude:
- scala: 3.1.3
Expand All @@ -46,6 +46,10 @@ jobs:
java: temurin@11
- project: rootJS
java: temurin@17
- project: rootNative
java: temurin@11
- project: rootNative
java: temurin@17
- scala: 3.1.3
jsenv: Chrome
- scala: 3.1.3
Expand All @@ -56,8 +60,12 @@ jobs:
jsenv: Firefox
- project: rootJVM
jsenv: Chrome
- project: rootNative
jsenv: Chrome
- project: rootJVM
jsenv: Firefox
- project: rootNative
jsenv: Firefox
runs-on: ${{ matrix.os }}
steps:
- name: Checkout current branch (full)
Expand Down Expand Up @@ -142,6 +150,10 @@ jobs:
if: matrix.project == 'rootJS'
run: 'sbt ''project ${{ matrix.project }}'' ''++${{ matrix.scala }}'' ''set Global / useJSEnv := JSEnv.${{ matrix.jsenv }}'' Test/scalaJSLinkerResult'

- name: nativeLink
if: matrix.project == 'rootNative'
run: 'sbt ''project ${{ matrix.project }}'' ''++${{ matrix.scala }}'' ''set Global / useJSEnv := JSEnv.${{ matrix.jsenv }}'' Test/nativeLink'

- name: Test
run: 'sbt ''project ${{ matrix.project }}'' ''++${{ matrix.scala }}'' ''set Global / useJSEnv := JSEnv.${{ matrix.jsenv }}'' test'

Expand All @@ -163,11 +175,11 @@ jobs:

- name: Make target directories
if: github.event_name != 'pull_request' && (startsWith(github.ref, 'refs/tags/v') || github.ref == 'refs/heads/main')
run: mkdir -p crypto/jvm/target target .js/target .jvm/target .native/target test-runtime/.jvm/target crypto/js/target test-runtime/.js/target project/target
run: mkdir -p crypto/jvm/target target .js/target crypto/native/target .jvm/target .native/target test-runtime/.jvm/target crypto/js/target test-runtime/.js/target test-runtime/.native/target project/target

- name: Compress target directories
if: github.event_name != 'pull_request' && (startsWith(github.ref, 'refs/tags/v') || github.ref == 'refs/heads/main')
run: tar cf targets.tar crypto/jvm/target target .js/target .jvm/target .native/target test-runtime/.jvm/target crypto/js/target test-runtime/.js/target project/target
run: tar cf targets.tar crypto/jvm/target target .js/target crypto/native/target .jvm/target .native/target test-runtime/.jvm/target crypto/js/target test-runtime/.js/target test-runtime/.native/target project/target

- name: Upload target directories
if: github.event_name != 'pull_request' && (startsWith(github.ref, 'refs/tags/v') || github.ref == 'refs/heads/main')
Expand Down Expand Up @@ -272,6 +284,16 @@ jobs:
tar xf targets.tar
rm targets.tar
- name: Download target directories (3.1.3, NodeJS, rootNative)
uses: actions/download-artifact@v2
with:
name: target-${{ matrix.os }}-${{ matrix.java }}-3.1.3-NodeJS-rootNative

- name: Inflate target directories (3.1.3, NodeJS, rootNative)
run: |
tar xf targets.tar
rm targets.tar
- name: Download target directories (2.12.16, NodeJS, rootJS)
uses: actions/download-artifact@v2
with:
Expand All @@ -292,6 +314,16 @@ jobs:
tar xf targets.tar
rm targets.tar
- name: Download target directories (2.12.16, NodeJS, rootNative)
uses: actions/download-artifact@v2
with:
name: target-${{ matrix.os }}-${{ matrix.java }}-2.12.16-NodeJS-rootNative

- name: Inflate target directories (2.12.16, NodeJS, rootNative)
run: |
tar xf targets.tar
rm targets.tar
- name: Download target directories (2.13.8, NodeJS, rootJS)
uses: actions/download-artifact@v2
with:
Expand All @@ -312,6 +344,16 @@ jobs:
tar xf targets.tar
rm targets.tar
- name: Download target directories (2.13.8, NodeJS, rootNative)
uses: actions/download-artifact@v2
with:
name: target-${{ matrix.os }}-${{ matrix.java }}-2.13.8-NodeJS-rootNative

- name: Inflate target directories (2.13.8, NodeJS, rootNative)
run: |
tar xf targets.tar
rm targets.tar
- name: Import signing key
if: env.PGP_SECRET != '' && env.PGP_PASSPHRASE == ''
run: echo $PGP_SECRET | base64 -di | gpg --import
Expand Down

0 comments on commit 6f58330

Please sign in to comment.