Skip to content

Commit dc8c6cf

Browse files
committed
fix(ci): build TS for lint:types, use Python 3.9 on Rocky
- Add npm run build:ts step before lint:types (tsd needs dist/index.d.ts) - Use Python 3.9 on Rocky Linux 8 (node-gyp requires Python 3.8+) - Use RPMFusion for FFmpeg on Rocky 8 (EPEL doesn't have ffmpeg-devel)
1 parent a0bf678 commit dc8c6cf

1 file changed

Lines changed: 9 additions & 9 deletions

File tree

.github/workflows/ci.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,9 @@ jobs:
4444
- name: Install dependencies
4545
run: npm install
4646

47+
- name: Build TypeScript
48+
run: npm run build:ts
49+
4750
- name: Lint C++
4851
run: cpplint --quiet src/*.h src/*.cc
4952

@@ -69,15 +72,12 @@ jobs:
6972
# Enable EPEL and CRB (PowerTools) repositories
7073
dnf install -y epel-release
7174
dnf config-manager --set-enabled powertools || dnf config-manager --set-enabled crb || true
72-
# Install build tools and FFmpeg
73-
dnf install -y gcc-c++ make python3 git pkgconfig
74-
# Install FFmpeg development packages from EPEL
75-
dnf install -y ffmpeg-free-devel || dnf install -y --enablerepo=epel ffmpeg-devel || echo "FFmpeg not in EPEL, using RPMFusion"
76-
# If FFmpeg not available, try RPMFusion
77-
if ! pkg-config --exists libavcodec; then
78-
dnf install -y https://mirrors.rpmfusion.org/free/el/rpmfusion-free-release-8.noarch.rpm || true
79-
dnf install -y ffmpeg-devel || true
80-
fi
75+
# Install build tools (Python 3.9 for node-gyp compatibility)
76+
dnf install -y gcc-c++ make python39 git pkgconfig
77+
alternatives --set python3 /usr/bin/python3.9 || true
78+
# Install FFmpeg via RPMFusion (EPEL doesn't have ffmpeg-devel for Rocky 8)
79+
dnf install -y https://mirrors.rpmfusion.org/free/el/rpmfusion-free-release-8.noarch.rpm || true
80+
dnf install -y ffmpeg-devel || true
8181
8282
- name: Checkout
8383
uses: actions/checkout@v4

0 commit comments

Comments
 (0)