-
Notifications
You must be signed in to change notification settings - Fork 50
52 lines (49 loc) · 1.7 KB
/
ci.yml
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
name: CI
on: [push, pull_request]
jobs:
build:
strategy:
fail-fast: false
matrix:
os: [windows-latest, macos-latest, macos-14]
java: ['17']
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- name: Set up JDK ${{ matrix.java }}
uses: actions/setup-java@v2
with:
java-version: ${{ matrix.java }}
distribution: 'liberica'
- name: Install MSYS2 on Windows
if: startsWith(matrix.os, 'windows')
uses: msys2/setup-msys2@v2
with:
pacboy: lcms2:m libraw:m lensfun:m ntldd-git:m pkgconf:m
- name: Build on Windows
if: startsWith(matrix.os, 'windows')
shell: bash
run: |
export PATH=/msys64/usr/bin/:/msys32/usr/bin/:$PATH
export MSSDK_HOME=/c/Program\ Files\ \(x86\)/Windows\ Kits/10/Lib/10.0.22621.0
ant -f windows/build.xml -lib lightcrafts/lib zip
ant -f windows/build.xml clean-native
MSYSTEM=MINGW32 TARGET_ARCH=i686 ant -f windows/build.xml -Dno-ivy=true -lib lightcrafts/lib zip
- name: Build on macOS
if: startsWith(matrix.os, 'macos')
run: |
export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig
brew install ant lensfun libjpeg-turbo libomp libraw libtiff libxml2 little-cms2 rsync
if [ "${{ matrix.os }}" == "macos-14" ]; then
export LIBOMP_PATH=/opt/homebrew/opt/libomp
TARGET_ARCH=arm64 ant -f macosx/build.xml zip
else
ant -f macosx/build.xml zip
fi
- name: Upload Artifacts
uses: actions/upload-artifact@v4
with:
name: LightZone-${{ matrix.os }}
path: |
windows/LightZone-windows*.zip
macosx/LightZone-macosx*.zip