try to fix secret-service in ci #32
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Run examples | |
on: | |
push: | |
jobs: | |
examples: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
include: | |
# Secret Service + D-Bus + std (blocking) | |
- os: ubuntu-latest | |
features: secret-service-dbus-std,secret-service-openssl-std | |
example: secret-service-dbus-openssl-std | |
- os: ubuntu-latest | |
features: secret-service-dbus-std,secret-service-rust-crypto-std | |
example: secret-service-dbus-rust-crypto-std | |
# Secret Service + D-Bus + tokio | |
- os: ubuntu-latest | |
features: secret-service-dbus-tokio,secret-service-openssl-std | |
example: secret-service-dbus-openssl-tokio | |
- os: ubuntu-latest | |
features: secret-service-dbus-tokio,secret-service-rust-crypto-std | |
example: secret-service-dbus-rust-crypto-tokio | |
# Secret Service + Z-Bus + std (blocking) | |
- os: ubuntu-latest | |
features: secret-service-zbus-std,secret-service-openssl-std | |
example: secret-service-zbus-openssl-std | |
- os: ubuntu-latest | |
features: secret-service-zbus-std,secret-service-rust-crypto-std | |
example: secret-service-zbus-rust-crypto-std | |
# Secret Service + Z-Bus + async-std | |
- os: ubuntu-latest | |
features: secret-service-zbus-async-std,secret-service-openssl-std | |
example: secret-service-zbus-openssl-async-std | |
- os: ubuntu-latest | |
features: secret-service-zbus-async-std,secret-service-rust-crypto-std | |
example: secret-service-zbus-rust-crypto-async-std | |
# Secret Service + Z-Bus + tokio | |
- os: ubuntu-latest | |
features: secret-service-zbus-tokio,secret-service-openssl-std | |
example: secret-service-zbus-openssl-tokio | |
- os: ubuntu-latest | |
features: secret-service-zbus-tokio,secret-service-rust-crypto-std | |
example: secret-service-zbus-rust-crypto-tokio | |
# MacOS/iOS Keychain | |
- os: macos-13 | |
features: apple-native-std | |
example: apple-native-std | |
- os: macos-14 | |
features: apple-native-std | |
example: apple-native-std | |
- os: macos-15 | |
features: apple-native-std | |
example: apple-native-std | |
- os: macos-13 | |
features: apple-native-std | |
example: apple-native-std | |
# Windows Credentials | |
- os: windows-latest | |
features: windows-native-std | |
example: windows-native-std | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: awalsh128/cache-apt-pkgs-action@latest | |
if: matrix.os == 'ubuntu-latest' | |
with: | |
packages: libdbus-1-dev libssl-dev gnome-keyring | |
- uses: actions-rust-lang/setup-rust-toolchain@v1 | |
- run: gnome-keyring-daemon --components=secrets --daemonize --unlock <<< 'foobar' | |
if: matrix.os == 'ubuntu-latest' | |
- run: cargo run --features ${{ matrix.features }} --example ${{ matrix.example }} |