From 586f9e642fa21b880718f37bf973eb0861f58583 Mon Sep 17 00:00:00 2001 From: Ouziel Slama Date: Tue, 5 Mar 2024 11:56:04 +0100 Subject: [PATCH] github workflow --- .github/workflows/build_wheels.yaml | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build_wheels.yaml b/.github/workflows/build_wheels.yaml index e6f1ff360a..014dceef86 100644 --- a/.github/workflows/build_wheels.yaml +++ b/.github/workflows/build_wheels.yaml @@ -17,28 +17,33 @@ env: jobs: macos: - runs-on: macos-latest + runs-on: macos-latest #x86_64 steps: - uses: actions/checkout@v3 - uses: actions/setup-python@v4 with: python-version: ${{ env.PYTHON_VERSION }} - architecture: x64 + cache: 'pip' - name: Install Rust toolchain uses: actions-rs/toolchain@v1 with: toolchain: stable profile: minimal default: true - - name: Build wheels - x86_64 + - name: Build counterparty-rs uses: messense/maturin-action@v1 with: - target: x86_64 args: --release --out dist --sdist -m ${{ env.COUNTERPARTY_RS_DIR }}/Cargo.toml - maturin-version: "v0.14.3" + - name: Build counterparty-lib + run: | + python -m pip install --upgrade build + cd counterparty-lib && python -m build + - name: Build counterparty-cli + run: | + cd counterparty-cli && python -m build - name: Install built wheel - x86_64 run: | - pip install dist/counterparty_rs-*.whl --force-reinstall + pip install dist/*.whl --force-reinstall pip install pytest cd counterparty-rs && pytest -v - name: Upload wheels