Skip to content

Commit 73e53b9

Browse files
committed
ci: split into linux/macOS workflows, dual README badges
1 parent 1d4d8e7 commit 73e53b9

3 files changed

Lines changed: 33 additions & 14 deletions

File tree

Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: CI
1+
name: CI (Linux)
22

33
on:
44
push:
@@ -9,24 +9,15 @@ on:
99
jobs:
1010
build:
1111

12-
strategy:
13-
fail-fast: false
14-
matrix:
15-
os: [ubuntu-latest, macos-latest]
16-
17-
runs-on: ${{ matrix.os }}
12+
runs-on: ubuntu-latest
1813

1914
steps:
2015
- uses: actions/checkout@v4
21-
- name: install packages (ubuntu)
22-
if: runner.os == 'Linux'
16+
- name: install packages
2317
run: >
2418
sudo apt-get update && sudo apt-get install -y
2519
pkg-config libleveldb-dev libsnappy-dev libcurl4-openssl-dev
2620
libssl-dev libncurses-dev libcjson-dev
27-
- name: install packages (macOS)
28-
if: runner.os == 'macOS'
29-
run: brew install pkg-config openssl leveldb snappy curl ncurses cjson
3021
- name: build (debug)
3122
run: make
3223
- name: test (fuzz + gcs)
@@ -36,4 +27,4 @@ jobs:
3627
- name: build (release)
3728
run: make clean && make BUILD=release
3829
- name: build (asan+ubsan)
39-
run: make clean && make BUILD=asan+ubsan
30+
run: make clean && make BUILD=asan+ubsan

.github/workflows/ci-macos.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: CI (macOS)
2+
3+
on:
4+
push:
5+
branches: [ "main" ]
6+
pull_request:
7+
branches: [ "main" ]
8+
9+
jobs:
10+
build:
11+
12+
runs-on: macos-latest
13+
14+
steps:
15+
- uses: actions/checkout@v4
16+
- name: install packages
17+
run: brew install pkg-config openssl leveldb snappy curl ncurses cjson
18+
- name: build (debug)
19+
run: make
20+
- name: test (fuzz + gcs)
21+
run: make check
22+
- name: build (strict warnings)
23+
run: make clean && make STRICT=1
24+
- name: build (release)
25+
run: make clean && make BUILD=release
26+
- name: build (asan+ubsan)
27+
run: make clean && make BUILD=asan+ubsan

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
[![CI](https://github.com/mx4/bitc/actions/workflows/ci.yml/badge.svg)](https://github.com/mx4/bitc/actions/workflows/ci.yml)
1+
[![CI (Linux)](https://github.com/mx4/bitc/actions/workflows/ci-linux.yml/badge.svg)](https://github.com/mx4/bitc/actions/workflows/ci-linux.yml)
2+
[![CI (macOS)](https://github.com/mx4/bitc/actions/workflows/ci-macos.yml/badge.svg)](https://github.com/mx4/bitc/actions/workflows/ci-macos.yml)
23

34
### BITC
45

0 commit comments

Comments
 (0)