diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 660a3ce..93429f9 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -80,8 +80,10 @@ jobs: executable: StreamingCommunity_linux_arm64 separator: ':' architecture: arm64 + container: 'arm64v8/python:3.12-slim' runs-on: ${{ matrix.os }} + container: ${{ matrix.container }} defaults: run: shell: bash @@ -99,16 +101,28 @@ jobs: - name: Get the latest tag id: get_latest_tag shell: pwsh + if: ${{ !matrix.container }} run: | $latestTag = git describe --tags --abbrev=0 echo "latest_tag=$latestTag" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append + - name: Get the latest tag (container) + if: ${{ matrix.container }} + run: echo "latest_tag=$(git describe --tags --abbrev=0)" >> $GITHUB_ENV + - name: Set up Python + if: ${{ !matrix.container }} uses: actions/setup-python@v4 with: python-version: '3.12' architecture: ${{ matrix.architecture || 'x64' }} + - name: Install system dependencies (ARM64) + if: ${{ matrix.architecture == 'arm64' }} + run: | + apt-get update + apt-get install -y build-essential zlib1g-dev libffi-dev + - name: Install dependencies run: | python -m pip install --upgrade pip @@ -149,9 +163,10 @@ jobs: path: dist/${{ matrix.executable }} - name: Create or update release + if: startsWith(github.ref, 'refs/tags/') uses: softprops/action-gh-release@v1 with: - tag_name: ${{ env.latest_tag }} + tag_name: ${{ github.ref_name }} files: dist/${{ matrix.executable }} env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file