Skip to content

Commit 4db6fce

Browse files
build: add github workflow to build for linux aarch64
1 parent 4695de3 commit 4db6fce

1 file changed

Lines changed: 49 additions & 0 deletions

File tree

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
name: Linux Release Build AArch64
2+
3+
on: [ push, pull_request, workflow_dispatch ]
4+
5+
jobs:
6+
build_linux:
7+
name: Linux Release Build AArch64
8+
runs-on: ubuntu-24.04-arm
9+
container: ubuntu:20.04
10+
steps:
11+
- name: Install dependencies for Linux
12+
env:
13+
DEBIAN_FRONTEND: noninteractive
14+
run: |
15+
apt-get -qq update
16+
apt-get install -y -qq autopoint automake autoconf intltool libc6-dev yasm libglib2.0-bin perl wget zip bzip2 make libtool pkg-config fakeroot clang openssh-client rsync libglib2.0-dev-bin git
17+
- name: Checkout for Linux
18+
uses: actions/checkout@v4
19+
with:
20+
submodules: true
21+
# - name: Fetch static-deps
22+
# run: ci_scripts/download-linux-static-deps.sh
23+
- name: Fetch static-deps
24+
uses: dawidd6/action-download-artifact@v6
25+
with:
26+
github_token: ${{ secrets.GITHUB_TOKEN }}
27+
repo: DeaDBeeF-Player/deadbeef-staticdeps
28+
workflow: linuxbuild-aarch64.yml
29+
name: ddb-static-deps-aarch64-latest.tar.bz2
30+
branch: master
31+
- name: Unpack static-deps
32+
run: |
33+
mkdir -p static-deps
34+
tar jxf ddb-static-deps-aarch64-latest.tar.bz2 -C static-deps
35+
- name: Run Tests
36+
run: scripts/test.sh
37+
- name: Build for Linux
38+
run: BUILD_OS_NAME=linux ci_scripts/build.sh
39+
- name: Upload for Linux
40+
env:
41+
gh_ed25519_key: ${{ secrets.GH_ENCRYPTED_ED25519_KEY }}
42+
gh_ed25519_iv: ${{ secrets.GH_ENCRYPTED_ED25519_IV }}
43+
run: BUILD_OS_NAME=linux ci_scripts/upload.sh
44+
- name: Upload artifact
45+
uses: actions/upload-artifact@v4
46+
with:
47+
name: linux
48+
path: portable_out/build/*.tar.bz2
49+

0 commit comments

Comments
 (0)