Skip to content

update to 5.5

update to 5.5 #104

Workflow file for this run

name: Build
# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the master branch
push:
branches: [ master ]
pull_request:
branches: [ master ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
env:
RAYLIB_VERSION: 5.5.0-0
jobs:
build-linux:
runs-on: ubuntu-20.04
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2
with:
submodules: recursive
- uses: actions/setup-java@v2
with:
distribution: 'adopt' # See 'Supported distributions' for available options
java-version: '8'
- name: Build raylib
run: |
sudo apt update
sudo apt install libasound2-dev mesa-common-dev libx11-dev libxrandr-dev libxi-dev xorg-dev libgl1-mesa-dev libglu1-mesa-dev libwayland-dev libxkbcommon-dev
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 -j2
sudo make install
- name: Build jaylib
env:
RAYLIB_PLATFORM: linux-x86_64
run: |
./build-java.sh
./build-native.sh
./build-docs.sh
- name: Upload jar
uses: actions/upload-artifact@v3.2.1
with:
name: jar
path: ./*.jar
# build-linux-arm:
# runs-on: rpi
#
# steps:
# # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
# - uses: actions/checkout@v2
# with:
# submodules: recursive
#
#
# - name: Build raylib
# run: |
# cd raylib
# mkdir build
# cd build
# cmake -DBUILD_EXAMPLES=off -DINCLUDE_EVERYTHING=on -DSUPPORT_FILEFORMAT_JPG=on -DWITH_PIC=on -DCMAKE_BUILD_TYPE=Release -DOpenGL_GL_PREFERENCE=GLVND ..
# make -j2
# make install
#
# - name: Build jaylib
# env:
# RAYLIB_PLATFORM: linux-armhf
# run: |
# ./build-java.sh
# ./build-native.sh
#
# - name: Upload jar
# uses: actions/upload-artifact@v2.2.4
# with:
# name: jar
# path: ./*.jar
build-mac:
runs-on: macos-12
env:
MACOSX_DEPLOYMENT_TARGET: 10.14
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2
with:
submodules: recursive
- uses: actions/setup-java@v2
with:
distribution: 'adopt' # See 'Supported distributions' for available options
java-version: '8'
# build raylib for arm64 and x86_64 as well
- name: Build raylib
run: |
cd raylib
mkdir build
cd build
cmake -DBUILD_EXAMPLES=OFF -DCMAKE_OSX_ARCHITECTURES="arm64;x86_64" -DCUSTOMIZE_BUILD=ON -DSUPPORT_FILEFORMAT_JPG=ON -DSUPPORT_FILEFORMAT_FLAC=ON -DWITH_PIC=ON -DCMAKE_BUILD_TYPE=Release ..
make -j2
sudo make install
- name: Build jaylib
env:
RAYLIB_PLATFORM: macosx-x86_64
run: |
./build-java.sh
./build-native.sh
- name: Upload jar
uses: actions/upload-artifact@v3.2.1
with:
name: jar
path: ./*macosx-x86_64*.jar
build-windows:
runs-on: windows-2019
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2
with:
submodules: recursive
- uses: actions/setup-java@v2
with:
distribution: 'adopt' # See 'Supported distributions' for available options
java-version: '8'
- name: Add msbuild to PATH
uses: microsoft/setup-msbuild@v1.0.2
- name: Build raylib
run: |
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 ..
msbuild raylib.sln /target:raylib /property:Configuration=Release
copy raylib\Release\raylib.lib ..\..
cd ..\..
shell: cmd
- uses: ilammy/msvc-dev-cmd@v1
- name: Build jaylib
env:
RAYLIB_PLATFORM: windows-x86_64
run: |
build-windows.bat
shell: cmd
- name: Upload jar
uses: actions/upload-artifact@v3.2.1
with:
name: jar
path: ./*.jar