Skip to content

Commit

Permalink
Fix missing Rust toolchain in linux-armv6 build (#117)
Browse files Browse the repository at this point in the history
  • Loading branch information
fuzzypixelz authored Dec 7, 2023
1 parent 626e82d commit b0df4ca
Showing 1 changed file with 17 additions and 11 deletions.
28 changes: 17 additions & 11 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,11 @@ jobs:
macos:
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Install Rust toolchain
run: rustup show
run: |
rustup set profile minimal
rustup show
- name: Build wheels - x86_64
uses: messense/maturin-action@v1
with:
Expand All @@ -24,7 +26,7 @@ jobs:
with:
args: --release --universal2 --out dist
- name: Upload wheels
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: wheels
path: dist
Expand All @@ -36,16 +38,18 @@ jobs:
target: [x64]
# target: [x64, x86] NOTE: x86 deactivated because of strange error: failed to run custom build command for `pyo3-ffi v0.17.1`
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Install Rust toolchain
run: rustup show
run: |
rustup set profile minimal
rustup show
- name: Build wheels
uses: messense/maturin-action@v1
with:
target: ${{ matrix.target }}
args: --release --out dist
- name: Upload wheels
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: wheels
path: dist
Expand All @@ -56,25 +60,27 @@ jobs:
matrix:
target: [x86_64, i686, aarch64, armv7]
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Build wheels
uses: messense/maturin-action@v1
with:
target: ${{ matrix.target }}
manylinux: auto
args: --release --out dist
- name: Upload wheels
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: wheels
path: dist

linux-armv6:
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Install Rust toolchain
run: rustup show
run: |
rustup set profile minimal
rustup target add arm-unknown-linux-gnueabihf
- name: install cross toolchain
run: |
brew tap messense/macos-cross-toolchains
Expand All @@ -88,7 +94,7 @@ jobs:
pip3 install maturin
maturin build --release --target arm-unknown-linux-gnueabihf --out dist
- name: Upload wheels
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: wheels
path: dist
Expand Down

0 comments on commit b0df4ca

Please sign in to comment.