Skip to content

Commit 4e155fd

Browse files
committed
CI: some fixes
* enable PR * rename libclang for ubuntu
1 parent 9ab2e30 commit 4e155fd

File tree

3 files changed

+10
-9
lines changed

3 files changed

+10
-9
lines changed

.github/workflows/zigbuild.yml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,8 @@ name: Unit tests Zig
22

33
on:
44
push:
5-
branches: [ main ]
5+
# branches: [ main ]
66
pull_request:
7-
branches: [ '*' ]
87

98
jobs:
109
build:
@@ -24,11 +23,13 @@ jobs:
2423
if: startsWith(matrix.runs-on, 'ubuntu')
2524
run: |
2625
sudo apt update
27-
sudo apt install -y wget
28-
sudo apt-add-repository "deb http://apt.llvm.org/jammy/ llvm-toolchain-jammy-19 main"
29-
wget -qO- https://apt.llvm.org/llvm-snapshot.gpg.key | sudo tee /etc/apt/trusted.gpg.d/apt.llvm.org.asc
30-
sudo apt update
31-
sudo apt install -y llvm-19
26+
wget https://apt.llvm.org/llvm.sh
27+
chmod +x llvm.sh
28+
sudo ./llvm.sh 19
29+
rm llvm.sh
30+
31+
# Install necessary LLVM 19 development packages
32+
sudo apt-get install -y libllvm19 llvm-19-dev libclang-19-dev clang-19
3233
3334
- name: Install LLVM (MacOS)
3435
if: startsWith(matrix.runs-on, 'macos')

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ in `build.zig`:
3232
const clang_mod = llvm_dep.module("clang"); // <== get clang bindings module
3333
/// your executable config
3434
exe.root_module.addImport("llvm", llvm_mod); // <== add llvm module
35-
exe.root_module.addImport("clang", clang_mod); // <== add llvm module
35+
exe.root_module.addImport("clang", clang_mod); // <== add clang module
3636
// [...]
3737
```
3838

build.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ pub fn build(b: *std.Build) !void {
4444
.optimize = optimize,
4545
});
4646
switch (target.result.os.tag) {
47-
.linux => clang_module.linkSystemLibrary("clang", .{}), // Ubuntu
47+
.linux => clang_module.linkSystemLibrary("clang-19", .{}), // Ubuntu
4848
.macos => {
4949
clang_module.addLibraryPath(.{
5050
.cwd_relative = "/opt/homebrew/opt/llvm/lib",

0 commit comments

Comments
 (0)