forked from openmls/openmls
-
Notifications
You must be signed in to change notification settings - Fork 1
65 lines (60 loc) · 1.52 KB
/
build.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
name: Build
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
on:
push:
branches:
- main
pull_request:
workflow_dispatch:
env:
CARGO_TERM_COLOR: always
jobs:
build:
strategy:
fail-fast: false
matrix:
arch:
# Windows
- i686-pc-windows-msvc
- x86_64-pc-windows-msvc
# macOS
- x86_64-apple-darwin
- aarch64-apple-darwin
# Linux
- x86_64-unknown-linux-gnu
- i686-unknown-linux-gnu
- aarch64-unknown-linux-gnu
# Android
- aarch64-linux-android
- armv7-linux-androideabi
- x86_64-linux-android
- i686-linux-android
# iOS
- aarch64-apple-ios
# WASM
- wasm32-unknown-unknown
include:
# Compile iOS sim on macOS
- os: macos-latest
arch: aarch64-apple-ios-sim
mode:
- debug
- release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
# Install the required target
- uses: dtolnay/rust-toolchain@stable
with:
target: ${{ matrix.arch }}
- uses: Swatinem/rust-cache@v2
- run: |
if [ ${{ matrix.mode }} == debug ]; then
echo "TEST_MODE=" >> $GITHUB_ENV
else
echo "TEST_MODE=--release" >> $GITHUB_ENV
fi
- name: Build
run: cargo build $TEST_MODE --verbose --target ${{ matrix.arch }} -p openmls