-
Notifications
You must be signed in to change notification settings - Fork 86
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
44 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|