Skip to content

Commit 3e0b7f0

Browse files
committed
feat: add action for installing system dependencies for liblzma
1 parent 3f27da1 commit 3e0b7f0

1 file changed

Lines changed: 32 additions & 0 deletions

File tree

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: 'Install System Dependencies'
2+
description: 'Install liblzma and build dependencies based on OS and configuration'
3+
author: 'Olivier ORABONA'
4+
5+
inputs:
6+
use-global-liblzma:
7+
description: 'Whether to use system-installed liblzma (true/false)'
8+
required: true
9+
default: 'false'
10+
11+
runs:
12+
using: 'composite'
13+
steps:
14+
- name: Install liblzma-dev (Linux)
15+
if: runner.os == 'Linux' && inputs.use-global-liblzma == 'true'
16+
shell: bash
17+
run: |
18+
sudo apt-get update
19+
sudo apt-get install -y liblzma-dev pkg-config
20+
21+
- name: Install XZ (macOS)
22+
if: runner.os == 'macOS' && inputs.use-global-liblzma == 'true'
23+
shell: bash
24+
run: |
25+
brew install xz pkg-config
26+
27+
- name: Info - Using bundled liblzma
28+
if: inputs.use-global-liblzma == 'false'
29+
shell: bash
30+
run: |
31+
echo "📦 Using bundled XZ/liblzma (downloaded from GitHub)"
32+
echo "USE_GLOBAL=${{ inputs.use-global-liblzma }}"

0 commit comments

Comments
 (0)