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