@@ -19,39 +19,44 @@ jobs:
19
19
steps :
20
20
- name : checkout
21
21
uses : actions/checkout@v2
22
-
23
22
- uses : coursier/cache-action@v6
24
23
24
+ - name : compile for ${{ matrix.os }}
25
+ run : |
26
+ ./sbt compile
27
+
25
28
- uses : graalvm/setup-graalvm@v1
29
+ if : ${{ contains(github.event.ref, 'tags') }}
26
30
with :
27
31
version : ' latest'
28
32
java-version : ' 17'
29
33
components : ' native-image'
30
34
github-token : ${{ secrets.GITHUB_TOKEN }}
31
35
36
+
32
37
- name : build for ${{ matrix.os }}
38
+ if : ${{ contains(github.event.ref, 'tags') }}
33
39
run : |
34
40
./sbt graalvm-native-image:packageBin
35
41
36
42
# disable on window: https://github.com/upx/upx/issues/559
37
43
- name : run upx on ${{ matrix.os }}
38
44
uses : svenstaro/upx-action@v2
45
+ if : ${{ contains(github.event.ref, 'tags') }}
39
46
with :
40
47
file : target/graalvm-native-image/scala-interactive-update
41
48
args : --best --lzma
42
49
43
50
- name : upload ${{ matrix.os }}
44
51
uses : actions/upload-artifact@v2
52
+ if : ${{ contains(github.event.ref, 'tags') }}
45
53
with :
46
54
name : ${{ matrix.artifact-name }}
47
55
path : target/graalvm-native-image/scala-interactive-update
48
56
49
- - name : inspect-event
50
- run : |
51
- echo "{{ github.event.ref_type }}"
52
-
53
57
- name : release binaries
54
58
uses : svenstaro/upload-release-action@v2
59
+ if : ${{ contains(github.event.ref, 'tags') }}
55
60
with :
56
61
repo_token : ${{ secrets.GITHUB_TOKEN }}
57
62
file : target/graalvm-native-image/scala-interactive-update
0 commit comments