try 4
This commit is contained in:
37
.github/workflows/ci.yml
vendored
37
.github/workflows/ci.yml
vendored
@@ -108,6 +108,13 @@ jobs:
|
||||
with:
|
||||
cmake-version: '3.14.x'
|
||||
|
||||
# Make sure tar and unzip are available
|
||||
- name: Install unzip
|
||||
run: |
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y unzip
|
||||
if: runner.os == 'Linux'
|
||||
|
||||
# Create build directory
|
||||
- name: Create Build Directory
|
||||
run: cmake -E make_directory ${{github.workspace}}/build
|
||||
@@ -120,6 +127,9 @@ jobs:
|
||||
-DCMAKE_BUILD_TYPE=${{ matrix.build_type }}
|
||||
-DTINYTEST_BUILD_SHARED_LIBS=${{ matrix.shared_libs }}
|
||||
-DBUILD_TESTING=ON
|
||||
-DCPPUTILS_BUILD_TESTS=OFF
|
||||
-DCPPUTILS_ENABLE_TESTING=OFF
|
||||
-DCPPUTILS_SKIP_GOOGLETEST=ON
|
||||
|
||||
# Build
|
||||
- name: Build
|
||||
@@ -138,18 +148,23 @@ jobs:
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
- name: Setup CMake
|
||||
uses: jwlawson/actions-setup-cmake@v1.13
|
||||
with:
|
||||
cmake-version: '3.14.x'
|
||||
|
||||
- name: Build and Install
|
||||
- name: Manual Install
|
||||
run: |
|
||||
mkdir -p build
|
||||
cd build
|
||||
cmake .. -DCMAKE_INSTALL_PREFIX=$HOME/tinytest-install
|
||||
cmake --build .
|
||||
cmake --install .
|
||||
# Create installation directories
|
||||
mkdir -p $HOME/tinytest-install/include/tinytest
|
||||
mkdir -p $HOME/tinytest-install/lib
|
||||
|
||||
# Copy the header file
|
||||
cp tinytest.h $HOME/tinytest-install/include/tinytest/
|
||||
|
||||
# Compile the library
|
||||
g++ -std=c++17 -O2 -c tinytest.cpp -o tinytest.o
|
||||
|
||||
# Create static library
|
||||
ar rcs libtinytest.a tinytest.o
|
||||
|
||||
# Install the library
|
||||
cp libtinytest.a $HOME/tinytest-install/lib/
|
||||
|
||||
- name: Verify Installation
|
||||
run: |
|
||||
|
||||
Reference in New Issue
Block a user