Skip to content

Commit

Permalink
Add GitHub Action for Linux build
Browse files Browse the repository at this point in the history
  • Loading branch information
hartwork committed Jan 20, 2022
1 parent c608613 commit 287d336
Show file tree
Hide file tree
Showing 2 changed files with 54 additions and 0 deletions.
52 changes: 52 additions & 0 deletions .github/workflows/linux.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
# Copyright (c) 2022 Sebastian Pipping <sebastian@pipping.org>
# Licensed under the GPL v2 or later

name: Build for Linux

on:
pull_request:
push:
schedule:
- cron: '0 2 * * 5' # Every Friday at 2am

jobs:
checks:
name: Build for Linux
runs-on: ubuntu-20.04
steps:

- uses: actions/checkout@v2.4.0

- name: Install build dependencies
run: |-
set -x
sudo apt-get update
sudo apt-get install --yes --no-install-recommends -V \
gcovr \
libcmocka-dev \
libgcrypt20-dev \
libglib2.0-dev \
libmxml-dev \
libsqlite3-dev
- name: Build
run: |-
set -x
make -j $(nproc) all
- name: Test
run: |-
make coverage # includes tests
- name: Install
run: |-
set -x -o pipefail
make DESTDIR="${PWD}"/ROOT install
find ROOT/ -not -type d | sort | xargs ls -l
- name: Store coverage HTML report
uses: actions/upload-artifact@v2.3.1
with:
name: coverage
path: coverage/
if-no-files-found: error
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Added
- It is now possible to add a key with a `prekey` attribute. ([#28](https://github.com/gkdr/libomemo/issues/28))
- A function to check via the attribute whether a received key is a prekey.
### Infrastructure
- Cover Linux build by GitHub Actions CI ([#37](https://github.com/gkdr/libomemo/pull/37)) (thanks, [@hartwork](https://github.com/hartwork)!)

### Fixed
- Added missing symlinks for the `.so` files. ([#34](https://github.com/gkdr/libomemo/pull/34)) (thanks, [@hartwork](https://github.com/hartwork)!)
Expand Down

0 comments on commit 287d336

Please sign in to comment.