Skip to content

Commit 7c2214b

Browse files
committed
Update ci with Android/iOS
1 parent 7839a41 commit 7c2214b

File tree

1 file changed

+54
-0
lines changed

1 file changed

+54
-0
lines changed

.github/workflows/rust.yml

+54
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,60 @@ jobs:
4141
command: test
4242
args: --manifest-path=fftw/Cargo.toml --features=${{ matrix.feature }} --no-default-features
4343

44+
ios:
45+
runs-on: macos-latest
46+
strategy:
47+
fail-fast: false
48+
steps:
49+
- uses: actions/checkout@v1
50+
- name: Force XCode
51+
run: sudo xcode-select -switch /Applications/Xcode.app
52+
- name: Install targets
53+
run: rustup target install aarch64-apple-ios
54+
- uses: actions-rs/cargo@v1
55+
with:
56+
command: test
57+
args: >
58+
--all-targets
59+
--manifest-path=fftw/Cargo.toml
60+
--target aarch64-apple-ios
61+
--features=source
62+
--no-default-features
63+
--no-run
64+
65+
android:
66+
runs-on: ubuntu-18.04
67+
strategy:
68+
fail-fast: false
69+
matrix:
70+
targets: ["aarch64-linux-android", "armv7-linux-androideabi"]
71+
steps:
72+
- uses: nttld/setup-ndk@v1
73+
with:
74+
ndk-version: r21d
75+
- name: Show env
76+
env:
77+
OUTPUT_NDK_PATH: ${{ steps.setup-ndk.outputs.ndk-path }}
78+
run: >
79+
ls /usr/local/lib/android/sdk/ndk/;
80+
echo ANDROID_NDK_ROOT=$ANDROID_NDK_ROOT;
81+
echo ${{ steps.setup-ndk.outputs.ndk-path }};
82+
echo output-ndk-path=$OUTPUT_NDK_PATH;
83+
- uses: actions/checkout@v1
84+
- name: Install targets
85+
run: rustup target install aarch64-linux-android armv7-linux-androideabi
86+
- uses: actions-rs/cargo@v1
87+
with:
88+
command: test
89+
args: >
90+
--all-targets
91+
--manifest-path=fftw/Cargo.toml
92+
--target ${{ matrix.targets }}
93+
--features=source
94+
--no-default-features
95+
--no-run
96+
--verbose
97+
4498
linux:
4599
runs-on: ubuntu-18.04
46100
strategy:

0 commit comments

Comments
 (0)