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 installation rules and update .gitignore for build files #4

Open
wants to merge 16 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
16 commits
Select commit Hold shift + click to select a range
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
71 changes: 71 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
name: Check_installation

on:
push:
branches:
- main
paths:
- src/**
- include/**
- CMakeLists.txt
- .github/workflows/release.yml
pull_request:
paths:
- src/**
- include/**
- CMakeLists.txt
- .github/workflows/release.yml
workflow_dispatch:

jobs:
verification-job:
runs-on: ubuntu-latest
container:
image: ghcr.io/bounverif/rvstd:latest-devel
options: --user root
credentials:
username: ${{ github.actor }}
password: ${{ secrets.github_token }}

steps:
- name: Check out the repository
uses: actions/checkout@v4
with:
persist-credentials: false

- name: Set up permissions
run: sudo chmod -R 777 /__w/_temp

- name: Configure and build this project
uses: threeal/[email protected]
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
if [ -f /usr/local/lib/librvstd.so ]; then
echo "librvstd.so is installed."
else
echo "librvstd.so is not installed."
exit 1
fi

- name: Check if the rvstd directory has been generated
run: |
if [ -d /usr/local/include/rvstd ]; then
echo "rvstd directory is generated."
else
echo "rvstd directory is not generated."
exit 1
fi

3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,6 @@
*.exe
*.out
*.app

# Build files
build/
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -125,4 +125,4 @@ if(ENABLE_TESTS)
endif()

# Debugging message
message(STATUS "Building rvstd version ${PROJECT_VERSION}")
message(STATUS "Building rvstd version ${PROJECT_VERSION}")
Loading