From 9526ef0d6e044f5dbcc48e81367d4f573a42ffde Mon Sep 17 00:00:00 2001 From: Hannes Rantzsch Date: Fri, 6 Dec 2019 18:00:56 +0700 Subject: [PATCH] use ubuntu-latest for Github actions (#12) use gnome-keyring-daemon directly instead of python-gnomekeyring --- .github/workflows/{cmake.yml => ci.yml} | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) rename .github/workflows/{cmake.yml => ci.yml} (60%) diff --git a/.github/workflows/cmake.yml b/.github/workflows/ci.yml similarity index 60% rename from .github/workflows/cmake.yml rename to .github/workflows/ci.yml index 3943777..810b914 100644 --- a/.github/workflows/cmake.yml +++ b/.github/workflows/ci.yml @@ -4,21 +4,17 @@ on: [push] jobs: build-linux: - runs-on: ubuntu-16.04 # cannot use 18.04 -- need python-gnomekeyring to create login keyring + runs-on: ubuntu-latest steps: - uses: actions/checkout@v1 - name: Install dependencies - run: sudo apt-get install dbus-x11 dbus gnome-keyring libgnome-keyring-dev libsecret-1-dev python-gnomekeyring + run: sudo apt-get install dbus-x11 dbus gnome-keyring libgnome-keyring-dev libsecret-1-dev - name: Run cmake run: cmake . -DBUILD_TESTS=yes - name: Build and run tests - run: export DISPLAY=:99.0; - NO_AT_BRIDGE=1; - eval $(dbus-launch --sh-syntax); - eval $(echo -n "" | /usr/bin/gnome-keyring-daemon --login); - eval $(/usr/bin/gnome-keyring-daemon --components=secrets --start); - /usr/bin/python -c "import gnomekeyring;gnomekeyring.create_sync('login', '');"; + run: export DISPLAY=:99.0 && eval $(dbus-launch --sh-syntax) && + echo '$(whoami)' | gnome-keyring-daemon -r -d --unlock && make test build-macos: