|
@@ -46,6 +46,19 @@ jobs:
|
|
|
os: macos-latest,
|
|
|
toolchain: '1.59.0'
|
|
|
}
|
|
|
+ features:
|
|
|
+ - {
|
|
|
+ args: --no-default-features,
|
|
|
+ key: no-default
|
|
|
+ }
|
|
|
+ - {
|
|
|
+ args: --features api-all,
|
|
|
+ key: api-all
|
|
|
+ }
|
|
|
+ - {
|
|
|
+ args: --features compression,wry,isolation,custom-protocol,api-all,cli,updater,system-tray,windows7-compat,http-multipart,
|
|
|
+ key: all
|
|
|
+ }
|
|
|
|
|
|
steps:
|
|
|
- uses: actions/checkout@v2
|
|
@@ -62,14 +75,12 @@ jobs:
|
|
|
if: contains(matrix.platform.target, 'unknown-linux')
|
|
|
run: |
|
|
|
sudo apt-get update
|
|
|
- sudo apt-get install -y libgtk-3-dev webkit2gtk-4.0 libayatana-appindicator3-dev librsvg2-dev patchelf
|
|
|
+ sudo apt-get install -y webkit2gtk-4.0 libayatana-appindicator3-dev
|
|
|
|
|
|
- uses: Swatinem/rust-cache@v2
|
|
|
with:
|
|
|
workspaces: core -> ../target
|
|
|
+ save-if: ${{ matrix.features.key == 'all' }}
|
|
|
|
|
|
- name: test
|
|
|
- run: |
|
|
|
- cargo test --target ${{ matrix.platform.target }}
|
|
|
- cargo test --target ${{ matrix.platform.target }} --features api-all
|
|
|
- cargo test --target ${{ matrix.platform.target }} --features compression,wry,isolation,custom-protocol,api-all,cli,updater,system-tray,windows7-compat,http-multipart
|
|
|
+ run: cargo test --target ${{ matrix.platform.target }} ${{ matrix.features.args }}
|