Update build.yml
This commit is contained in:
parent
63a62e0f6a
commit
762cee6217
1 changed files with 0 additions and 74 deletions
74
.github/workflows/build.yml
vendored
74
.github/workflows/build.yml
vendored
|
|
@ -49,53 +49,6 @@ jobs:
|
||||||
echo "version=$(sed -n 's/.*<TargetRaylibTag>\(.*\)<\/TargetRaylibTag>.*/\1/p' Raylib-cs/Build.props)">> ${GITHUB_OUTPUT}
|
echo "version=$(sed -n 's/.*<TargetRaylibTag>\(.*\)<\/TargetRaylibTag>.*/\1/p' Raylib-cs/Build.props)">> ${GITHUB_OUTPUT}
|
||||||
echo "pkgversion=$(sed -n 's/.*<PackageVersion>\(.*\)<\/PackageVersion>.*/\1/p' Raylib-cs/Build.props)">> ${GITHUB_OUTPUT}
|
echo "pkgversion=$(sed -n 's/.*<PackageVersion>\(.*\)<\/PackageVersion>.*/\1/p' Raylib-cs/Build.props)">> ${GITHUB_OUTPUT}
|
||||||
|
|
||||||
build-android:
|
|
||||||
runs-on: ubuntu-20.04
|
|
||||||
needs: build
|
|
||||||
strategy:
|
|
||||||
matrix:
|
|
||||||
name: [arm, arm64, x86, x64]
|
|
||||||
include:
|
|
||||||
- name: arm
|
|
||||||
arch: armeabi-v7a
|
|
||||||
cflags: "-mfloat-abi=softfp -mfpu=vfpv3-d16"
|
|
||||||
- name: arm64
|
|
||||||
arch: arm64-v8a
|
|
||||||
cflags: "-mfix-cortex-a53-835769"
|
|
||||||
- name: x86
|
|
||||||
arch: x86
|
|
||||||
- name: x64
|
|
||||||
arch: x86_64
|
|
||||||
steps:
|
|
||||||
- name: checkout repository
|
|
||||||
uses: actions/checkout@v3
|
|
||||||
|
|
||||||
- name: build raylib
|
|
||||||
env:
|
|
||||||
version: ${{ needs.build.outputs.version }}
|
|
||||||
run: |
|
|
||||||
curl -Lso raylib.zip https://github.com/raysan5/raylib/archive/refs/tags/${version}.zip
|
|
||||||
unzip -qq raylib.zip
|
|
||||||
pushd raylib-${version}; patch -p1 < ../Examples.Android/android.patch; popd
|
|
||||||
cmake -S raylib-${version} \
|
|
||||||
-B build \
|
|
||||||
-D CMAKE_BUILD_TYPE=Release \
|
|
||||||
-D BUILD_SHARED_LIBS=ON \
|
|
||||||
-D BUILD_EXAMPLES=OFF \
|
|
||||||
-D CMAKE_TOOLCHAIN_FILE=${ANDROID_NDK}/build/cmake/android.toolchain.cmake \
|
|
||||||
-D PLATFORM=Android \
|
|
||||||
-D ANDROID_ABI=${{ matrix.arch }} \
|
|
||||||
-D ANDROID_PLATFORM=21 \
|
|
||||||
-D CMAKE_C_FLAGS="${{ matrix.cflags }}"
|
|
||||||
cmake --build build --config Release
|
|
||||||
|
|
||||||
- name: upload build
|
|
||||||
uses: actions/upload-artifact@v3
|
|
||||||
with:
|
|
||||||
name: android-${{ matrix.name }}
|
|
||||||
path: build/raylib/libraylib.so
|
|
||||||
if-no-files-found: error
|
|
||||||
|
|
||||||
build-linux:
|
build-linux:
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
needs: build
|
needs: build
|
||||||
|
|
@ -206,7 +159,6 @@ jobs:
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
needs:
|
needs:
|
||||||
- build
|
- build
|
||||||
- build-android
|
|
||||||
- build-linux
|
- build-linux
|
||||||
- build-osx
|
- build-osx
|
||||||
- build-windows
|
- build-windows
|
||||||
|
|
@ -227,26 +179,6 @@ jobs:
|
||||||
libxcursor-dev \
|
libxcursor-dev \
|
||||||
libxinerama-dev
|
libxinerama-dev
|
||||||
|
|
||||||
- uses: actions/download-artifact@v3
|
|
||||||
with:
|
|
||||||
name: android-arm
|
|
||||||
path: Examples.Android/runtimes/android-arm/native
|
|
||||||
|
|
||||||
- uses: actions/download-artifact@v3
|
|
||||||
with:
|
|
||||||
name: android-arm64
|
|
||||||
path: Examples.Android/runtimes/android-arm64/native
|
|
||||||
|
|
||||||
- uses: actions/download-artifact@v3
|
|
||||||
with:
|
|
||||||
name: android-x86
|
|
||||||
path: Examples.Android/runtimes/android-x86/native
|
|
||||||
|
|
||||||
- uses: actions/download-artifact@v3
|
|
||||||
with:
|
|
||||||
name: android-x64
|
|
||||||
path: Examples.Android/runtimes/android-x64/native
|
|
||||||
|
|
||||||
- uses: actions/download-artifact@v3
|
- uses: actions/download-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: linux-x64
|
name: linux-x64
|
||||||
|
|
@ -277,12 +209,6 @@ jobs:
|
||||||
with:
|
with:
|
||||||
dotnet-version: 6.0.x
|
dotnet-version: 6.0.x
|
||||||
|
|
||||||
#- name: restore workload
|
|
||||||
# run: dotnet workload restore
|
|
||||||
|
|
||||||
#- name: build examples android
|
|
||||||
# run: dotnet build Examples.Android -c Release
|
|
||||||
|
|
||||||
- name: create NuGet Package
|
- name: create NuGet Package
|
||||||
run: dotnet pack Raylib-cs -c Release --output nuget
|
run: dotnet pack Raylib-cs -c Release --output nuget
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue