| 1 | name: Continuous Integration |
| 2 | |
| 3 | on: |
| 4 | push: |
| 5 | branches: |
| 6 | - master |
| 7 | pull_request: |
| 8 | |
| 9 | jobs: |
| 10 | ci: |
| 11 | strategy: |
| 12 | fail-fast: false |
| 13 | matrix: |
| 14 | rust: ['1.40.0', 'stable', 'beta'] |
| 15 | |
| 16 | runs-on: ubuntu-latest |
| 17 | |
| 18 | steps: |
| 19 | - name: Checkout sources |
| 20 | uses: actions/checkout@v2 |
| 21 | |
| 22 | - name: Cargo cache |
| 23 | uses: actions/cache@v1 |
| 24 | with: |
| 25 | path: ~/.cargo |
| 26 | key: cargo-${{ matrix.rust }} |
| 27 | |
| 28 | - name: Rust toolchain |
| 29 | uses: actions-rs/toolchain@v1 |
| 30 | with: |
| 31 | toolchain: ${{ matrix.rust }} |
| 32 | override: true |
| 33 | |
| 34 | - name: Test link |
| 35 | uses: actions-rs/cargo@v1 |
| 36 | with: |
| 37 | command: test |
| 38 | args: --manifest-path dlib-test/Cargo.toml |
| 39 | |
| 40 | - name: Test dlopen |
| 41 | uses: actions-rs/cargo@v1 |
| 42 | with: |
| 43 | command: test |
| 44 | args: --manifest-path dlib-test/Cargo.toml --features "dlopen" |