Skip to content

Embtom/feature/build #43

Embtom/feature/build

Embtom/feature/build #43

Workflow file for this run

name: ci-build
on:
push:
branches: [ embtom/main ]
pull_request:
branches: [ embtom/main ]
workflow_dispatch:
jobs:
build:
strategy:
matrix:
include:
- platform: linux-amd64
runner: ubuntu-24.04
service: builder
- platform: linux-arm64
runner: ubuntu-24.04-arm
service: builder-arm64
runs-on: ${{ matrix.runner }}
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Get Debian version
id: changelog
uses: ./.github/actions/get-deb-version
with:
path: "."
- name: Show parsed version
run: echo Version=${{ steps.changelog.outputs.version }}
# - name: Set up cache for Podman
# uses: actions/cache@v3
# with:
# path: ~/.local/share/containers/storage
# key: podman-cache-${{ matrix.platform }}-${{ hashFiles('Dockerfile') }}
# restore-keys: |
# podman-cache-${{ matrix.platform }}-
- name: Prepare build environment
uses: ./.github/actions/prepare-builder
with:
service: ${{ matrix.service }}
- name: Build wheel
uses: ./.github/actions/run-build
with:
service: ${{ matrix.service }}
build-target: all
- name: Build Debian package
uses: ./.github/actions/run-build
with:
service: ${{ matrix.service }}
build-target: build-deb
- name: Upload artifacts
if: success()
uses: actions/upload-artifact@v4
with:
name: build-${{ matrix.platform }}-${{ steps.changelog.outputs.version }}
path: |
build/*.deb
build/*.changes
build/*.buildinfo
dist/*.whl
retention-days: 10