Skip to content

Commit f7d0673

Browse files
committed
Add github actions
1 parent d6e07e2 commit f7d0673

File tree

3 files changed

+39
-1
lines changed

3 files changed

+39
-1
lines changed

.github/workflows/ci.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Continuous Integration
2+
3+
on:
4+
push:
5+
branches: [master]
6+
7+
pull_request:
8+
branches: [master]
9+
10+
workflow_dispatch:
11+
12+
jobs:
13+
build:
14+
strategy:
15+
fail-fast: false
16+
matrix:
17+
zig-version: ["master", "0.15.2"]
18+
os: [ubuntu-latest, macos-latest]
19+
20+
runs-on: ${{ matrix.os }}
21+
22+
steps:
23+
- name: Check out repository
24+
uses: actions/checkout@v6
25+
- name: Set up Zig
26+
uses: mlugg/setup-zig@v2
27+
with:
28+
version: ${{ matrix.zig-version }}
29+
30+
- name: Build dependencies
31+
run: zig build dependencies --summary all
32+
- name: Build libgrpc
33+
run: zig build --summary new
34+
- name: Build test programs
35+
run: zig build examples --summary new
36+
- name: Run tests
37+
run: zig build test --summary new

build.zig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -277,6 +277,7 @@ pub fn build(b: *Build) !void {
277277
mod.addCSourceFile(.{ .file = upstream.path("test/core/config/core_configuration_test.cc"), .flags = &cxx_flags });
278278
mod.addIncludePath(upstream.path("src/core/ext/upb-gen"));
279279
mod.addIncludePath(upstream.path("src/core/ext/upbdefs-gen"));
280+
mod.addIncludePath(upstream.path("third_party/upb"));
280281
tests.appendAssumeCapacity(.{ .name = "core_configuration", .mod = mod });
281282
}
282283
{

build.zig.zon

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
.name = .grpc,
33
.version = "1.76.0",
44
.fingerprint = 0x2b44e58c15cd55d6,
5-
.minimum_zig_version = "0.14.1",
5+
.minimum_zig_version = "0.15.0",
66

77
.paths = .{
88
"build.zig",

0 commit comments

Comments
 (0)