-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implemented all functions required for tebako
- Loading branch information
Showing
1 changed file
with
84 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,84 @@ | ||
name: Ubuntu build | ||
|
||
on: | ||
push: | ||
branches: [ master, issue-1 ] | ||
paths-ignore: | ||
- 'docs/**' | ||
- '**.adoc' | ||
- '**.md' | ||
pull_request: | ||
branches: [ master ] | ||
paths-ignore: | ||
- 'docs/**' | ||
- '**.adoc' | ||
- '**.md' | ||
|
||
# Allows you to run this workflow manually from the Actions tab | ||
workflow_dispatch: | ||
|
||
env: | ||
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.) | ||
BUILD_TYPE: Debug | ||
# The folder for dwarfs and other dependenies | ||
DEPS: deps | ||
# GitHub dependencies' | ||
INCBIN_TAG: 348e36b | ||
DWARFS_TAG: 78401c3 | ||
|
||
jobs: | ||
Ubuntu-build: | ||
runs-on: ubuntu-latest | ||
if: "!contains(github.event.head_commit.message, 'skip ci')" | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Create deps folder and cache key | ||
run: | | ||
mkdir ${{github.workspace}}/${{env.DEPS}} | ||
echo "Keys" > key.txt | ||
echo ${{ env.INCBIN_TAG }} >> key.txt | ||
echo ${{ env.DWARFS_TAG }} >> key.txt | ||
- name: Process cache | ||
uses: actions/cache@v2 | ||
with: | ||
path: ${{github.workspace}}/${{env.DEPS}} | ||
key: ${{ github.workflow }}-${{ hashFiles('key.txt') }}-v1 | ||
|
||
- name: Install packages Ubuntu | ||
# Already installed: bison flex pkg-config | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install \ | ||
ronn binutils-dev libarchive-dev libevent-dev libjemalloc-dev acl-dev libxml2-dev \ | ||
libdouble-conversion-dev libiberty-dev liblz4-dev liblzma-dev libssl-dev \ | ||
libboost-context-dev libboost-filesystem-dev libboost-program-options-dev \ | ||
libboost-regex-dev libboost-system-dev libboost-thread-dev libfuse3-dev \ | ||
libunwind-dev libdwarf-dev libelf-dev libfmt-dev libgoogle-glog-dev libgtest-dev | ||
- name: Configure | ||
run: cmake -B ${{github.workspace}} -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} | ||
|
||
- name: Build | ||
run: cmake --build ${{github.workspace}} --config ${{env.BUILD_TYPE}} | ||
|
||
- name: Unit tests | ||
run: make test | ||
|
||
- name: Running pure "C" program, calling all C API redefines | ||
run: ./wr-bin | ||
|
||
- name: Running ldd to check that wr-bin has been linked statically | ||
run: ldd wr-bin 2>&1 >/dev/null | grep -i 'not a dynamic executable' | ||
|
||
# [TODO] | ||
# - name: Checking that tmp dir has been cleaned | ||
# run: | | ||
# shopt -s nullglob | ||
# numfiles=(/tmp/*) | ||
# numfiles=${#numfiles[@]} | ||
# echo $numfiles | ||
|
||
|