|
78 | 78 | arguments: fatJar --no-daemon --stacktrace --warning-mode all
|
79 | 79 | if: matrix.os == 'ubuntu-latest'
|
80 | 80 |
|
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 | 81 | - name: Collect jlink zip files
|
140 | 82 | if: matrix.os == 'ubuntu-latest'
|
141 | 83 | id: collect_jlinkAyaZip
|
|
0 commit comments