Fixup release workflow #75
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 | |
| arch: amd64 | |
| runner: ubuntu-24.04 | |
| service: builder | |
| - platform: linux-arm64 | |
| arch: arm64 | |
| runner: ubuntu-24.04-arm | |
| service: builder-arm64 | |
| runs-on: ${{ matrix.runner }} | |
| permissions: | |
| packages: write | |
| 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: 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 |