|
@@ -57,7 +57,7 @@ jobs:
|
|
|
os: macos-latest,
|
|
|
toolchain: '1.59.0',
|
|
|
cross: false,
|
|
|
- acommand: 'build'
|
|
|
+ command: 'build'
|
|
|
}
|
|
|
- {
|
|
|
target: aarch64-linux-android,
|
|
@@ -66,6 +66,19 @@ jobs:
|
|
|
cross: true,
|
|
|
command: 'build'
|
|
|
}
|
|
|
+ features:
|
|
|
+ - {
|
|
|
+ args: --no-default-features --features native-tls-vendored,
|
|
|
+ key: no-default
|
|
|
+ }
|
|
|
+ - {
|
|
|
+ args: --features native-tls-vendored,api-all,
|
|
|
+ key: api-all
|
|
|
+ }
|
|
|
+ - {
|
|
|
+ args: --features native-tls-vendored,compression,wry,isolation,custom-protocol,api-all,cli,updater,system-tray,windows7-compat,http-multipart,
|
|
|
+ key: all
|
|
|
+ }
|
|
|
|
|
|
steps:
|
|
|
- uses: actions/checkout@v2
|
|
@@ -82,29 +95,16 @@ 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
|
|
|
uses: actions-rs/cargo@v1
|
|
|
with:
|
|
|
use-cross: ${{ matrix.platform.cross }}
|
|
|
command: ${{ matrix.platform.command }}
|
|
|
- args: --target ${{ matrix.platform.target }} --features native-tls-vendored
|
|
|
-
|
|
|
- - name: test api-all
|
|
|
- uses: actions-rs/cargo@v1
|
|
|
- with:
|
|
|
- use-cross: ${{ matrix.platform.cross }}
|
|
|
- command: ${{ matrix.platform.command }}
|
|
|
- args: --target ${{ matrix.platform.target }} --features native-tls-vendored,api-all
|
|
|
-
|
|
|
- - name: test all features
|
|
|
- uses: actions-rs/cargo@v1
|
|
|
- with:
|
|
|
- use-cross: ${{ matrix.platform.cross }}
|
|
|
- command: ${{ matrix.platform.command }}
|
|
|
- args: --target ${{ matrix.platform.target }} --features native-tls-vendored,compression,wry,isolation,custom-protocol,api-all,cli,updater,system-tray,windows7-compat,http-multipart
|
|
|
+ args: --target ${{ matrix.platform.target }} ${{ matrix.features.args }}
|