-
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.
Add GitHub Actions workflow for installation verification
- Loading branch information
1 parent
49781e7
commit e6434c9
Showing
1 changed file
with
57 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,57 @@ | ||
name: Check_installation | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
paths: | ||
- src/** | ||
- include/** | ||
- CMakeLists.txt | ||
pull_request: | ||
paths: | ||
- src/** | ||
- include/** | ||
- CMakeLists.txt | ||
workflow_dispatch: | ||
|
||
jobs: | ||
bloaty-job: | ||
runs-on: ubuntu-latest | ||
container: | ||
image: ghcr.io/bounverif/rvstd:latest | ||
credentials: | ||
username: ${{ github.actor }} | ||
password: ${{ secrets.github_token }} | ||
|
||
steps: | ||
- name: Check out the repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Configure and build this project | ||
uses: threeal/cmake-action@latest | ||
with: | ||
build-dir: build | ||
args: -DCMAKE_BUILD_TYPE=RELEASE | ||
|
||
- name: Install the library | ||
run: cmake --install build --prefix /usr/local | ||
|
||
- name: Verify installation | ||
run: | | ||
if [ -f /usr/local/lib/librvstd.a ]; then | ||
echo "librvstd.a is installed." | ||
else | ||
echo "librvstd.a is not installed." | ||
exit 1 | ||
fi | ||
- name: Check if the rvstd file has been generated | ||
run: | | ||
if [ -f /usr/local/include/rvstd ]; then | ||
echo "rvstd file is generated." | ||
else | ||
echo "rvstd file is not generated." | ||
exit 1 | ||
fi | ||