forked from BoardwalkApp/boardwalk2-openjdk-build
-
Notifications
You must be signed in to change notification settings - Fork 181
125 lines (113 loc) · 3.56 KB
/
build.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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
name: Build OpenJDK 8 for Android
on:
push:
pull_request:
workflow_dispatch:
schedule:
- cron: '0 0 1 */2 *'
jobs:
build_android:
strategy:
matrix:
arch: [ "aarch32", "aarch64", "x86", "x86_64" ]
fail-fast: false
name: "Build for Android ${{matrix.arch}}"
runs-on: ubuntu-22.04
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: set up JDK 1.7
uses: actions/setup-java@v4
with:
java-version: 7
distribution: zulu
- name: Install build dependencies
run: |
sudo apt update
sudo apt -y install autoconf python3 python-is-python3 unzip zip systemtap-sdt-dev gcc-multilib g++-multilib libxtst-dev libasound2-dev libelf-dev libfontconfig1-dev libx11-dev
- name: Build with CI build script
run: bash "ci_build_arch_${{matrix.arch}}.sh"
- name: Upload JDK build output
uses: actions/upload-artifact@v4
with:
name: "jdk8-${{matrix.arch}}"
path: jdk8*.tar.xz
- name: Setup tmate session if failed
if: ${{ failure() }}
uses: mxschmitt/action-tmate@v3
- name: Upload JRE build output
uses: actions/upload-artifact@v4
with:
name: 'jre8-${{matrix.arch}}'
path: jre8*.tar.xz
- name: Upload JRE debuginfo build output
uses: actions/upload-artifact@v4
with:
name: "jre8-debuginfo-${{matrix.arch}}"
path: dizout
build_iosport:
name: "Build for iOS aarch64"
runs-on: MacStadium
continue-on-error: true
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: set up JDK 1.7
uses: actions/setup-java@v1
with:
java-version: 1.7
- name: Build with CI build script
run: |
export BUILD_IOS=1
#brew install awk
#echo "/opt/procursus/bin:/opt/procursus/local/bin:/Users/eilionoir/.local/bin:/opt/homebrew/bin:/Users/eilionoir/Library/Python/3.9/bin:/Library/Frameworks/Python.framework/Versions/3.10/bin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/Library/Apple/usr/bin:/opt/procursus/games" > $GITHUB_PATH
export PATH=/opt/procursus/bin:/opt/homebrew/bin:$PATH
bash "ci_build_arch_aarch64.sh"
- name: Upload JDK build output
uses: actions/upload-artifact@v2
with:
name: "jdk8-ios-aarch64"
path: jdk8*.tar.xz
- name: Upload JRE build output
uses: actions/upload-artifact@v2
with:
name: 'jre8-ios-aarch64'
path: jre8*.tar.xz
- name: Upload JRE debuginfo build output
uses: actions/upload-artifact@v2
with:
name: "jre8-ios-debuginfo-aarch64"
path: dizout
pojav:
needs: build_android
runs-on: ubuntu-22.04
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Get jre8-aarch32
uses: actions/download-artifact@v4
with:
name: jre8-aarch32
path: pojav
- name: Get jre8-aarch64
uses: actions/download-artifact@v4
with:
name: jre8-aarch64
path: pojav
- name: Get jre8-x86
uses: actions/download-artifact@v4
with:
name: jre8-x86
path: pojav
- name: Get jre8-x86_64
uses: actions/download-artifact@v4
with:
name: jre8-x86_64
path: pojav
- name: Repack JRE
run: bash "repackjre.sh" $GITHUB_WORKSPACE/pojav $GITHUB_WORKSPACE/pojav/jre8-pojav
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: jre8-pojav
path: pojav/jre8-pojav/*