From 11666923e919eb05627bf915d8a96637647065c8 Mon Sep 17 00:00:00 2001 From: ePirat Date: Fri, 8 Apr 2022 15:45:50 +0200 Subject: [PATCH] Add basic GitHub Actions CI --- .github/workflows/meson.yml | 44 +++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 .github/workflows/meson.yml diff --git a/.github/workflows/meson.yml b/.github/workflows/meson.yml new file mode 100644 index 0000000..4e1a22b --- /dev/null +++ b/.github/workflows/meson.yml @@ -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 +