|
| 1 | +name: Rust |
| 2 | +on: [push, pull_request] |
| 3 | +env: |
| 4 | + CARGO_INCREMENTAL: 0 |
| 5 | +jobs: |
| 6 | + win: |
| 7 | + name: Win |
| 8 | + runs-on: windows-latest |
| 9 | + strategy: |
| 10 | + matrix: |
| 11 | + toolchain: [nightly-x86_64-msvc, nightly-i686-msvc, nightly-x86_64-gnu, nightly-i686-gnu, 1.6.0-x86_64-msvc] |
| 12 | + steps: |
| 13 | + - uses: actions/checkout@v2 |
| 14 | + - uses: actions-rs/toolchain@v1 |
| 15 | + with: |
| 16 | + toolchain: ${{ matrix.toolchain }} |
| 17 | + default: true |
| 18 | + profile: minimal |
| 19 | + - name: Build |
| 20 | + run: | |
| 21 | + cargo build |
| 22 | + cargo build --features "everything impl-debug impl-default" |
| 23 | + cargo build --release --features "everything impl-debug impl-default" |
| 24 | + - name: Test |
| 25 | + run: cargo test --features "everything impl-debug impl-default" |
| 26 | + wincross: |
| 27 | + name: WinX |
| 28 | + runs-on: windows-latest |
| 29 | + strategy: |
| 30 | + matrix: |
| 31 | + target: [i686-pc-windows-msvc, i586-pc-windows-msvc, aarch64-pc-windows-msvc] |
| 32 | + steps: |
| 33 | + - uses: actions/checkout@v2 |
| 34 | + - uses: actions-rs/toolchain@v1 |
| 35 | + with: |
| 36 | + toolchain: nightly-x86_64-msvc |
| 37 | + target: ${{ matrix.target }} |
| 38 | + default: true |
| 39 | + profile: minimal |
| 40 | + - name: Build |
| 41 | + run: | |
| 42 | + cargo build --target=${{ matrix.target }} |
| 43 | + cargo build --target=${{ matrix.target }} --all-features |
| 44 | + cargo build --target=${{ matrix.target }} --release --all-features |
| 45 | + - name: Test |
| 46 | + run: cargo test --target=${{ matrix.target }} --all-features --no-run |
| 47 | + lin: |
| 48 | + name: Lin |
| 49 | + runs-on: ubuntu-latest |
| 50 | + strategy: |
| 51 | + matrix: |
| 52 | + toolchain: [nightly, 1.2.0] |
| 53 | + steps: |
| 54 | + - uses: actions/checkout@v2 |
| 55 | + - uses: actions-rs/toolchain@v1 |
| 56 | + with: |
| 57 | + toolchain: ${{ matrix.toolchain }} |
| 58 | + default: true |
| 59 | + profile: minimal |
| 60 | + - name: Build |
| 61 | + run: | |
| 62 | + cargo build |
| 63 | + cargo build --features "everything impl-debug impl-default" |
| 64 | + cargo build --release --features "everything impl-debug impl-default" |
| 65 | + lincross: |
| 66 | + name: LinX |
| 67 | + runs-on: ubuntu-latest |
| 68 | + strategy: |
| 69 | + matrix: |
| 70 | + target: [x86_64-pc-windows-msvc, i686-pc-windows-msvc, i586-pc-windows-msvc, aarch64-pc-windows-msvc] |
| 71 | + steps: |
| 72 | + - uses: actions/checkout@v2 |
| 73 | + - uses: actions-rs/toolchain@v1 |
| 74 | + with: |
| 75 | + toolchain: nightly |
| 76 | + target: ${{ matrix.target }} |
| 77 | + default: true |
| 78 | + profile: minimal |
| 79 | + - name: Build |
| 80 | + run: | |
| 81 | + cargo build --target=${{ matrix.target }} |
| 82 | + cargo build --target=${{ matrix.target }} --all-features |
| 83 | + cargo build --target=${{ matrix.target }} --release --all-features |
0 commit comments