From bee80bd34eaa23ed4c0db751388be84c766a1b7d Mon Sep 17 00:00:00 2001 From: "w.pomp" Date: Thu, 1 Oct 2026 19:35:20 +0200 Subject: [PATCH] - workflow fix --- .github/workflows/publish_pypi.yml | 14 ++++++++++---- .gitignore | 1 + 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/.github/workflows/publish_pypi.yml b/.github/workflows/publish_pypi.yml index 52a71cf..304a0df 100644 --- a/.github/workflows/publish_pypi.yml +++ b/.github/workflows/publish_pypi.yml @@ -11,6 +11,8 @@ jobs: runs-on: ubuntu-latest env: CARGO_HOME: ${{ github.workspace }}/.cargo + RUSTUP_HOME: ${{ github.workspace }}/.rustup + RUSTUP_TOOLCHAIN: stable steps: - uses: actions/checkout@v6 - uses: actions/setup-python@v5 @@ -40,11 +42,11 @@ jobs: - name: Install Rust run: | export PATH="$CARGO_HOME/bin:$PATH" - if ! command -v rustc >/dev/null 2>&1; then + if ! command -v rustup >/dev/null 2>&1; then curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y - else - rustup update fi + rustup toolchain install stable --profile minimal + rustup default stable echo "$CARGO_HOME/bin" >> "$GITHUB_PATH" cargo --version shell: bash @@ -78,7 +80,11 @@ jobs: - name: Build wheels run: | export PATH="$HOME/.osxcross/bin:$PATH" - rustup default stable + echo "HOME=$HOME CARGO_HOME=$CARGO_HOME RUSTUP_HOME=$RUSTUP_HOME" + command -v rustup + command -v cargo + rustup show + cargo --version rm -rf dist maturin sdist --out dist -m ome-metadata/Cargo.toml diff --git a/.gitignore b/.gitignore index 944793a..f185ef6 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,6 @@ /target /.cargo/ +/.rustup/ # Byte-compiled / optimized / DLL files __pycache__/