-
Notifications
You must be signed in to change notification settings - Fork 215
101 lines (83 loc) · 2.36 KB
/
cross-platform.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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
name: Embedded targets
on:
pull_request:
schedule:
- cron: '0 5 * * *'
env:
CARGO_INCREMENTAL: false
jobs:
linux:
strategy:
fail-fast: false
matrix:
platform:
- raspbian
- aarch64-unknown-linux-gnu
- armv6vfp-unknown-linux-gnueabihf
- armv7-unknown-linux-gnueabihf
- aarch64-unknown-linux-musl
- armv7-unknown-linux-musl
- aarch64-linux-android
- armv7-linux-androideabi
- i686-linux-android
- x86_64-linux-android
- wasm32-unknown-unknown
- wasm32-wasi
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- name: Get current date
id: date
run: echo "date=$(date +'%Y-%m-%d')" >> $GITHUB_OUTPUT
- uses: actions/cache@v3
with:
path: |
~/.rustup
~/.cargo/registry
~/.cargo/git
# ~/.cache/sccache
.cached
target
key: ${{ runner.os }}-${{matrix.platform}}-${{steps.date.outputs.date}}
# - name: "Setup sccache"
# run: .travis/setup-sccache.sh
- name: Cross script
env:
PLATFORM: ${{matrix.platform}}
AWS_ACCESS_KEY_ID: ${{secrets.TRACT_CI_AWS_ACCESS_KEY_ID}}
AWS_SECRET_ACCESS_KEY: ${{secrets.TRACT_CI_AWS_SECRET_ACCESS_KEY}}
AWS_EC2_METADATA_DISABLED: true
run: .travis/cross.sh
# - name: Stop sccache server
# run: sccache --stop-server || true
apple:
strategy:
fail-fast: false
matrix:
platform:
- aarch64-apple-ios
- aarch64-apple-darwin
runs-on: macOS-latest
steps:
- uses: actions/checkout@v3
- name: Get current date
id: date
run: echo "date=$(date +'%Y-%m-%d')" >> $GITHUB_OUTPUT
- uses: actions/cache@v3
with:
path: |
~/.rustup
~/.cargo/registry
~/.cargo/git
~/.cache/sccache
.cached
target
key: ${{ runner.os }}-${{matrix.platform}}-${{steps.date.outputs.date}}
# - name: "Setup sccache"
# run: .travis/setup-sccache.sh
- name: Cross script
env:
PLATFORM: ${{matrix.platform}}
run: .travis/cross.sh
# - name: Stop sccache server
# run: sccache --stop-server || true