Skip to content

Commit

Permalink
Implemented all functions required for tebako
Browse files Browse the repository at this point in the history
  • Loading branch information
maxirmx committed Nov 25, 2021
1 parent 0275030 commit 496ae79
Showing 1 changed file with 84 additions and 0 deletions.
84 changes: 84 additions & 0 deletions .github/workflows/ubuntu-build.yml
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


0 comments on commit 496ae79

Please sign in to comment.