Skip to content
This repository has been archived by the owner on Jan 8, 2024. It is now read-only.

Remove rustup script #144

Draft
wants to merge 12 commits into
base: base
Choose a base branch
from
14 changes: 11 additions & 3 deletions .github/workflows/build-arm64-wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ on:
branches:
- '**'

env:
IMAGE_REGISTRY: ghcr.io/chia-network/build-images

jobs:
build_wheels:
name: ARM64 Python Wheels on ubuntu-latest
Expand All @@ -32,15 +35,20 @@ jobs:
with:
platforms: arm64

- name: Login to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ github.token }}

- name: Build Python wheels
run: |
podman run --rm=true \
-v ${{ github.workspace }}:/ws:rw --workdir=/ws \
quay.io/pypa/manylinux2014_aarch64 \
${{ env.IMAGE_REGISTRY }}/centos-pypa-rust-aarch64:latest \
bash -exc '\
echo $PATH && \
curl -L https://sh.rustup.rs > rustup-init.sh && \
sh rustup-init.sh -y && \
yum -y install openssl-devel && \
source $HOME/.cargo/env && \
rustup target add aarch64-unknown-linux-musl && \
Expand Down
5 changes: 0 additions & 5 deletions .github/workflows/build-m1-wheel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,6 @@ jobs:
with:
fetch-depth: 0

- name: Set up rust
run: |
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs > rust.sh
arch -arm64 sh rust.sh -y

- name: Build m1 wheels
run: |
arch -arm64 python3 -m venv venv
Expand Down