1212 matrix :
1313 os : [macos-14, windows-2022, ubuntu-22.04, ubuntu-22.04-arm]
1414 steps :
15- - uses : actions/checkout@v4
15+ - uses : actions/checkout@v7
1616
1717 - uses : graalvm/setup-graalvm@v1
1818 with :
@@ -27,21 +27,29 @@ jobs:
2727 - name : Build native image
2828 run : sbt GraalVMNativeImage/packageBin
2929
30+ - name : Collect the binary
31+ shell : bash
32+ run : |
33+ set -euo pipefail
34+
35+ mkdir binary
36+ # sbt 2 nests build outputs under target/out/<platform>/<scala version>/<project>/
37+ mv target/out/jvm/scala-*/jelly-cli/graalvm-native-image/* binary/
38+
3039 - name : Upload binary
31- uses : actions/upload-artifact@v4
40+ uses : actions/upload-artifact@v7
3241 with :
3342 name : jelly-cli-${{ matrix.os }}
34- # sbt 2 nests build outputs under target/out/<platform>/<scala version>/<project>/
35- path : target/out/jvm/scala-*/jelly-cli/graalvm-native-image/*
43+ path : binary/*
3644
3745 jit-compile :
3846 name : Build the uber-JAR
3947 runs-on : ubuntu-latest
4048 steps :
41- - uses : actions/checkout@v4
49+ - uses : actions/checkout@v7
4250
4351 - name : Setup JDK
44- uses : actions/setup-java@v4
52+ uses : actions/setup-java@v5
4553 with :
4654 distribution : temurin
4755 java-version : 21
5765 mv target/out/jvm/scala-*/jelly-cli/jelly-cli-assembly*.jar jelly-cli.jar
5866
5967 - name : Upload assembly
60- uses : actions/upload-artifact@v4
68+ uses : actions/upload-artifact@v7
6169 with :
6270 name : jelly-cli-assembly
6371 path : jelly-cli.jar
6876 - aot-compile
6977 - jit-compile
7078 steps :
71- - uses : actions/download-artifact@v4
79+ - uses : actions/download-artifact@v8
7280
7381 - name : Rename binaries
7482 run : |
8896
8997 - name : Upload binaries (pre-release)
9098 if : github.ref == 'refs/heads/main'
91- uses : ncipollo/release-action@v1.14 .0
99+ uses : ncipollo/release-action@v1.21 .0
92100 with :
93101 allowUpdates : true
94102 prerelease : true
@@ -102,7 +110,7 @@ jobs:
102110
103111 - name : Upload binaries (tagged release)
104112 if : github.ref != 'refs/heads/main'
105- uses : ncipollo/release-action@v1.14 .0
113+ uses : ncipollo/release-action@v1.21 .0
106114 with :
107115 prerelease : false
108116 draft : false
0 commit comments