Skip to content

Commit fcfbfdb

Browse files
authored
Release action: add job to build an armv6l wheel (fix #64) (#68)
1 parent c381dd0 commit fcfbfdb

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

.github/workflows/release.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,3 +112,35 @@ jobs:
112112
with:
113113
name: wheels
114114
path: dist
115+
116+
linux-armv6:
117+
runs-on: macos-latest
118+
steps:
119+
- uses: actions/checkout@v2
120+
- uses: actions/setup-python@v2
121+
with:
122+
python-version: ${{ env.PYTHON_VERSION }}
123+
- name: Install Rust toolchain
124+
uses: actions-rs/toolchain@v1
125+
with:
126+
toolchain: stable
127+
profile: minimal
128+
target: arm-unknown-linux-gnueabihf
129+
default: true
130+
- name: install cross toolchain
131+
run: |
132+
brew tap messense/macos-cross-toolchains
133+
brew install arm-unknown-linux-gnueabihf
134+
135+
export CC_arm_unknown_linux_gnueabihf=arm-unknown-linux-gnueabihf-gcc
136+
export CXX_arm_unknown_linux_gnueabihf=arm-unknown-linux-gnueabihf-g++
137+
export AR_arm_unknown_linux_gnueabihf=arm-unknown-linux-gnueabihf-ar
138+
export CARGO_TARGET_ARM_UNKNOWN_LINUX_GNUEABIHF_LINKER=arm-unknown-linux-gnueabihf-gcc
139+
140+
pip3 install maturin
141+
maturin build --release --target arm-unknown-linux-gnueabihf --out dist
142+
- name: Upload wheels
143+
uses: actions/upload-artifact@v2
144+
with:
145+
name: wheels
146+
path: dist

0 commit comments

Comments
 (0)