Skip to content

Commit f7dd611

Browse files
authored
.github/workflows: Add cross compilation step (#39)
Signed-off-by: Max Inden <mail@max-inden.de>
1 parent 21ad911 commit f7dd611

1 file changed

Lines changed: 21 additions & 0 deletions

File tree

.github/workflows/rust.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,3 +136,24 @@ jobs:
136136
with:
137137
command: doc
138138
args: --verbose --workspace --no-deps --document-private-items
139+
140+
cross-compile:
141+
name: Cross compile
142+
runs-on: ubuntu-latest
143+
strategy:
144+
matrix:
145+
target:
146+
- armv7-unknown-linux-gnueabihf
147+
- powerpc64-unknown-linux-gnu
148+
steps:
149+
- uses: actions/checkout@v2
150+
- uses: actions-rs/toolchain@v1
151+
with:
152+
toolchain: stable
153+
target: ${{ matrix.target }}
154+
override: true
155+
- uses: actions-rs/cargo@v1
156+
with:
157+
use-cross: true
158+
command: build
159+
args: --release --target=${{ matrix.target }}

0 commit comments

Comments
 (0)