Skip to content

fixes: rust 1.77

fixes: rust 1.77 #227

Workflow file for this run

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@v3
# 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