Skip to content

Commit

Permalink
More updates
Browse files Browse the repository at this point in the history
  • Loading branch information
Rigidity committed Aug 26, 2024
1 parent d6b17d5 commit b1e2ec4
Showing 1 changed file with 8 additions and 36 deletions.
44 changes: 8 additions & 36 deletions .github/workflows/build-wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -126,27 +126,19 @@ jobs:
- name: Clean workspace
uses: Chia-Network/actions/clean-workspace@main

- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/checkout@v4

- uses: Chia-Network/actions/setup-python@main
with:
python-version: ${{ matrix.python.major-dot-minor }}

- name: Update pip
run: |
python -m pip install --upgrade pip
- name: Set up rust
- name: Set up Rust
uses: dtolnay/rust-toolchain@stable

- name: Install dependencies
run: |
python -m pip install maturin
run: pip install maturin

- name: Build MacOs with maturin on Python ${{ matrix.python }}
- name: Build MacOS wheel ${{ matrix.python }}
if: matrix.os.matrix == 'macos'
env:
MACOSX_DEPLOYMENT_TARGET: "11.0"
Expand All @@ -155,7 +147,7 @@ jobs:
. venv/bin/activate
maturin build -i python --release -m wheel/Cargo.toml
- name: Build Linux with maturin on Python ${{ matrix.python }}
- name: Build Linux wheel ${{ matrix.python }}
if: matrix.os.matrix == 'ubuntu'
run: |
docker run --rm --pull always \
Expand All @@ -172,7 +164,7 @@ jobs:
CC=gcc maturin build --release --manylinux ${{ matrix.python.by-arch[matrix.arch.matrix].manylinux-version }} -m wheel/Cargo.toml \
'
- name: Build Windows with maturin on Python ${{ matrix.python }}
- name: Build Windows wheel ${{ matrix.python }}
if: matrix.os.matrix == 'windows'
env:
CC: "clang"
Expand All @@ -189,7 +181,7 @@ jobs:
with:
directories: ${{ steps.create-venv.outputs.activate-venv-directories }}

- name: Install chia_rs wheel
- name: Install wheel
run: |
pip install --no-index --find-links target/wheels/ chia_rs
Expand All @@ -204,10 +196,7 @@ jobs:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/checkout@v4

- uses: Chia-Network/actions/setup-python@main

Expand All @@ -216,23 +205,6 @@ jobs:
python wheel/generate_type_stubs.py
git diff --exit-code
build_tools:
name: build chia-tools
runs-on: ubuntu-latest
steps:
- name: Clean workspace
uses: Chia-Network/actions/clean-workspace@main

- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: cargo build
run: |
cd crates/chia-tools
cargo build
build_sdist:
name: Source dist (${{ matrix.os.name }} ${{ matrix.python.major-dot-minor }} ${{ matrix.arch.name }})
runs-on: ${{ matrix.os.runs-on[matrix.arch.matrix] }}
Expand Down

0 comments on commit b1e2ec4

Please sign in to comment.