Skip to content

Merge pull request #6 from moka-rs/fix-deq-mutating-through-shared-ref #67

Merge pull request #6 from moka-rs/fix-deq-mutating-through-shared-ref

Merge pull request #6 from moka-rs/fix-deq-mutating-through-shared-ref #67

name: Linux cross compile tests
on:
push:
paths-ignore:
- '.devcontainer/**'
- '.gitpod.yml'
- '.vscode/**'
- 'tests/**'
pull_request:
paths-ignore:
- '.devcontainer/**'
- '.gitpod.yml'
- '.vscode/**'
- 'tests/**'
schedule:
# Run against the last commit on the default branch on Friday at 9pm (UTC?)
- cron: '0 21 * * 5'
jobs:
linux-cross:
runs-on: ubuntu-latest
strategy:
matrix:
platform:
- target: aarch64-unknown-linux-musl
- target: i686-unknown-linux-musl
- target: armv7-unknown-linux-musleabihf
- target: armv5te-unknown-linux-musleabi
- target: mips-unknown-linux-musl
- target: mipsel-unknown-linux-musl
steps:
- name: Checkout Moka
uses: actions/checkout@v2
- name: Install Rust toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
target: ${{ matrix.platform.target }}
override: true
- name: Remove integration tests and force enable rustc_version crate
run: |
rm -rf tests
sed -i '/actix-rt\|async-std\|reqwest\|skeptic/d' Cargo.toml
- uses: Swatinem/rust-cache@v1
- name: cargo clean
uses: actions-rs/cargo@v1
with:
command: clean
- name: Run tests (sync feature)
uses: actions-rs/cargo@v1
with:
use-cross: true
command: test
args: --release --features sync --target ${{ matrix.platform.target }}