Skip to content

Commit

Permalink
Use musl for system test builds (#2370)
Browse files Browse the repository at this point in the history
  • Loading branch information
zanieb authored Mar 12, 2024
1 parent 7cb0168 commit 96290bf
Showing 1 changed file with 10 additions and 31 deletions.
41 changes: 10 additions & 31 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -138,41 +138,20 @@ jobs:

- uses: rui314/setup-mold@v1

- uses: Swatinem/rust-cache@v2
- name: "Build"
run: cargo build

- name: "Upload binary"
uses: actions/upload-artifact@v4
with:
name: uv-linux-${{ github.sha }}
path: ./target/debug/uv
retention-days: 1

build-binary-debian:
runs-on:
labels: ubuntu-latest-large
container: debian:bullseye
name: "build binary | debian"
steps:
- uses: actions/checkout@v4

- name: "Install Rust toolchain"
- name: "Setup musl"
run: |
apt-get update
apt-get install -y curl build-essential cmake
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
echo "PATH=$PATH:$HOME/.cargo/bin" >> "$GITHUB_ENV"
sudo apt-get install musl-tools
rustup target add x86_64-unknown-linux-musl
- uses: Swatinem/rust-cache@v2
- name: "Build"
run: cargo build
run: cargo build --target x86_64-unknown-linux-musl

- name: "Upload binary"
uses: actions/upload-artifact@v4
with:
name: uv-debian-${{ github.sha }}
path: ./target/debug/uv
name: uv-linux-${{ github.sha }}
path: ./target/x86_64-unknown-linux-musl/debug/uv
retention-days: 1

build-binary-macos-aarch64:
Expand Down Expand Up @@ -216,7 +195,7 @@ jobs:
retention-days: 1

system-test-debian:
needs: build-binary-debian
needs: build-binary-linux
name: "check system | python on debian"
runs-on: ubuntu-latest
container: debian:bullseye
Expand All @@ -229,7 +208,7 @@ jobs:
- name: "Download binary"
uses: actions/download-artifact@v4
with:
name: uv-debian-${{ github.sha }}
name: uv-linux-${{ github.sha }}

- name: "Prepare binary"
run: chmod +x ./uv
Expand Down Expand Up @@ -291,7 +270,7 @@ jobs:
run: pypy scripts/check_system_python.py --uv ./uv

system-test-pyston:
needs: build-binary-debian
needs: build-binary-linux
name: "check system | pyston"
runs-on: ubuntu-latest
container: pyston/pyston:2.3.5
Expand All @@ -301,7 +280,7 @@ jobs:
- name: "Download binary"
uses: actions/download-artifact@v4
with:
name: uv-debian-${{ github.sha }}
name: uv-linux-${{ github.sha }}

- name: "Prepare binary"
run: chmod +x ./uv
Expand Down

0 comments on commit 96290bf

Please sign in to comment.