Skip to content

Commit 4ce0f0c

Browse files
author
Martin Homuth-Rosemann
committed
ad linux arm64 build
Signed-off-by: Martin Homuth-Rosemann <[email protected]>
1 parent 16053ea commit 4ce0f0c

File tree

1 file changed

+73
-5
lines changed

1 file changed

+73
-5
lines changed

.github/workflows/build.yml

Lines changed: 73 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,9 @@ env:
3131

3232
jobs:
3333

34-
# ----------------------------
35-
# --- Linux (Ubuntu) steps ---
36-
# ----------------------------
34+
# ----------------------------------
35+
# --- Linux (Ubuntu) amd64 steps ---
36+
# ----------------------------------
3737
#
3838
linux-x86_64:
3939
runs-on: ubuntu-24.04
@@ -64,8 +64,10 @@ jobs:
6464
mkdir build
6565
sudo apt update
6666
# sudo apt -y upgrade
67-
sudo apt install g++ make cmake fakeroot rpm qt6-tools-dev libfftw3-dev binutils-dev \
68-
libusb-1.0-0-dev libqt6opengl6 mesa-common-dev libgl1-mesa-dev libgles2-mesa-dev qt6-base-dev
67+
sudo apt install g++ make cmake fakeroot rpm \
68+
libfftw3-dev binutils-dev libusb-1.0-0-dev libcups2-dev libxkbcommon-dev \
69+
libqt6core6t64 libqt6gui6 libqt6widgets6 libqt6printsupport6 \
70+
libqt6opengl6 libqt6openglwidgets6 qt6-tools-dev
6971
7072
- name: Ubuntu Build
7173
# GitHub hosts Linux runners on Standard_DS2_v2 virtual machines in Microsoft Azure:
@@ -95,6 +97,72 @@ jobs:
9597
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
9698

9799

100+
# ----------------------------------
101+
# --- Linux (Ubuntu) arm64 steps ---
102+
# ----------------------------------
103+
#
104+
linux-arm64
105+
runs-on: ubuntu-24.04
106+
steps:
107+
108+
# --- Clone the latest commit ---
109+
- name: Checkout
110+
uses: actions/checkout@v3
111+
with:
112+
fetch-tags: true
113+
submodules: recursive
114+
fetch-depth: 0
115+
116+
# --- Config git and get the version from "git describe" ---
117+
- name: Config Git
118+
id: config_git
119+
shell: bash
120+
run: |
121+
git config user.email "[email protected]"
122+
git config user.name "Ho-Ro"
123+
git fetch --tags --force || true
124+
git submodule update --init --recursive
125+
echo "git_describe=$(git describe)"
126+
echo "git_describe=$(git describe)" >> $GITHUB_OUTPUT
127+
128+
- name: Install Ubuntu Build Requirements
129+
run: |
130+
mkdir build
131+
sudo apt update
132+
# sudo apt -y upgrade
133+
sudo apt install g++ make cmake fakeroot rpm \
134+
libfftw3-dev binutils-dev libusb-1.0-0-dev libcups2-dev libxkbcommon-dev \
135+
libqt6core6t64 libqt6gui6 libqt6widgets6 libqt6printsupport6 \
136+
libqt6opengl6 libqt6openglwidgets6 qt6-tools-dev
137+
138+
- name: Ubuntu Build
139+
# GitHub hosts Linux runners on Standard_DS2_v2 virtual machines in Microsoft Azure:
140+
# 2-core CPU, 7 GB of RAM memory, 14 GB of SSD disk space
141+
working-directory: ${{github.workspace}}/build
142+
run: |
143+
cp ../CHANGELOG changelog
144+
cmake .. -DCMAKE_BUILD_TYPE=$BUILD_TYPE
145+
make -j8
146+
fakeroot make -j8 package
147+
ls -l packages
148+
149+
- name: Upload Ubuntu Artifacts
150+
# *.deb *.rpm *.tgz
151+
uses: actions/upload-artifact@v4
152+
with:
153+
name: openhantek_${{ steps.config_git.outputs.git_describe }}_linux_arm64
154+
path: ${{github.workspace}}/build/packages/*
155+
156+
- name: Upload Linux Release Assets
157+
if: startsWith(github.ref, 'refs/tags/')
158+
uses: softprops/action-gh-release@v1
159+
with:
160+
prerelease: true
161+
files: ./build/packages/*
162+
env:
163+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
164+
165+
98166
# -------------------------
99167
# --- macOS intel steps ---
100168
# -------------------------

0 commit comments

Comments
 (0)