1919 fail-fast : false
2020 matrix :
2121 node-version : [22.x]
22- os : [ubuntu-latest , windows-latest, macos-latest]
22+ os : [ubuntu-22.04 , windows-latest, macos-latest]
2323
2424 runs-on : ${{ matrix.os }}
2525
3434 libsecret-1-dev \
3535 dbus-x11 \
3636 python3-dev
37- if: ${{ matrix.os == 'ubuntu-latest ' }}
37+ if: ${{ matrix.os == 'ubuntu-22.04 ' }}
3838 name: Install additional dependencies
3939
4040 - run : npm ci
@@ -53,19 +53,19 @@ jobs:
5353 echo "Create a test key using script..."
5454 python -c "import keyring;keyring.set_password('system', 'login', 'pwd');"
5555 npm test
56- if: ${{ matrix.os == 'ubuntu-latest ' }}
56+ if: ${{ matrix.os == 'ubuntu-22.04 ' }}
5757 name: Run tests (Linux)
5858
5959 - run : npm test
60- if : ${{ matrix.os != 'ubuntu-latest ' }}
60+ if : ${{ matrix.os != 'ubuntu-22.04 ' }}
6161 name : Run tests (Windows/macOS)
6262
6363 - run : npm run prebuild-napi-x64
6464 name : Prebuild (x64)
6565
6666 - run : npm run prebuild-napi-arm64
6767 name : Prebuild (arm64)
68- if : ${{ matrix.os != 'ubuntu-latest ' }}
68+ if : ${{ matrix.os != 'ubuntu-22.04 ' }}
6969
7070 - run : npm run prebuild-napi-ia32
7171 if : ${{ matrix.os == 'windows-2019' }}
8080 docker run --rm -v ${PWD}:/project node-keytar/arm64-cross-compile /bin/bash -c "cd /project && npm run prebuild-napi-arm && rm -rf build"
8181 docker build -t node-keytar/armv7l-cross-compile docker/armv7l-cross-compile
8282 docker run --rm -v ${PWD}:/project node-keytar/armv7l-cross-compile /bin/bash -c "cd /project && npm run prebuild-napi-armv7l"
83- if: ${{ matrix.os == 'ubuntu-latest ' }}
83+ if: ${{ matrix.os == 'ubuntu-22.04 ' }}
8484 name: Prebuild (Linux x86 + ARM64 + ARMV7L)
8585
8686 - run : |
9898 if : github.event_name == 'push' && contains(github.ref, 'refs/tags/')
9999
100100 alpine-build :
101- runs-on : ubuntu-latest
101+ runs-on : ubuntu-22.04
102102 container : node:22-alpine3.20
103103 steps :
104104 - uses : actions/checkout@v4
@@ -127,7 +127,7 @@ jobs:
127127 npm-publish :
128128 needs : [build, alpine-build]
129129 name : Publish to NPM
130- runs-on : ubuntu-latest
130+ runs-on : ubuntu-22.04
131131 if : github.event_name == 'push' && contains(github.ref, 'refs/tags/')
132132
133133 steps :
0 commit comments