mirror of
https://git.code.sf.net/p/zint/code
synced 2026-07-30 18:09:50 +00:00
CI: Add ubuntu-arm64 (ticket #355)
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
name: CI
|
name: CI
|
||||||
|
|
||||||
# .github/workflows/ci.yml 2026-04-18
|
# .github/workflows/ci.yml 2026-07-01
|
||||||
# Controls when the action will run. Triggers the workflow on push or pull request
|
# Controls when the action will run. Triggers the workflow on push or pull request
|
||||||
# events but only for the master branch (or test branch github_ci push)
|
# events but only for the master branch (or test branch github_ci push)
|
||||||
on:
|
on:
|
||||||
@@ -101,6 +101,47 @@ jobs:
|
|||||||
shell: bash
|
shell: bash
|
||||||
run: LD_LIBRARY_PATH=$LD_LIBRARY_PATH:"$(pwd)/backend" PATH=$PATH:"$(pwd)/frontend" QT_QPA_PLATFORM=offscreen ctest -V -C $BUILD_TYPE
|
run: LD_LIBRARY_PATH=$LD_LIBRARY_PATH:"$(pwd)/backend" PATH=$PATH:"$(pwd)/frontend" QT_QPA_PLATFORM=offscreen ctest -V -C $BUILD_TYPE
|
||||||
|
|
||||||
|
build-ubuntu-arm64:
|
||||||
|
runs-on: ubuntu-24.04-arm
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v6
|
||||||
|
|
||||||
|
- name: Install libpng-dev
|
||||||
|
run: sudo apt-get install libpng-dev
|
||||||
|
|
||||||
|
- name: Install GS1 Syntax Engine
|
||||||
|
run: git clone --depth=1 https://github.com/gs1/gs1-syntax-engine && cd gs1-syntax-engine/src/c-lib && make lib && sudo make install
|
||||||
|
|
||||||
|
- name: Install locale
|
||||||
|
shell: bash
|
||||||
|
run: sudo locale-gen de_DE.UTF-8 && sudo update-locale
|
||||||
|
|
||||||
|
- name: Install Qt6
|
||||||
|
uses: jurplel/install-qt-action@v4
|
||||||
|
with:
|
||||||
|
version: 6.11.*
|
||||||
|
dir: .
|
||||||
|
|
||||||
|
- name: Create Build Environment
|
||||||
|
shell: bash
|
||||||
|
run: git config --global --add safe.directory ${GITHUB_WORKSPACE} && cmake -E make_directory build
|
||||||
|
|
||||||
|
- name: Configure CMake
|
||||||
|
working-directory: build
|
||||||
|
shell: bash
|
||||||
|
run: CMAKE_PREFIX_PATH=$QT_ROOT_DIR cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DZINT_TEST=ON -DZINT_STATIC=ON
|
||||||
|
|
||||||
|
- name: Build
|
||||||
|
working-directory: build
|
||||||
|
shell: bash
|
||||||
|
run: cmake --build . -j8 --config $BUILD_TYPE
|
||||||
|
|
||||||
|
- name: Test
|
||||||
|
working-directory: build
|
||||||
|
shell: bash
|
||||||
|
run: LD_LIBRARY_PATH=$LD_LIBRARY_PATH:"$(pwd)/backend" PATH=$PATH:"$(pwd)/frontend" QT_QPA_PLATFORM=offscreen ctest -V -C $BUILD_TYPE
|
||||||
|
|
||||||
build-windows-32bit:
|
build-windows-32bit:
|
||||||
runs-on: windows-latest
|
runs-on: windows-latest
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user