Skip to content

Commit 1166692

Browse files
committed
Add basic GitHub Actions CI
1 parent b9b4ff8 commit 1166692

File tree

1 file changed

+44
-0
lines changed

1 file changed

+44
-0
lines changed

.github/workflows/meson.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: Build
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
pull_request:
7+
branches: [ master ]
8+
9+
env:
10+
# Customize the Meson build type here (plain,debug,debugoptimized,release,minsize,custom)
11+
BUILD_TYPE: release
12+
13+
jobs:
14+
build:
15+
name: Ubuntu 20.04
16+
# You can convert this to a matrix build if you need cross-platform coverage.
17+
# See: https://docs.github.com/en/free-pro-team@latest/actions/learn-github-actions/managing-complex-workflows#using-a-build-matrix
18+
runs-on: ubuntu-20.04
19+
20+
steps:
21+
- uses: actions/checkout@v3
22+
- uses: actions/setup-python@v3
23+
#with:
24+
# cache: 'pip'
25+
26+
- name: Install Buildsystem
27+
run: |
28+
pip install meson==0.53.0
29+
sudo apt-get install -y ninja-build
30+
31+
- name: Install Libtasn1
32+
run: sudo apt-get install -y libtasn1-dev libtasn1-bin
33+
34+
- name: Configure Meson
35+
run: meson setup ${{github.workspace}}/build --buildtype ${{env.BUILD_TYPE}}
36+
37+
- name: Build
38+
run: ninja -C ${{github.workspace}}/build
39+
40+
#- name: Test
41+
# working-directory: ${{github.workspace}}/build
42+
# # Execute tests defined by the meson.build file
43+
# run: meson test
44+

0 commit comments

Comments
 (0)