Embtom/feature/build #39
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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: Prepare build environment | |
| uses: ./.github/actions/prepare-builder | |
| with: | |
| service: ${{ matrix.service }} | |
| - name: Run wheel build | |
| uses: ./.github/actions/run-build | |
| with: | |
| service: ${{ matrix.service }} | |
| build-target: all | |
| - name: Run debian package build | |
| uses: ./.github/actions/run-build | |
| with: | |
| service: ${{ matrix.service }} | |
| build-target: build-deb | |
| - name: Upload build artifacts | |
| if: success() | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: python-apt-${{ steps.changelog.outputs.version }}-${{ matrix.platform }} | |
| path: | | |
| build/*.deb | |
| build/*.changes | |
| build/*.buildinfo | |
| dist/*.whl | |
| retention-days: 10 | |