|
17 | 17 | matrix: |
18 | 18 | include: |
19 | 19 | - os: macos-latest |
20 | | - env: |
21 | | - CFLAGS: -arch arm64 -arch x86_64 |
22 | 20 | TARGET: macos |
23 | 21 | CMD_REQS: > |
24 | 22 | mkdir -p pip-packages && cd pip-packages && pip wheel --no-cache-dir --no-binary tree_sitter,ijson,charset_normalizer,PyYAML .. && cd .. && |
|
83 | 81 | tag: ${{ github.ref }} |
84 | 82 | overwrite: true |
85 | 83 |
|
| 84 | + build_assets_alpine_arm: |
| 85 | + name: Build assets - Alpine and ARM |
| 86 | + runs-on: ubuntu-latest |
| 87 | + strategy: |
| 88 | + matrix: |
| 89 | + include: |
| 90 | + - distro: "python:3.11-alpine3.18" |
| 91 | + arch: arm64 |
| 92 | + distro_name: alpine |
| 93 | + - distro: "python:3.11-alpine3.18" |
| 94 | + arch: x86_64 |
| 95 | + distro_name: alpine |
| 96 | + - distro: "python:3.11" |
| 97 | + arch: arm64 |
| 98 | + distro_name: linux |
| 99 | + |
| 100 | + steps: |
| 101 | + - uses: actions/checkout@v4 |
| 102 | + with: |
| 103 | + submodules: true |
| 104 | + - name: Set up QEMU |
| 105 | + uses: docker/setup-qemu-action@v1 |
| 106 | + with: |
| 107 | + platforms: ${{ matrix.arch }} |
| 108 | + - name: Run in Docker |
| 109 | + run: | |
| 110 | + docker run \ |
| 111 | + --rm \ |
| 112 | + -v $(pwd):/${{ github.workspace }} \ |
| 113 | + -w ${{ github.workspace }} \ |
| 114 | + --platform linux/${{ matrix.arch }} \ |
| 115 | + ${{ matrix.distro }} \ |
| 116 | + ./scripts/build_${{ matrix.distro_name }}_arm.sh ${{ matrix.distro_name }}_${{ matrix.arch }} |
| 117 | + - name: Upload a Build Artifact |
| 118 | + |
| 119 | + if: inputs.release == false |
| 120 | + with: |
| 121 | + path: ./dist/codecovcli_${{ matrix.distro_name }}_${{ matrix.arch }} |
| 122 | + - name: Upload Release Asset |
| 123 | + if: inputs.release == true |
| 124 | + id: upload-release-asset |
| 125 | + uses: svenstaro/upload-release-action@v2 |
| 126 | + with: |
| 127 | + repo_token: ${{ secrets.GITHUB_TOKEN }} |
| 128 | + file: ./dist/codecovcli_${{ matrix.distro_name }}_${{ matrix.arch }} |
| 129 | + asset_name: codecovcli_${{ matrix.distro_name }}_${{ matrix.arch }} |
| 130 | + tag: ${{ github.ref }} |
| 131 | + overwrite: true |
| 132 | + |
86 | 133 |
|
87 | 134 |
|
0 commit comments