Skip to content

Commit 6180c8b

Browse files
committed
Add basic CI
1 parent 5fc5898 commit 6180c8b

File tree

1 file changed

+60
-0
lines changed

1 file changed

+60
-0
lines changed

.github/workflows/ci.yml

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: ["main"]
6+
pull_request:
7+
branches: ["main"]
8+
9+
jobs:
10+
build-linux:
11+
name: Build (Linux)
12+
runs-on: ubuntu-24.04
13+
14+
steps:
15+
- name: Install dependencies
16+
run: |
17+
sudo apt-get update
18+
sudo apt-get install meson libbz2-dev
19+
- name: Checkout code
20+
uses: actions/checkout@v4
21+
- name: Setup build
22+
run: meson setup build
23+
- name: Build library
24+
run: meson compile -C build/
25+
26+
build-macos:
27+
name: Build (macOS)
28+
runs-on: macos-14
29+
30+
steps:
31+
- name: Install dependencies
32+
run: brew install meson ninja
33+
- name: Checkout code
34+
uses: actions/checkout@v4
35+
- name: Setup build
36+
run: meson setup build
37+
- name: Build library
38+
run: meson compile -C build/
39+
40+
build-windows:
41+
name: Build (Windows MINGW64)
42+
runs-on: windows-2022
43+
defaults:
44+
run:
45+
shell: msys2 {0}
46+
47+
steps:
48+
- name: Setup MSYS2 and install dependencies
49+
uses: msys2/setup-msys2@v2
50+
with:
51+
install: >-
52+
mingw-w64-x86_64-toolchain
53+
mingw-w64-x86_64-meson
54+
mingw-w64-x86_64-bzip2
55+
- name: Checkout code
56+
uses: actions/checkout@v4
57+
- name: Setup build
58+
run: meson setup build
59+
- name: Build library
60+
run: meson compile -C build/

0 commit comments

Comments
 (0)