Skip to content

Commit

Permalink
Add basic GitHub Actions CI
Browse files Browse the repository at this point in the history
  • Loading branch information
ePirat committed Apr 8, 2022
1 parent b9b4ff8 commit 1166692
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/meson.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Build

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

env:
# Customize the Meson build type here (plain,debug,debugoptimized,release,minsize,custom)
BUILD_TYPE: release

jobs:
build:
name: Ubuntu 20.04
# You can convert this to a matrix build if you need cross-platform coverage.
# See: https://docs.github.com/en/free-pro-team@latest/actions/learn-github-actions/managing-complex-workflows#using-a-build-matrix
runs-on: ubuntu-20.04

steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v3
#with:
# cache: 'pip'

- name: Install Buildsystem
run: |
pip install meson==0.53.0
sudo apt-get install -y ninja-build
- name: Install Libtasn1
run: sudo apt-get install -y libtasn1-dev libtasn1-bin

- name: Configure Meson
run: meson setup ${{github.workspace}}/build --buildtype ${{env.BUILD_TYPE}}

- name: Build
run: ninja -C ${{github.workspace}}/build

#- name: Test
# working-directory: ${{github.workspace}}/build
# # Execute tests defined by the meson.build file
# run: meson test

0 comments on commit 1166692

Please sign in to comment.