Skip to content

Commit d9fcf22

Browse files
authored
Add GitHub action for cross-platform testing
1 parent d03f029 commit d9fcf22

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

.github/workflows/cross-test.yml

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# Cross-platform tests for 64-bit little-endian x86_64 and
2+
# 32-bit big-endian PowerPC.
3+
name: Cross-platform tests
4+
5+
on:
6+
push:
7+
branches: [ "main" ]
8+
pull_request:
9+
branches: [ "main" ]
10+
11+
env:
12+
CARGO_TERM_COLOR: always
13+
14+
jobs:
15+
test:
16+
strategy:
17+
matrix:
18+
target:
19+
- x86_64-unknown-linux-gnu
20+
- powerpc-unknown-linux-gnu
21+
runs-on: ubuntu-latest
22+
steps:
23+
- uses: actions/checkout@v4
24+
with:
25+
submodules: recursive
26+
- name: Update Rust
27+
run: rustup update stable
28+
- name: Install cross-compilation tools
29+
uses: taiki-e/[email protected]
30+
with:
31+
target: ${{ matrix.target }}
32+
- run: ./tools/test.sh

0 commit comments

Comments
 (0)