1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312
|
name: JJML Release
on:
workflow_dispatch: # allows manual triggering
push:
branches: [ "1.1" ]
tags:
- '*'
pull_request:
branches: [ "testing", "unstable" ]
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref && github.ref || github.run_id }}
cancel-in-progress: true
jobs:
##
## WINDOWS
##
windows-x86_64:
runs-on: windows-2025
steps:
- uses: actions/checkout@v4
name: Clone recursively with tags
with:
submodules: 'true'
fetch-depth: '0'
fetch-tags: 'true'
- name: Use latest third-parties
run: make -f tooling.mk tp-clone tp-checkout-latest
- name: Set reusable strings
id: strings
shell: bash
run: |
echo "build-output-dir=${{ github.workspace }}\argeo-jjml" >> "$GITHUB_OUTPUT"
echo "${{ github.workspace }}\a2\lib\x86_64-windows-std\org.argeo.tp.ggml" >> $GITHUB_PATH
- uses: actions/setup-java@v5
name: Setup Java
with:
distribution: 'semeru'
java-version: 21
- name: ccache
uses: ggml-org/ccache-action@v1.2.16
with:
key: windows-x86_64
evict-old-files: 1d
- name: Configure CMake
run: >
cmake -B ${{ steps.strings.outputs.build-output-dir }}
-DJAVA_HOME=%JAVA_HOME%
-DCMAKE_SKIP_BUILD_RPATH=ON
-DJJML_FORCE_BUILD_TP=ON
-DA2_INSTALL_MODE=a2
-DGGML_CCACHE=ON
-DLLAMA_CURL=OFF
-DLLAMA_BUILD_COMMON=OFF
-DLLAMA_BUILD_TOOLS=OFF
-DLLAMA_BUILD_EXAMPLES=OFF
-DLLAMA_BUILD_TESTS=OFF
-DGGML_BACKEND_DL=ON
-DGGML_CPU_ALL_VARIANTS=ON
-S ${{ github.workspace }}
- name: Build
env:
CURL_PATH: ${{ steps.get_libcurl.outputs.curl_path }}
run: cmake --build ${{ steps.strings.outputs.build-output-dir }} --config Release -j $(nproc)
- name: Test
run: >
java -ea
"-Djava.library.path=${{ github.workspace }}\a2\lib\x86_64-windows-std\org.argeo.jjml;${{ github.workspace }}\a2\lib\x86_64-windows-std\org.argeo.tp.ggml"
"--module-path=${{ github.workspace }}\a2\lib\org.argeo.jjml"
--add-modules org.argeo.jjml
sdk/jbin/JjmlSmokeTests.java
- name: Create JDK
run: |
gmake -f tooling.mk jdk-jjml
- name: Create JDK .msi
run: |
gmake -f tooling.mk msi-jdk-jjml
- name: Test JJML JDK
shell: cmd
run: >
"${{ github.workspace }}\argeo-jjml\jdk-jjml-21-openj9-x86_64-windows-std\bin\java" -ea
"${{ github.workspace }}\argeo-jjml\jdk-jjml-21-openj9-x86_64-windows-std\man\examples\JjmlSmokeTests.java"
allenai/OLMo-2-0425-1B-Instruct-GGUF
- name: Release
uses: ncipollo/release-action@v1
continue-on-error: true
with:
# Windows x86_64 is reference for portable jmod
artifacts: "${{ github.workspace }}/argeo-jjml/jdk-jjml-21-openj9-*.msi,${{ github.workspace }}/a2/lib/x86_64-windows-std/jmods/21/*.jmod,${{ github.workspace }}/a2/jmods/21/*.jmod"
allowUpdates: true
artifactErrorsFailBuild: true
draft: true
omitBody: true
##
## MACOS ARM
##
macos-aarch64:
runs-on: macos-14
steps:
- uses: actions/checkout@v4
name: Clone recursively with tags
with:
submodules: 'true'
fetch-depth: '0'
fetch-tags: 'true'
- name: GNU Make installation
run: |
brew install make
- name: Use latest third-parties
run: gmake -f tooling.mk tp-clone tp-checkout-latest
- name: Prepare A2 output
run: |
mkdir -p ${{ github.workspace }}/a2/lib/aarch64-macos-std/jmods
cd ${{ github.workspace }}/a2/lib && ln -s aarch64-macos-std local
- name: Set reusable strings
id: strings
shell: bash
run: |
echo "build-output-dir=${{ github.workspace }}/argeo-jjml" >> "$GITHUB_OUTPUT"
- uses: actions/setup-java@v5
name: Setup Java
with:
distribution: 'semeru'
java-version: 21
- name: ccache
uses: ggml-org/ccache-action@v1.2.16
with:
key: macos-arm64
evict-old-files: 1d
- name: Configure CMake
run: >
cmake -B ${{ steps.strings.outputs.build-output-dir }}
-DJAVA_HOME=$JAVA_HOME
-DJJML_FORCE_BUILD_TP=ON
-DA2_INSTALL_MODE=a2
-DCMAKE_SKIP_BUILD_RPATH=ON
-DCMAKE_OSX_DEPLOYMENT_TARGET=13.0
-DGGML_CPU_ARM_ARCH=armv8.4-a
-DGGML_NATIVE=OFF
-DGGML_CCACHE=ON
-DGGML_METAL_USE_BF16=ON
-DGGML_METAL_EMBED_LIBRARY=ON
-DLLAMA_CURL=OFF
-DLLAMA_BUILD_COMMON=OFF
-DLLAMA_BUILD_TOOLS=OFF
-DLLAMA_BUILD_EXAMPLES=OFF
-DLLAMA_BUILD_TESTS=OFF
-DBUILD_SHARED_LIBS=ON
-DGGML_BACKEND_DL=OFF
-DGGML_CPU_ALL_VARIANTS=OFF
-DGGML_VULKAN=OFF
-DGGML_BLAS=OFF
-DGGML_METAL=OFF
-S ${{ github.workspace }}
- name: Build
run: cmake --build ${{ steps.strings.outputs.build-output-dir }} --config Release -j $(sysctl -n hw.logicalcpu)
- name: Create JDK
run: |
gmake -f tooling.mk jdk-jjml
cd ${{ github.workspace }}/argeo-jjml && ln -s jdk-jjml-21-openj9-aarch64-macos-std jdk-jjml-21-openj9
- name: Create JDK .pkg
run: |
gmake -f tooling.mk pkg-jdk-jjml
- name: Test JDK .pkg installation
run: |
gmake -f tooling.mk install-pkg-jdk-jjml
- name: Test JJML JDK
run: >
/Library/Java/JavaVirtualMachines/jdk-jjml-21-openj9/Contents/Home/bin/java -ea
/Library/Java/JavaVirtualMachines/jdk-jjml-21-openj9/Contents/Home/man/examples/JjmlSmokeTests.java
allenai/OLMo-2-0425-1B-Instruct-GGUF
- name: Release
uses: ncipollo/release-action@v1
continue-on-error: true
with:
artifacts: "${{ github.workspace }}/argeo-jjml/jdk-jjml-21-openj9-*.pkg,${{ github.workspace }}/a2/lib/local/jmods/21/*.jmod"
allowUpdates: true
artifactErrorsFailBuild: true
draft: true
omitBody: true
##
## MACOS INTEL
##
macos-x86_64:
runs-on: macos-15-intel
steps:
- uses: actions/checkout@v4
name: Clone recursively with tags
with:
submodules: 'true'
fetch-depth: '0'
fetch-tags: 'true'
- name: GNU Make installation
run: |
brew install make
- name: Use latest third-parties
run: gmake -f tooling.mk tp-clone tp-checkout-latest
- name: Prepare A2 output
run: |
mkdir -p ${{ github.workspace }}/a2/lib/x86_64-macos-std/jmods
cd ${{ github.workspace }}/a2/lib && ln -s x86_64-macos-std local
- name: Set reusable strings
id: strings
shell: bash
run: |
echo "build-output-dir=${{ github.workspace }}/argeo-jjml" >> "$GITHUB_OUTPUT"
- uses: actions/setup-java@v5
name: Setup Java
with:
distribution: 'semeru'
java-version: 21
- name: ccache
uses: ggml-org/ccache-action@v1.2.16
with:
key: macos-arm64
evict-old-files: 1d
- name: Configure CMake
run: >
cmake -B ${{ steps.strings.outputs.build-output-dir }}
-DJAVA_HOME=$JAVA_HOME
-DJJML_FORCE_BUILD_TP=ON
-DA2_INSTALL_MODE=a2
-DCMAKE_SKIP_BUILD_RPATH=ON
-DCMAKE_OSX_DEPLOYMENT_TARGET=12.0
-DGGML_NATIVE=OFF
-DGGML_CCACHE=ON
-DGGML_METAL_USE_BF16=ON
-DGGML_METAL_EMBED_LIBRARY=ON
-DLLAMA_CURL=OFF
-DLLAMA_BUILD_COMMON=OFF
-DLLAMA_BUILD_TOOLS=OFF
-DLLAMA_BUILD_EXAMPLES=OFF
-DLLAMA_BUILD_TESTS=OFF
-DBUILD_SHARED_LIBS=ON
-DGGML_BACKEND_DL=OFF
-DGGML_CPU_ALL_VARIANTS=OFF
-DGGML_VULKAN=OFF
-DGGML_BLAS=OFF
-DGGML_METAL=OFF
-S ${{ github.workspace }}
- name: Build
run: cmake --build ${{ steps.strings.outputs.build-output-dir }} --config Release -j $(sysctl -n hw.logicalcpu)
- name: Create JDK
run: |
gmake -f tooling.mk jdk-jjml
cd ${{ github.workspace }}/argeo-jjml && ln -s jdk-jjml-21-openj9-x86_64-macos-std jdk-jjml-21-openj9
- name: Create JDK .pkg
run: |
gmake -f tooling.mk pkg-jdk-jjml
- name: Test JDK .pkg installation
run: |
gmake -f tooling.mk install-pkg-jdk-jjml
- name: Test JJML JDK
run: >
/Library/Java/JavaVirtualMachines/jdk-jjml-21-openj9/Contents/Home/bin/java -ea
/Library/Java/JavaVirtualMachines/jdk-jjml-21-openj9/Contents/Home/man/examples/JjmlSmokeTests.java
allenai/OLMo-2-0425-1B-Instruct-GGUF
- name: Release
uses: ncipollo/release-action@v1
continue-on-error: true
with:
artifacts: "${{ github.workspace }}/argeo-jjml/jdk-jjml-21-openj9-*.pkg,${{ github.workspace }}/a2/lib/local/jmods/21/*.jmod"
allowUpdates: true
artifactErrorsFailBuild: true
draft: true
omitBody: true
|