-
Notifications
You must be signed in to change notification settings - Fork 100
80 lines (78 loc) · 2.93 KB
/
natives.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
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
name: Build Natives
on: [workflow_dispatch]
jobs:
buildLinux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up JDK 1.8
uses: actions/setup-java@v1
with:
java-version: 1.8
- name: Install dependencies
run: sudo apt install g++-mingw-w64 g++-mingw-w64-i686 g++-mingw-w64-x86-64 gcc-mingw-w64 gcc-mingw-w64-i686 gcc-mingw-w64-x86-64 libasound2-dev libdrm-dev libsdl2-dev libgbm-dev
- name: Set env
run: echo "NDK_HOME=$ANDROID_NDK_HOME" >> $GITHUB_ENV
- name: Build natives
run: |
./gradlew arc-core:jnigenBuild
./gradlew extensions:freetype:jnigenBuild
./gradlew backends:backend-sdl:jnigenBuild
- name: Upload natives
uses: actions/upload-artifact@v4
with:
name: Arc-core desktop natives
path: |
natives/natives-desktop/libs/libarc64.so
natives/natives-desktop/libs/arc.dll
natives/natives-desktop/libs/arc64.dll
backends/backend-sdl/libs/linux64/libsdl-arc64.so
backends/backend-sdl/libs/windows32/sdl-arc.dll
backends/backend-sdl/libs/windows64/sdl-arc64.dll
natives/natives-freetype-desktop/libs/libarc-freetype64.so
natives/natives-freetype-desktop/libs/arc-freetype.dll
natives/natives-freetype-desktop/libs/arc-freetype64.dll
- name: Upload Android natives
uses: actions/upload-artifact@v4
with:
name: Arc-core android natives
path: |
natives/natives-android/libs
natives/natives-freetype-android/libs
buildMac:
runs-on: macos-13
steps:
- uses: actions/checkout@v2
- name: Set up JDK 1.8
uses: actions/setup-java@v1
with:
java-version: 1.8
- name: Install dependencies
run: |
brew install sdl2
brew install glew
- name: Build natives
env:
MACOSX_DEPLOYMENT_TARGET: '10.9'
run: |
./gradlew arc-core:jnigenBuild
./gradlew extensions:freetype:jnigenBuild
./gradlew backends:backend-sdl:jnigenBuild
- name: Upload natives
uses: actions/upload-artifact@v4
with:
name: Arc-core MacOS natives
path: |
natives/natives-desktop/libs/libarc64.dylib
natives/natives-desktop/libs/libarcarm64.dylib
natives/natives-freetype-desktop/libs/libarc-freetype64.dylib
natives/natives-freetype-desktop/libs/libarc-freetypearm64.dylib
backends/backend-sdl/libs/macosx64/libsdl-arc64.dylib
backends/backend-sdl/libs/macosx64/libsdl-arcarm64.dylib
- name: Upload iOS natives
uses: actions/upload-artifact@v4
with:
name: Arc-core iOS natives
path: |
natives/natives-ios/libs/libarc.a
natives/natives-freetype-ios/libs/libarc-freetype.a