forked from LWJGL/lwjgl
-
Notifications
You must be signed in to change notification settings - Fork 2
67 lines (64 loc) · 1.99 KB
/
ant.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
name: Java CI
on: [ push ]
jobs:
build-natives:
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
arch: [x64, x86]
exclude:
- os: macos-latest
arch: x86
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- name: Set up JDK 8
uses: actions/setup-java@v3
with:
java-version: 8
distribution: zulu
architecture: ${{ matrix.arch }}
- if: matrix.os == 'ubuntu-latest' && matrix.arch == 'x64'
run: sudo apt install libx11-dev libxrandr-dev libxext-dev libxcursor-dev libxxf86vm-dev
- if: matrix.os == 'ubuntu-latest' && matrix.arch == 'x86'
run: sudo dpkg --add-architecture i386 && sudo apt update && sudo apt install gcc-multilib libx11-dev:i386 libxrandr-dev:i386 libxext-dev:i386 libxcursor-dev:i386 libxxf86vm-dev:i386
- if: matrix.os == 'windows-latest'
uses: ilammy/msvc-dev-cmd@v1
with:
arch: ${{ matrix.arch }}
- if: matrix.os == 'macos-latest'
run: sudo xcode-select -s /Applications/Xcode_11.7.app/Contents/Developer
- name: Build natives
run: ant generate-all compile_native
- if: ${{ failure() }}
uses: mxschmitt/action-tmate@v3
with:
limit-access-to-actor: true
- uses: actions/upload-artifact@v3
with:
name: natives
path: |
bin/lwjgl/lwjgl*.dll
bin/lwjgl/liblwjgl*.so
bin/lwjgl/liblwjgl.dylib
build:
runs-on: ubuntu-latest
needs: build-natives
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up JDK 8
uses: actions/setup-java@v3
with:
java-version: 8
distribution: zulu
- uses: actions/download-artifact@v3
with:
name: natives
path: bin/lwjgl
- name: Build
run: ant generate-all maven-full
- uses: actions/upload-artifact@v3
with:
name: maven
path: dist/lwjgl-maven-*.zip