41
41
nightly-build :
42
42
needs : [move-tag, check-aya-version]
43
43
runs-on : ${{ matrix.os }}
44
- env :
45
- nativeName : aya-prover_native_${{ matrix.platform }}${{ matrix.binaryExt }}
46
- nativeSha256 : aya-prover_native_${{ matrix.platform }}${{ matrix.binaryExt }}.sha256.txt
47
44
strategy :
48
45
fail-fast : false
49
46
matrix :
78
75
arguments : fatJar --no-daemon --stacktrace --warning-mode all
79
76
if : matrix.os == 'ubuntu-latest'
80
77
81
- - name : Setup GraalVM for Java ${{ needs.check-aya-version.outputs.javaVersion }}
82
- uses : graalvm/setup-graalvm@v1
83
- with :
84
- java-version : ${{ needs.check-aya-version.outputs.javaVersion }}
85
- distribution : ' graalvm-community'
86
- components : ' native-image'
87
- set-java-home : ' true'
88
- cache : ' gradle'
89
- github-token : ${{ secrets.GH_TOKEN }}
90
-
91
- - name : Setup MSVC
92
- uses : ilammy/msvc-dev-cmd@v1
93
- if : matrix.os == 'windows-latest'
94
-
95
- - name : Tell gradle where's my JDK
96
- run : |
97
- # Gradle should respect these environmental variables by default!
98
- echo 'org.gradle.java.installations.fromEnv=JAVA_HOME,GRAALVM_HOME' >> gradle.properties
99
-
100
- - name : Gradle, do you understand?
101
- uses : gradle/gradle-build-action@v2
102
- with :
103
- arguments : javaToolchains --no-daemon --stacktrace --warning-mode all
104
-
105
- - name : Run task nativeCompile
106
- uses : gradle/gradle-build-action@v2
107
- with :
108
- arguments : nativeCompile --no-daemon --stacktrace --warning-mode all
109
-
110
- - name : Copy aya Native Image
111
- run : cp ./cli-console/build/native/nativeCompile/aya${{ matrix.binaryExt }} ./${{ env.nativeName }}
112
-
113
- - name : Checksum (Native, Unix)
114
- run : shasum -a 256 ./${{ env.nativeName }} > ./${{ env.nativeSha256 }}
115
- if : matrix.os != 'windows-latest'
116
-
117
- - name : Checksum (Native, Windows)
118
- run : Get-FileHash ./${{ env.nativeName }} -Algorithm SHA256 > ./${{ env.nativeSha256 }}
119
- if : matrix.os == 'windows-latest'
120
-
121
- - name : Test native image
122
- run : ./${{ env.nativeName }} --remake base/src/test/resources/success
123
-
124
- - name : Update Release (Native images)
125
- uses : Xotl/cool-github-releases@v1
126
- if : matrix.os != 'ubuntu-latest'
127
- with :
128
- mode : update
129
- isPrerelease : false
130
- tag_name : nightly-build
131
- release_name : " Nightly builds"
132
- body_mrkdwn : |
133
- _These are latest builds, but the date on GitHub is frozen due to stupid limitations.
134
- Corresponding commit: <https://github.com/aya-prover/aya-dev/commit/${{ github.sha }}>_
135
- assets : ${{ env.nativeSha256 }};${{ env.nativeName }}|application/octet-stream
136
- replace_assets : true
137
- github_token : ${{ secrets.GH_TOKEN }}
138
-
139
78
- name : Collect jlink zip files
140
79
if : matrix.os == 'ubuntu-latest'
141
80
id : collect_jlinkAyaZip
@@ -161,6 +100,6 @@ jobs:
161
100
body_mrkdwn : |
162
101
_These are latest builds, but the date on GitHub is frozen due to stupid limitations.
163
102
Corresponding commit: <https://github.com/aya-prover/aya-dev/commit/${{ github.sha }}>_
164
- assets : ${{ env.nativeSha256 }};${{ env.nativeName }}|application/octet-stream; lsp-fatjar.jar;cli-fatjar.jar;${{ steps.collect_jlinkAyaZip.outputs.jlinkFiles }}
103
+ assets : lsp-fatjar.jar;cli-fatjar.jar;${{ steps.collect_jlinkAyaZip.outputs.jlinkFiles }}
165
104
replace_assets : true
166
105
github_token : ${{ secrets.GH_TOKEN }}
0 commit comments