Skip to content

Commit

Permalink
setup keyring
Browse files Browse the repository at this point in the history
  • Loading branch information
dnys1 committed Mar 7, 2024
1 parent c127a9d commit c410125
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/celest_core.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,9 @@ jobs:
uses: subosito/flutter-action@62f096cacda5168a3bd7b95793373be14fa4fbaf # 2.13.0
with:
cache: true
- name: Install dependencies
run: sudo apt-get update && sudo apt-get install -y libsecret-1-dev
- name: Setup Test Environment
working-directory: packages/celest_core
run: tool/setup-ci.sh
- name: Get Packages
working-directory: packages/celest_core
run: dart pub get
Expand Down
18 changes: 18 additions & 0 deletions packages/celest_core/tool/setup-ci.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#!/bin/bash

set -e

if [[ "$OSTYPE" == "linux-gnu"* ]]; then

sudo apt-get update && sudo apt-get install -y libsecret-1-dev gnome-keyring

# If running in headless mode, re-run script in dbus session.
if [ -z $DBUS_SESSION_BUS_ADDRESS && -n $1 ]; then
exec dbus-run-session -- $@
fi

# Set up keyring in CI env
if [ -n $CI ]; then
echo 'password' | gnome-keyring-daemon --start --replace --daemonize --unlock
fi
fi

0 comments on commit c410125

Please sign in to comment.