-
Notifications
You must be signed in to change notification settings - Fork 21
/
.cirrus.yml
51 lines (48 loc) · 1.66 KB
/
.cirrus.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
# download at https://api.cirrus-ci.com/v1/artifact/github/electronstudio/jaylib/main/binary.zip
mac_task:
macos_instance:
image: ghcr.io/cirruslabs/macos-sonoma-xcode:latest
env:
RAYLIB_PLATFORM: macosx-arm64
RAYLIB_VERSION: 5.0.0-0
setup_script:
- brew update
- brew install java11
- sudo ln -sfn /opt/homebrew/opt/openjdk@11/libexec/openjdk.jdk /Library/Java/JavaVirtualMachines/openjdk-11.jdk
- export CPPFLAGS="-I/opt/homebrew/opt/openjdk@11/include"
build_raylib_script:
- git submodule update --init --recursive
- cd raylib
- mkdir build
- cd build
- cmake -DBUILD_EXAMPLES=OFF -DCUSTOMIZE_BUILD=ON -DSUPPORT_FILEFORMAT_JPG=ON -DSUPPORT_FILEFORMAT_FLAC=ON -DWITH_PIC=ON -DCMAKE_BUILD_TYPE=Release ..
- make -j8
- sudo make install
build_script:
- ./build-java.sh
- ./build-native.sh
artifacts:
path: "./*macos*.jar"
pi_task:
arm_container:
image: dtcooper/raspberrypi-os:python-bullseye
env:
RAYLIB_PLATFORM: linux-arm64
RAYLIB_VERSION: 5.0.0-0
setup_script:
- apt update
- apt -y install openjdk-11-jdk cmake libasound2-dev mesa-common-dev libx11-dev libxrandr-dev libxi-dev xorg-dev libgl1-mesa-dev libglu1-mesa-dev
build_raylib_script:
- git submodule update --init --recursive
- cd raylib
- mkdir build
- cd build
- cmake -DPLATFORM="Desktop" -DOPENGL_VERSION=2.1 -DBUILD_EXAMPLES=OFF -DCUSTOMIZE_BUILD=ON -DSUPPORT_FILEFORMAT_JPG=ON -DSUPPORT_FILEFORMAT_FLAC=ON -DWITH_PIC=ON -DCMAKE_BUILD_TYPE=Release ..
- make -j2
- make install
- find /usr/lib
build_script:
- ./build-java.sh
- ./build-native.sh
artifacts:
path: "./*linux*.jar"