@@ -12,19 +12,16 @@ jobs:
12
12
build :
13
13
name : ${{ matrix.friendlyName }}
14
14
env :
15
- DISPLAY : " :99.0"
16
15
CC : " clang"
17
16
CXX : " clang++"
18
17
npm_config_clang : " 1"
19
- # Needed until macos-11.0 hosted runners are available
20
- SDKROOT : " /Library/Developer/CommandLineTools/SDKs/MacOSX11.1.sdk"
21
18
22
19
strategy :
23
20
matrix :
24
21
node-version : [15.x]
25
- os : [ubuntu-16 .04, windows-latest, macos-latest]
22
+ os : [ubuntu-20 .04, windows-latest, macos-latest]
26
23
include :
27
- - os : ubuntu-16 .04
24
+ - os : ubuntu-20 .04
28
25
friendlyName : Ubuntu
29
26
- os : windows-latest
30
27
friendlyName : Windows
@@ -40,12 +37,11 @@ jobs:
40
37
with :
41
38
node-version : ${{ matrix.node-version }}
42
39
- run : |
43
- sudo apt-get install xvfb \
44
- gnome-keyring \
40
+ sudo apt-get install gnome-keyring \
45
41
libsecret-1-dev \
46
42
dbus-x11 \
47
- python-gnomekeyring
48
- if: ${{ matrix.os == 'ubuntu-16 .04' }}
43
+ python3-dev
44
+ if: ${{ matrix.os == 'ubuntu-20 .04' }}
49
45
name: Install additional dependencies
50
46
51
47
# This step can be removed as soon as official Windows arm64 builds are published:
@@ -64,28 +60,28 @@ jobs:
64
60
name : Build native module from source
65
61
66
62
- run : |
67
- echo "Initialize dbus..."
68
- export NO_AT_BRIDGE=1;
63
+ echo "Install keyring..."
64
+ pip3 install --upgrade pip
65
+ pip3 install keyring
66
+ echo "Prepare D-Bus session..."
69
67
eval $(dbus-launch --sh-syntax);
70
- echo "Unlocking the keyring..."
71
- eval $(echo -n "" | /usr/bin/gnome-keyring-daemon --login)
72
- eval $(/usr/bin/gnome-keyring-daemon --components=secrets --start)
68
+ eval $(echo 'somecredstorepass' | gnome-keyring-daemon --unlock)
73
69
echo "Create a test key using script..."
74
- python -c "import gnomekeyring;gnomekeyring.create_sync(' login', '');"
70
+ python -c "import keyring;keyring.set_password('system', ' login', 'pwd ');"
75
71
npm test
76
- if: ${{ matrix.os == 'ubuntu-16 .04' }}
72
+ if: ${{ matrix.os == 'ubuntu-20 .04' }}
77
73
name: Run tests (Linux)
78
74
79
75
- run : npm test
80
- if : ${{ matrix.os != 'ubuntu-16 .04' }}
76
+ if : ${{ matrix.os != 'ubuntu-20 .04' }}
81
77
name : Run tests (Windows/macOS)
82
78
83
79
- run : npm run prebuild-napi-x64
84
80
name : Prebuild (x64)
85
81
86
82
- run : npm run prebuild-napi-arm64
87
83
name : Prebuild (arm64)
88
- if : ${{ matrix.os != 'ubuntu-16 .04' }}
84
+ if : ${{ matrix.os != 'ubuntu-20 .04' }}
89
85
90
86
- run : npm run prebuild-napi-ia32
91
87
if : ${{ matrix.os == 'windows-latest' }}
97
93
docker run --rm -v ${PWD}:/project node-keytar/i386 /bin/bash -c "cd /project && npm run prebuild-napi-ia32 && rm -rf build"
98
94
docker build -t node-keytar/arm64-cross-compile docker/arm64-cross-compile
99
95
docker run --rm -v ${PWD}:/project node-keytar/arm64-cross-compile /bin/bash -c "cd /project && npm run prebuild-napi-arm64"
100
- if: ${{ matrix.os == 'ubuntu-16 .04' }}
96
+ if: ${{ matrix.os == 'ubuntu-20 .04' }}
101
97
name: Prebuild (Linux x86 + ARM64)
102
98
103
99
- run : |
0 commit comments