forked from solana-labs/solana
-
Notifications
You must be signed in to change notification settings - Fork 251
82 lines (71 loc) · 2 KB
/
client-targets.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
name: client_targets
on:
push:
branches:
- master
pull_request:
branches:
- master
paths:
- "client/**"
- "sdk/**"
- ".github/workflows/client-targets.yml"
- "ci/rust-version.sh"
- "**/Cargo.toml"
- "**/Cargo.lock"
env:
CARGO_TERM_COLOR: always
jobs:
android:
if: github.repository == 'anza-xyz/agave'
strategy:
matrix:
os:
- ubuntu-20.04
target:
- x86_64-linux-android
- aarch64-linux-android
- i686-linux-android
- armv7-linux-androideabi
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
# This can be removed once cargo-ndk >= 3.5.4 is used.
- name: Setup environment for Android NDK
run: |
echo "RANLIB=$ANDROID_NDK_ROOT/toolchains/llvm/prebuilt/linux-x86_64/bin/llvm-ranlib" >> $GITHUB_ENV
- run: cargo install [email protected]
- name: Setup Rust
run: |
source ci/rust-version.sh stable
rustup target add --toolchain "$rust_stable" ${{ matrix.target }}
- name: Stable build
run: ./cargo stable ndk --target ${{ matrix.target }} build -p solana-client
ios:
if: github.repository == 'anza-xyz/agave'
strategy:
matrix:
os:
- macos-13
target:
- aarch64-apple-ios
- x86_64-apple-ios
- aarch64-apple-darwin
- x86_64-apple-darwin
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Setup Rust
run: |
source ci/rust-version.sh stable
rustup target add --toolchain "$rust_stable" ${{ matrix.target }}
- name: Stable build
run: ./cargo stable build --target ${{ matrix.target }} -p solana-client
error_reporting:
needs:
- android
- ios
if: failure() && github.event_name == 'push'
uses: ./.github/workflows/error-reporting.yml
secrets:
WEBHOOK: ${{ secrets.SLACK_ERROR_REPORTING_WEBHOOK }}