Skip to content

Commit 95688b8

Browse files
committed
[ci] build x86 and x64 apps on ubuntu 16.04 the same as arm64
Signed-off-by: Vitalii Koshura <lestat.de.lionkur@gmail.com>
1 parent f0897e9 commit 95688b8

File tree

1 file changed

+14
-59
lines changed

1 file changed

+14
-59
lines changed

.github/workflows/linux.yml

+14-59
Original file line numberDiff line numberDiff line change
@@ -207,15 +207,14 @@ jobs:
207207
name: ${{ matrix.type }}-build-release
208208
runs-on: ubuntu-latest
209209
container:
210-
image: ubuntu:13.04
210+
image: ubuntu:16.04
211211
strategy:
212212
matrix:
213-
type: [apps, apps-x86]
213+
type: [apps, apps-x86, apps-arm64]
214214
fail-fast: false
215215
steps:
216216
- name: Install dependencies
217217
run: |
218-
sed -i -e 's/archive.ubuntu.com\|security.ubuntu.com/old-releases.ubuntu.com/g' /etc/apt/sources.list
219218
apt-get -qq update
220219
apt-get install -y make build-essential m4 pkg-config autoconf libtool git libcurl4-openssl-dev p7zip-full python3
221220
@@ -224,13 +223,19 @@ jobs:
224223
run: |
225224
apt-get install -y libcurl4-openssl-dev
226225
227-
- uses: actions/checkout@v1 # ignore-check
226+
- name: Install dependencies for arm64
227+
if: success() && matrix.type == 'apps-arm64'
228+
run: |
229+
apt-get install -y gcc-aarch64-linux-gnu g++-aarch64-linux-gnu binutils-aarch64-linux-gnu wget ca-certificates
230+
231+
- uses: actions/checkout@v3 # ignore-check
228232
with:
229233
fetch-depth: 2
230234

231-
- name: Remove pkg-config dependency
232-
run: |
233-
git apply remove-pkg-config.patch
235+
# - name: Remove pkg-config dependency
236+
# if: success() && matrix.type != 'apps-arm64'
237+
# run: |
238+
# git apply remove-pkg-config.patch
234239

235240
- name: Automake
236241
if: success()
@@ -263,58 +268,8 @@ jobs:
263268
./configure --enable-apps --enable-apps-vbox --disable-server --disable-client --disable-manager --host=i686-linux-gnu
264269
make -j $(nproc --all)
265270
266-
- name: Prepare logs on failure
267-
if: ${{ failure() }}
268-
run: python3 ./deploy/prepare_deployment.py logs
269-
270-
- name: Upload logs on failure
271-
if: ${{ failure() }}
272-
uses: actions/upload-artifact@v1 # ignore-check
273-
with:
274-
name: linux_release_logs_${{ matrix.type }}_${{ github.event.pull_request.head.sha }}
275-
path: deploy/logs.7z
276-
277-
- name: Prepare artifacts for deploy
278-
if: success()
279-
run: python3 ./deploy/prepare_deployment.py linux_apps
280-
281-
- name: Upload wrapper artifacts
282-
uses: actions/upload-artifact@v1 # ignore-check
283-
if: success()
284-
with:
285-
name: linux_release_${{ matrix.type }}_${{ github.event.pull_request.head.sha }}
286-
path: deploy/linux_apps.7z
287-
288-
build-release-arm64:
289-
name: ${{ matrix.type }}-build-release
290-
runs-on: ubuntu-latest
291-
container:
292-
image: ubuntu:16.04
293-
strategy:
294-
matrix:
295-
type: [apps-arm64]
296-
fail-fast: false
297-
steps:
298-
- name: Install dependencies
299-
run: |
300-
apt-get -qq update
301-
apt-get install -y make build-essential m4 pkg-config autoconf libtool git
302-
303-
- name: Install dependencies for arm64
304-
if: success()
305-
run: |
306-
apt-get install -y gcc-aarch64-linux-gnu g++-aarch64-linux-gnu binutils-aarch64-linux-gnu wget ca-certificates p7zip-full python3
307-
308-
- uses: actions/checkout@v3 # ignore-check
309-
with:
310-
fetch-depth: 2
311-
312-
- name: Automake
313-
if: success()
314-
run: ./_autosetup
315-
316-
- name: Build apps for arm64
317-
if: success()
271+
- name: Make arm64 apps
272+
if: success() && matrix.type == 'apps-arm64'
318273
run: |
319274
export CI=yes
320275
export RELEASE=yes

0 commit comments

Comments
 (0)