• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1name: Continuous integration
2
3on:
4  push:
5    branches: [ master ]
6  pull_request:
7    branches: [ master ]
8
9env:
10  CARGO_TERM_COLOR: always
11
12jobs:
13  ci:
14    runs-on: ${{ matrix.os }}
15    strategy:
16      matrix:
17        os:
18          - ubuntu-latest
19          - macOS-latest
20        toolchain:
21          - stable
22          - beta
23          - nightly
24        target:
25          - arm-linux-androideabi
26          - armv7-linux-androideabi
27          - aarch64-linux-android
28          - i686-linux-android
29
30    steps:
31      - uses: actions/checkout@v3
32
33      - uses: dtolnay/rust-toolchain@master
34        with:
35          toolchain: ${{ matrix.toolchain }}
36          target: ${{ matrix.target }}
37
38      - run: cargo build --target=${{ matrix.target }}
39      - run: cargo doc --target=${{ matrix.target }}
40      # Temporary test non-target only.
41      # TODO: Test in emulator or something.
42      - run: cargo test
43