-
Notifications
You must be signed in to change notification settings - Fork 214
124 lines (104 loc) · 3.04 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
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
name: Embedded targets
on:
pull_request:
schedule:
- cron: '0 5 * * *'
env:
CARGO_INCREMENTAL: false
FORCE_JAVASCRIPT_ACTIONS_TO_NODE20: true
jobs:
linux:
strategy:
fail-fast: false
matrix:
platform:
- raspbian
- aarch64-unknown-linux-gnu
- aarch64-unknown-linux-gnu-stretch
- armv6vfp-unknown-linux-gnueabihf
- armv7-unknown-linux-gnueabihf
- armv7-unknown-linux-gnueabihf-stretch
- 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
permissions:
id-token: write
contents: read
steps:
- uses: actions/checkout@v4
- name: Get current date
id: date
run: echo "date=$(date +'%Y-%m-%d')" >> $GITHUB_OUTPUT
- name: Configure AWS Credentials
# if: github.repository == 'sonos/tract'
continue-on-error: true
uses: aws-actions/configure-aws-credentials@v4
with:
role-to-assume: arn:aws:iam::567805100031:role/github-runner-tract-ci
aws-region: us-east-2
- uses: actions/cache@v4
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_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
permissions:
id-token: write
contents: read
steps:
- uses: actions/checkout@v4
- name: Configure AWS Credentials
# if: github.repository == 'sonos/tract'
continue-on-error: true
uses: aws-actions/configure-aws-credentials@v4
with:
role-to-assume: arn:aws:iam::567805100031:role/github-runner-tract-ci
aws-region: us-east-2
- name: Get current date
id: date
run: echo "date=$(date +'%Y-%m-%d')" >> $GITHUB_OUTPUT
- uses: actions/cache@v4
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