Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

Commit b162ae7

Browse files
authored
Merge pull request #442 from atom/fix-macos-ci
Fix CI builds
2 parents 4154995 + 3442837 commit b162ae7

File tree

1 file changed

+15
-19
lines changed

1 file changed

+15
-19
lines changed

.github/workflows/ci.yml

Lines changed: 15 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -12,19 +12,16 @@ jobs:
1212
build:
1313
name: ${{ matrix.friendlyName }}
1414
env:
15-
DISPLAY: ":99.0"
1615
CC: "clang"
1716
CXX: "clang++"
1817
npm_config_clang: "1"
19-
# Needed until macos-11.0 hosted runners are available
20-
SDKROOT: "/Library/Developer/CommandLineTools/SDKs/MacOSX11.1.sdk"
2118

2219
strategy:
2320
matrix:
2421
node-version: [15.x]
25-
os: [ubuntu-16.04, windows-latest, macos-latest]
22+
os: [ubuntu-20.04, windows-latest, macos-latest]
2623
include:
27-
- os: ubuntu-16.04
24+
- os: ubuntu-20.04
2825
friendlyName: Ubuntu
2926
- os: windows-latest
3027
friendlyName: Windows
@@ -40,12 +37,11 @@ jobs:
4037
with:
4138
node-version: ${{ matrix.node-version }}
4239
- run: |
43-
sudo apt-get install xvfb \
44-
gnome-keyring \
40+
sudo apt-get install gnome-keyring \
4541
libsecret-1-dev \
4642
dbus-x11 \
47-
python-gnomekeyring
48-
if: ${{ matrix.os == 'ubuntu-16.04' }}
43+
python3-dev
44+
if: ${{ matrix.os == 'ubuntu-20.04' }}
4945
name: Install additional dependencies
5046
5147
# This step can be removed as soon as official Windows arm64 builds are published:
@@ -64,28 +60,28 @@ jobs:
6460
name: Build native module from source
6561

6662
- 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..."
6967
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)
7369
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');"
7571
npm test
76-
if: ${{ matrix.os == 'ubuntu-16.04' }}
72+
if: ${{ matrix.os == 'ubuntu-20.04' }}
7773
name: Run tests (Linux)
7874
7975
- run: npm test
80-
if: ${{ matrix.os != 'ubuntu-16.04' }}
76+
if: ${{ matrix.os != 'ubuntu-20.04' }}
8177
name: Run tests (Windows/macOS)
8278

8379
- run: npm run prebuild-napi-x64
8480
name: Prebuild (x64)
8581

8682
- run: npm run prebuild-napi-arm64
8783
name: Prebuild (arm64)
88-
if: ${{ matrix.os != 'ubuntu-16.04' }}
84+
if: ${{ matrix.os != 'ubuntu-20.04' }}
8985

9086
- run: npm run prebuild-napi-ia32
9187
if: ${{ matrix.os == 'windows-latest' }}
@@ -97,7 +93,7 @@ jobs:
9793
docker run --rm -v ${PWD}:/project node-keytar/i386 /bin/bash -c "cd /project && npm run prebuild-napi-ia32 && rm -rf build"
9894
docker build -t node-keytar/arm64-cross-compile docker/arm64-cross-compile
9995
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' }}
10197
name: Prebuild (Linux x86 + ARM64)
10298
10399
- run: |

0 commit comments

Comments
 (0)