Skip to content

Commit

Permalink
Create check-build.yml GitHub Action
Browse files Browse the repository at this point in the history
  • Loading branch information
davidjwbbc authored Aug 1, 2023
1 parent 5c6595b commit 93ed160
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/check-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: C/C++ CI

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: prerequisites
run: sudo apt-get -y install git ninja-build build-essential flex bison libsctp-dev libgnutls28-dev libgcrypt-dev libssl-dev libidn11-dev libmongoc-dev libbson-dev libyaml-dev libnghttp2-dev libmicrohttpd-dev libcurl4-gnutls-dev libnghttp2-dev libtins-dev libtalloc-dev meson
- name: configure
run: meson setup --prefix="$GITHUB_WORKSPACE/install" "$GITHUB_WORKSPACE/build"
- name: make
run: ninja -C "$GITHUB_WORKSPACE/build"
- name: test installation
run: ninja -C "$GITHUB_WORKSPACE/build" install

0 comments on commit 93ed160

Please sign in to comment.