Skip to content

Commit e83f767

Browse files
committed
Add Clang compiler installation to Linux dependency script and adjust CI triggers
- Update `install_dependencies_linux.sh` to include Clang installation for supported package managers. - Modify GitHub Actions workflow to refine event triggers for PRs and pushes.
1 parent 8e51d6b commit e83f767

File tree

2 files changed

+14
-5
lines changed

2 files changed

+14
-5
lines changed

.github/workflows/workflow.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,17 @@
11
name: CMake CI
22

33
on:
4-
push:
5-
branches: [ main ]
6-
pull_request:
7-
branches: [ main ]
84
workflow_dispatch:
95
inputs:
106
force_android_build:
117
description: 'Force Android build to run regardless of file changes'
128
required: false
139
type: boolean
1410
default: false
15-
11+
pull_request:
12+
types: [ opened, synchronize, reopened ]
13+
push:
14+
branches: [ main ]
1615
jobs:
1716

1817
check-android-changes:

scripts/install_dependencies_linux.sh

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,9 @@ case $PACKAGE_MANAGER in
4545

4646
echo "Installing X Window System dependencies..."
4747
sudo apt-get install -y libxxf86vm-dev libxi-dev
48+
49+
echo "Installing clang compiler..."
50+
sudo apt-get install -y clang
4851
;;
4952
dnf)
5053
echo "Detected Fedora/RHEL-based system"
@@ -68,6 +71,9 @@ case $PACKAGE_MANAGER in
6871

6972
echo "Installing X Window System dependencies..."
7073
sudo dnf install -y libXxf86vm-devel libXi-devel
74+
75+
echo "Installing clang compiler..."
76+
sudo dnf install -y clang
7177
;;
7278
pacman)
7379
echo "Detected Arch-based system"
@@ -88,6 +94,9 @@ case $PACKAGE_MANAGER in
8894

8995
echo "Installing nlohmann-json..."
9096
sudo pacman -S --needed nlohmann-json || echo "nlohmann-json not found in pacman, will need to be installed manually or via CMake FetchContent"
97+
98+
echo "Installing clang compiler..."
99+
sudo pacman -S --needed clang
91100
;;
92101
*)
93102
echo "Unsupported package manager. Please install the following packages manually:"
@@ -101,6 +110,7 @@ case $PACKAGE_MANAGER in
101110
echo "- libtinygltf-dev or equivalent"
102111
echo "- nlohmann-json3-dev or equivalent"
103112
echo "- libxxf86vm-dev and libxi-dev or equivalent"
113+
echo "- clang compiler"
104114
exit 1
105115
;;
106116
esac

0 commit comments

Comments
 (0)