1name: CI 2 3on: 4 push: 5 branches: ['master', 'auto'] 6 pull_request: 7 8jobs: 9 Test: 10 strategy: 11 matrix: 12 os: [ubuntu-latest] 13 rust: [1.36.0, stable, beta, nightly] 14 runs-on: ${{ matrix.os }} 15 steps: 16 - uses: actions/checkout@v2 17 - uses: actions-rs/toolchain@v1 18 with: 19 toolchain: ${{ matrix.rust }} 20 override: true 21 profile: minimal 22 - uses: actions-rs/cargo@v1 23 with: 24 command: build 25 args: --all-targets 26 - uses: actions-rs/cargo@v1 27 with: 28 command: test 29 - uses: actions-rs/cargo@v1 30 with: 31 command: test 32 args: --features "serde" 33 - uses: actions-rs/cargo@v1 34 with: 35 command: test 36 args: --no-default-features 37 - uses: actions-rs/cargo@v1 38 with: 39 command: test 40 args: --no-default-features --features=hardcoded-data 41 Fmt: 42 runs-on: ubuntu-latest 43 steps: 44 - uses: actions/checkout@v2 45 - uses: actions-rs/toolchain@v1 46 with: 47 toolchain: stable 48 override: true 49 components: rustfmt 50 - uses: actions-rs/cargo@v1 51 with: 52 command: fmt 53 args: --check 54 55 build_result: 56 name: homu build finished 57 runs-on: ubuntu-latest 58 needs: 59 - "Test" 60 - "Fmt" 61 steps: 62 - name: Mark the job as successful 63 run: exit 0 64 if: success() 65 - name: Mark the job as unsuccessful 66 run: exit 1 67 if: "!success()" 68