Skip to content

Commit 523fd55

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 97f9931 commit 523fd55

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-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

.github/workflows/lint.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ jobs:
1212

1313
- name: Install dependencies
1414
uses: ./.github/actions/install-all-build-libs
15+
with:
16+
skip-system-deps: '1'
1517

1618
- name: Cache ESLint results
1719
uses: actions/cache@v4

0 commit comments

Comments
 (0)