|
37 | 37 | - { target: i686-pc-windows-gnu, os: windows-latest, host: -i686-pc-windows-gnu }
|
38 | 38 | - { target: i686-unknown-linux-gnu, os: ubuntu-latest, }
|
39 | 39 | - { target: x86_64-unknown-linux-gnu, os: ubuntu-latest, }
|
| 40 | + - { target: x86_64-unknown-linux-gnu, os: ubuntu-latest, options: --no-default-features, features: x11 } |
| 41 | + - { target: x86_64-unknown-linux-gnu, os: ubuntu-latest, options: --no-default-features, features: wayland } |
40 | 42 | - { target: aarch64-linux-android, os: ubuntu-latest, cmd: 'apk --' }
|
41 | 43 | - { target: x86_64-apple-darwin, os: macos-latest, }
|
42 | 44 | - { target: x86_64-apple-ios, os: macos-latest, }
|
|
50 | 52 | RUST_BACKTRACE: 1
|
51 | 53 | CARGO_INCREMENTAL: 0
|
52 | 54 | RUSTFLAGS: "-C debuginfo=0"
|
| 55 | + OPTIONS: ${{ matrix.platform.options }} |
53 | 56 | FEATURES: ${{ format(',{0}', matrix.platform.features ) }}
|
54 | 57 | CMD: ${{ matrix.platform.cmd }}
|
55 | 58 |
|
@@ -82,35 +85,35 @@ jobs:
|
82 | 85 | - name: Check documentation
|
83 | 86 | shell: bash
|
84 | 87 | if: matrix.platform.target != 'wasm32-unknown-unknown'
|
85 |
| - run: cargo $CMD doc --no-deps --target ${{ matrix.platform.target }} --features $FEATURES |
| 88 | + run: cargo $CMD doc --no-deps --target ${{ matrix.platform.target }} $OPTIONS --features $FEATURES |
86 | 89 |
|
87 | 90 | - name: Build
|
88 | 91 | shell: bash
|
89 |
| - run: cargo $CMD build --verbose --target ${{ matrix.platform.target }} --features $FEATURES |
| 92 | + run: cargo $CMD build --verbose --target ${{ matrix.platform.target }} $OPTIONS --features $FEATURES |
90 | 93 |
|
91 | 94 | - name: Build tests
|
92 | 95 | shell: bash
|
93 |
| - run: cargo $CMD test --no-run --verbose --target ${{ matrix.platform.target }} --features $FEATURES |
| 96 | + run: cargo $CMD test --no-run --verbose --target ${{ matrix.platform.target }} $OPTIONS --features $FEATURES |
94 | 97 | - name: Run tests
|
95 | 98 | shell: bash
|
96 | 99 | if: (
|
97 | 100 | !contains(matrix.platform.target, 'android') &&
|
98 | 101 | !contains(matrix.platform.target, 'ios') &&
|
99 | 102 | !contains(matrix.platform.target, 'wasm32'))
|
100 |
| - run: cargo $CMD test --verbose --target ${{ matrix.platform.target }} --features $FEATURES |
| 103 | + run: cargo $CMD test --verbose --target ${{ matrix.platform.target }} $OPTIONS --features $FEATURES |
101 | 104 |
|
102 | 105 |
|
103 | 106 | - name: Build with serde enabled
|
104 | 107 | shell: bash
|
105 |
| - run: cargo $CMD build --verbose --target ${{ matrix.platform.target }} --features serde,$FEATURES |
| 108 | + run: cargo $CMD build --verbose --target ${{ matrix.platform.target }} $OPTIONS --features serde,$FEATURES |
106 | 109 |
|
107 | 110 | - name: Build tests with serde enabled
|
108 | 111 | shell: bash
|
109 |
| - run: cargo $CMD test --no-run --verbose --target ${{ matrix.platform.target }} --features serde,$FEATURES |
| 112 | + run: cargo $CMD test --no-run --verbose --target ${{ matrix.platform.target }} $OPTIONS --features serde,$FEATURES |
110 | 113 | - name: Run tests with serde enabled
|
111 | 114 | shell: bash
|
112 | 115 | if: (
|
113 | 116 | !contains(matrix.platform.target, 'android') &&
|
114 | 117 | !contains(matrix.platform.target, 'ios') &&
|
115 | 118 | !contains(matrix.platform.target, 'wasm32'))
|
116 |
| - run: cargo $CMD test --verbose --target ${{ matrix.platform.target }} --features serde,$FEATURES |
| 119 | + run: cargo $CMD test --verbose --target ${{ matrix.platform.target }} $OPTIONS --features serde,$FEATURES |
0 commit comments