Skip to content

Commit 8cb98dd

Browse files
committed
ci: add skip-system-deps flag to skip unnecessary system packages
- Add skip-system-deps input to install-all-build-libs action - Skip libsecret and rpm installation for lint job - These packages are only needed for Electron builds, not for linting
1 parent af0195f commit 8cb98dd

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

.github/actions/install-all-build-libs/action.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,11 @@ inputs:
1616
default: '0'
1717
required: false
1818

19+
skip-system-deps:
20+
description: Skip install system dependencies (libsecret, rpm, etc.)
21+
default: '0'
22+
required: false
23+
1924
keytar-host-mirror:
2025
description: Keytar binary host mirror
2126
required: false
@@ -58,16 +63,14 @@ runs:
5863
python-version: '3.11'
5964

6065
- name: Install linux libraries
61-
if: ${{ runner.os == 'Linux' }}
62-
# if: ${{ runner.os == 'Linux' && !contains(inputs.skip-electron-deps, '1') }}
66+
if: ${{ runner.os == 'Linux' && inputs.skip-system-deps != '1' }}
6367
shell: bash
6468
run: |
6569
sudo apt-get update -qy
6670
sudo apt-get install -qy libsecret-1-dev rpm
6771
6872
- name: Install macos libraries
69-
if: ${{ runner.os == 'macOS' }}
70-
# if: ${{ runner.os == 'macOS' && !contains(inputs.skip-electron-deps, '1') }}
73+
if: ${{ runner.os == 'macOS' && inputs.skip-system-deps != '1' }}
7174
shell: bash
7275
run: |
7376
brew install libsecret

0 commit comments

Comments
 (0)