-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
83be259
commit 2809282
Showing
1 changed file
with
46 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,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 | ||
|