File: ci.yml

package info (click to toggle)
rust-threadfin 0.1.2-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 236 kB
  • sloc: makefile: 2; sh: 1
file content (56 lines) | stat: -rw-r--r-- 1,301 bytes parent folder | download | duplicates (2)
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
name: ci
on:
  push:
    branches: [master]
  pull_request:

jobs:
  test:
    strategy:
      matrix:
        include:
          - runner: ubuntu-latest
            target: x86_64-unknown-linux-gnu
          - runner: macos-11
            target: x86_64-apple-darwin
          - runner: windows-latest
            target: x86_64-pc-windows-msvc
    runs-on: ${{ matrix.runner }}
    timeout-minutes: 10
    env:
      RUST_BACKTRACE: 1
    steps:
      - uses: actions/checkout@v2

      - uses: actions-rs/toolchain@v1
        with:
          profile: minimal
          toolchain: "1.46.0"
          target: ${{ matrix.target }}
          default: true

      - run: cargo test --target ${{ matrix.target }}

  cross-compile:
    strategy:
      matrix:
        include:
          - runner: ubuntu-latest
            target: armv5te-unknown-linux-gnueabi
          - runner: ubuntu-latest
            target: mipsel-unknown-linux-gnu
    runs-on: ${{ matrix.runner }}
    timeout-minutes: 10
    env:
      RUST_BACKTRACE: 1
    steps:
      - uses: actions/checkout@v2

      - uses: actions-rs/toolchain@v1
        with:
          profile: minimal
          toolchain: "1.46.0"
          target: ${{ matrix.target }}
          default: true

      - run: cargo build --target ${{ matrix.target }}