20
20
strategy :
21
21
matrix :
22
22
node-version : [15.x]
23
- os : [ubuntu-20 .04, windows-latest, macos-latest]
23
+ os : [ubuntu-18 .04, windows-latest, macos-latest]
24
24
include :
25
- - os : ubuntu-20 .04
25
+ - os : ubuntu-18 .04
26
26
friendlyName : Ubuntu
27
27
- os : windows-latest
28
28
friendlyName : Windows
42
42
gnome-keyring \
43
43
libsecret-1-dev \
44
44
dbus-x11 \
45
- python-keyring
46
- if: ${{ matrix.os == 'ubuntu-20 .04' }}
45
+ python-gnomekeyring
46
+ if: ${{ matrix.os == 'ubuntu-18 .04' }}
47
47
name: Install additional dependencies
48
48
49
49
# This step can be removed as soon as official Windows arm64 builds are published:
@@ -63,26 +63,27 @@ jobs:
63
63
64
64
- run : |
65
65
echo "Initialize dbus..."
66
- eval $(dbus-run-session -- sh);
66
+ export NO_AT_BRIDGE=1;
67
+ eval $(dbus-launch --sh-syntax);
67
68
echo "Unlocking the keyring..."
68
- eval $(echo -n "" | /usr/bin/gnome-keyring-daemon --unlock )
69
+ eval $(echo -n "" | /usr/bin/gnome-keyring-daemon --login )
69
70
eval $(/usr/bin/gnome-keyring-daemon --components=secrets --start)
70
71
echo "Create a test key using script..."
71
- python -c "import keyring;keyring.set_password('system', 'login', '');"
72
+ python -c "import gnomekeyring;gnomekeyring.create_sync( 'login', '');"
72
73
npm test
73
- if: ${{ matrix.os == 'ubuntu-20 .04' }}
74
+ if: ${{ matrix.os == 'ubuntu-18 .04' }}
74
75
name: Run tests (Linux)
75
76
76
77
- run : npm test
77
- if : ${{ matrix.os != 'ubuntu-20 .04' }}
78
+ if : ${{ matrix.os != 'ubuntu-18 .04' }}
78
79
name : Run tests (Windows/macOS)
79
80
80
81
- run : npm run prebuild-napi-x64
81
82
name : Prebuild (x64)
82
83
83
84
- run : npm run prebuild-napi-arm64
84
85
name : Prebuild (arm64)
85
- if : ${{ matrix.os != 'ubuntu-20 .04' }}
86
+ if : ${{ matrix.os != 'ubuntu-18 .04' }}
86
87
87
88
- run : npm run prebuild-napi-ia32
88
89
if : ${{ matrix.os == 'windows-latest' }}
94
95
docker run --rm -v ${PWD}:/project node-keytar/i386 /bin/bash -c "cd /project && npm run prebuild-napi-ia32 && rm -rf build"
95
96
docker build -t node-keytar/arm64-cross-compile docker/arm64-cross-compile
96
97
docker run --rm -v ${PWD}:/project node-keytar/arm64-cross-compile /bin/bash -c "cd /project && npm run prebuild-napi-arm64"
97
- if: ${{ matrix.os == 'ubuntu-20 .04' }}
98
+ if: ${{ matrix.os == 'ubuntu-18 .04' }}
98
99
name: Prebuild (Linux x86 + ARM64)
99
100
100
101
- run : |
0 commit comments