Skip to content

Commit 174e674

Browse files
committed
Fix build?
1 parent 27633d9 commit 174e674

4 files changed

Lines changed: 35 additions & 15 deletions

File tree

.github/workflows/release_flow.yml

Lines changed: 20 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,14 @@ on:
44
release:
55
types:
66
- created
7+
push:
78

89
permissions:
910
contents: read
1011

1112
jobs:
1213
build_for_pypi:
14+
if: false
1315
permissions:
1416
contents: read
1517
runs-on: ubuntu-latest
@@ -33,6 +35,7 @@ jobs:
3335
path: ./codecov-cli/dist/*
3436

3537
publish_to_pypi:
38+
if: false
3639
needs: build_for_pypi
3740
permissions:
3841
id-token: write # This is required for OIDC
@@ -122,20 +125,23 @@ jobs:
122125
overwrite: true
123126

124127
build_assets_alpine_arm:
125-
name: Build assets - Alpine and ARM
128+
name: Build Linux assets - glibc and musl, ARM and x86
126129
runs-on: ubuntu-latest
127130
strategy:
128131
matrix:
129132
include:
130-
- distro: "python:3.11-alpine"
133+
- distro: "alpine:3.21"
131134
arch: arm64
132135
distro_name: alpine
133-
- distro: "python:3.11-alpine"
136+
- distro: "alpine:3.21"
134137
arch: x86_64
135138
distro_name: alpine
136-
- distro: "python:3.11-bullseye"
139+
- distro: "ubuntu:20.04"
137140
arch: arm64
138141
distro_name: linux
142+
- distro: "ubuntu:20.04" # 20.04 needed for glibc 2.31 compatibility
143+
distro_name: linux
144+
arch: x86_64
139145

140146
steps:
141147
- uses: actions/checkout@v4
@@ -153,16 +159,24 @@ jobs:
153159
-w ${{ github.workspace }} \
154160
--platform linux/${{ matrix.arch }} \
155161
${{ matrix.distro }} \
156-
./codecov-cli/scripts/build_${{ matrix.distro_name }}_arm.sh ${{ matrix.distro_name }}_${{ matrix.arch }}
162+
./codecov-cli/scripts/build_${{ matrix.distro_name }}.sh ${{ matrix.distro_name }}_${{ matrix.arch }}
163+
164+
- name: Upload build artifacts
165+
uses: actions/upload-artifact@v4
166+
with:
167+
name: codecovcli_${{ matrix.distro_name }}_${{ matrix.arch }}
168+
path: ./codecov-cli/dist/codecovcli_*
157169

158170
- name: Get auth token
171+
if: false
159172
id: token
160173
uses: actions/create-github-app-token@df432ceedc7162793a195dd1713ff69aefc7379e # v2.0.6
161174
with:
162175
app-id: ${{ vars.SENTRY_RELEASE_BOT_CLIENT_ID }}
163176
private-key: ${{ secrets.SENTRY_RELEASE_BOT_PRIVATE_KEY }}
164177

165178
- name: Upload Release Asset
179+
if: false
166180
id: upload-release-asset
167181
uses: svenstaro/upload-release-action@v2
168182
with:
@@ -173,6 +187,7 @@ jobs:
173187
overwrite: true
174188

175189
publish_release:
190+
if: false
176191
name: Publish release
177192
needs: [build_assets, build_assets_alpine_arm, build_for_pypi, publish_to_pypi]
178193
runs-on: ubuntu-latest
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
#!/bin/sh
2-
apk add build-base
2+
apk add build-base python3 py3-pip
33
cd codecov-cli
44
pip install uv
55
uv sync
66
uv add --dev pyinstaller
77
uv run pyinstaller -F codecov_cli/main.py
8-
cp ./dist/main ./dist/codecovcli_$1
8+
mv ./dist/main ./dist/codecovcli_$1

codecov-cli/scripts/build_linux.sh

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#!/bin/sh
2+
apt install build-essential python3 python3-pip
3+
cd codecov-cli
4+
pip install uv
5+
uv sync
6+
uv add --dev pyinstaller
7+
uv run pyinstaller -F codecov_cli/main.py
8+
mv ./dist/main ./dist/codecovcli_$1
9+
10+
# linux binary should be just codecovcli_linux
11+
if [ $1 = "linux_x86_64" ]; then
12+
mv ./dist/codecovcli_$1 ./dist/codecovcli_linux
13+
fi

codecov-cli/scripts/build_linux_arm.sh

Lines changed: 0 additions & 8 deletions
This file was deleted.

0 commit comments

Comments
 (0)