Skip to content

Commit

Permalink
ci: use github arm runners
Browse files Browse the repository at this point in the history
  • Loading branch information
sithlord48 committed Jan 28, 2025
1 parent 5812af1 commit 537e0d8
Showing 1 changed file with 20 additions and 15 deletions.
35 changes: 20 additions & 15 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,36 +36,45 @@ jobs:
args: spdx

deb_builder:
name: debianBuilder-${{matrix.config.name}}
name: debianBuilder-${{matrix.config.name}}-${{matrix.config.debArch}}
runs-on: ${{matrix.config.os}}
needs: precheck
strategy:
fail-fast: false
matrix:
config:
- {
name: jammy
, os: ubuntu-22.04
, debArch: amd64
}
- name: jammy
os: ubuntu-22.04
debArch: amd64

- name: jammy
os: ubuntu-22.04-arm
debArch: arm64

steps:
- uses: sithlord48/[email protected]
- run: git fetch --tags --force
- name: Install Dependencies
run: |
sudo apt-get update -y > /dev/null
sudo apt-get upgrade -y > /dev/null
sudo apt-get install -qqq ${{env.debianRequirments}} > /dev/null
sudo apt search qt | grep installed
pip install --user ntia-conformance-checker
pip install --user spdx-tools
- name: Build
run: |
${{env.cmakeConfigure}} -DCMAKE_INSTALL_PREFIX=/usr -DCPACK_DEBIAN_PACKAGE_RELEASE=${{github.run_attempt}}~${{matrix.config.name}} -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++
cmake --build build
${{env.cmakeConfigure}} -DCMAKE_INSTALL_PREFIX=/usr -DCPACK_PACKAGE_VERSION="${{ needs.precheck.outputs.version }}" -DCPACK_DEBIAN_PACKAGE_RELEASE=${{github.run_attempt}}~${{matrix.config.name}} -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++
cmake --build build --target package
mv build/ff7tk[-_]*.* .
cpack -G DEB -C ${{env.BuildType}} --config build/CPackConfig.cmake
- name: Upload
uses: actions/upload-artifact@v4
with:
name: debian-artifacts-${{matrix.config.name}}
path: libff7tk*.deb
name: debian-artifacts-${{matrix.config.name}}-${{matrix.config.debArch}}
path: |
ff7tk[-_]*.*
libff7tk*.deb
main_build:
name: ${{ matrix.config.name }}
runs-on: ${{ matrix.config.os }}
Expand Down Expand Up @@ -190,10 +199,6 @@ jobs:
fail-fast: false
matrix:
config:
- {
name: "jammy"
, arch: aarch64, distro: ubuntu22.04, debArch : arm64
}
- {
name: "jammy"
, arch: armv7, distro: ubuntu22.04, debArch: armhf
Expand Down

0 comments on commit 537e0d8

Please sign in to comment.