Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add github actions to test #4

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 44 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
on:
push:
branches:
- master
pull_request:
branches:
- master

jobs:
tests:
runs-on: ${{ matrix.runs_on }}
strategy:
fail-fast: false
matrix:
include:
- displayTargetName: ubuntu-20.04
runs_on: ubuntu-20.04
- displayTargetName: ubuntu-22.04
runs_on: ubuntu-22.04
timeout-minutes: 100
env:
CCACHE_DIR: ${{ github.workspace }}/.ccache
USE_CCACHE: 1

steps:
- name: checkout
uses: actions/checkout@v2
- name: setup
run: |
sudo sh -c "echo 0 > /proc/sys/vm/mmap_min_addr"
- name: install packages
run: |
sudo apt update -y
sudo apt install -y binutils-dev

- name: build
run: |
make
make -C apps/basic
- name: tests
run: |
LD_PRELOAD=./libzpoline.so LIBZPHOOK=./apps/basic/libzphook_basic.so ls
# - name: Setup upterm session
# uses: lhotari/action-upterm@v1
1 change: 1 addition & 0 deletions apps/basic/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ static long hook_function(long a1, long a2, long a3,
long a7)
{
printf("output from hook_function: syscall number %ld\n", a1);
fflush(stdout);
return next_sys_call(a1, a2, a3, a4, a5, a6, a7);
}

Expand Down