test #25
This file contains 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
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions | |
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions | |
name: Build-and-Release | |
on: | |
push: | |
jobs: | |
build_assets_alpine_arm: | |
name: Build assets - Alpine and ARM | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: true | |
matrix: | |
arch: [arm64, x86_64] | |
distro: ["python:3.11-alpine3.18", "python:3.11"] | |
include: | |
- distro: "python:3.11-alpine3.18" | |
arch: arm64 | |
append: alpine | |
- distro: "python:3.11-alpine3.18" | |
arch: x86_64 | |
append: alpine | |
- distro: "python:3.11" | |
arch: arm64 | |
append: linux | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: true | |
- name: Set up QEMU | |
uses: docker/setup-qemu-action@v1 | |
with: | |
platforms: ${{ matrix.arch }} | |
- name: Run in Docker | |
run: | | |
docker run \ | |
--rm \ | |
-v $(pwd):/${{ github.workspace }} \ | |
-w ${{ github.workspace }} \ | |
--platform linux/${{ matrix.arch }} \ | |
${{ matrix.distro }} \ | |
./scripts/build_${{ matrix.append }}_arm.sh ${{ matrix.append }}_${{ matrix.arch }} | |
- name: Upload a Build Artifact | |
uses: actions/[email protected] | |
if: inputs.release == false | |
with: | |
path: ./dist/codecovcli_${{ matrix.append }}_${{ matrix.arch }} |