Skip to content

Commit

Permalink
add ci
Browse files Browse the repository at this point in the history
  • Loading branch information
KoyamaSohei committed Aug 15, 2024
1 parent 83be259 commit 2809282
Showing 1 changed file with 46 additions and 0 deletions.
46 changes: 46 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: CI Build and Test

on:
push:
branches:
- '**'
pull_request:
branches:
- '**'

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Check out repository
uses: actions/checkout@v3

- name: Set up dependencies
run: |
sudo apt-get update
sudo apt-get install -y autoconf automake libtool make gcc g++ libopenmpi-dev libucx-dev libgtest-dev
- name: Run autoreconf
run: autoreconf -i

- name: Configure the project
run: ./configure

- name: Build the project
run: make

- name: Install the project
run: sudo make install

- name: Run finchfsd
run: |
mpirun --allow-run-as-root -x LD_LIBRARY_PATH=/usr/local/lib --np 1 finchfsd &
sleep 5
- name: Build finchfs_test
run: g++ tests/finchfs_test.cc `pkg-config --libs finchfs` -lgtest -o finchfs_test

- name: Run finchfs_test
run: LD_LIBRARY_PATH=/usr/local/lib ./finchfs_test

0 comments on commit 2809282

Please sign in to comment.