- workflow fix
This commit is contained in:
1 parent
7af9cdb5a3
commit
bee80bd34e
2 files changed
+11
-4
No files matched your search
@@ -11,6 +11,8 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
env:
|
env:
|
||||||
CARGO_HOME: ${{ github.workspace }}/.cargo
|
CARGO_HOME: ${{ github.workspace }}/.cargo
|
||||||
|
RUSTUP_HOME: ${{ github.workspace }}/.rustup
|
||||||
|
RUSTUP_TOOLCHAIN: stable
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v6
|
- uses: actions/checkout@v6
|
||||||
- uses: actions/setup-python@v5
|
- uses: actions/setup-python@v5
|
||||||
@@ -40,11 +42,11 @@ jobs:
|
|||||||
- name: Install Rust
|
- name: Install Rust
|
||||||
run: |
|
run: |
|
||||||
export PATH="$CARGO_HOME/bin:$PATH"
|
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
|
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
|
||||||
else
|
|
||||||
rustup update
|
|
||||||
fi
|
fi
|
||||||
|
rustup toolchain install stable --profile minimal
|
||||||
|
rustup default stable
|
||||||
echo "$CARGO_HOME/bin" >> "$GITHUB_PATH"
|
echo "$CARGO_HOME/bin" >> "$GITHUB_PATH"
|
||||||
cargo --version
|
cargo --version
|
||||||
shell: bash
|
shell: bash
|
||||||
@@ -78,7 +80,11 @@ jobs:
|
|||||||
- name: Build wheels
|
- name: Build wheels
|
||||||
run: |
|
run: |
|
||||||
export PATH="$HOME/.osxcross/bin:$PATH"
|
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
|
rm -rf dist
|
||||||
maturin sdist --out dist -m ome-metadata/Cargo.toml
|
maturin sdist --out dist -m ome-metadata/Cargo.toml
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
/target
|
/target
|
||||||
/.cargo/
|
/.cargo/
|
||||||
|
/.rustup/
|
||||||
|
|
||||||
# Byte-compiled / optimized / DLL files
|
# Byte-compiled / optimized / DLL files
|
||||||
__pycache__/
|
__pycache__/
|
||||||
|
|||||||
Reference in new issue
Block a user