Compare commits
6 Commits
8b6f628d0c
...
5c6f1a4169
| Author | SHA1 | Date | |
|---|---|---|---|
| 5c6f1a4169 | |||
| 3775c79f84 | |||
| ed94f09a9c | |||
| afd5d1189b | |||
| d2362eba15 | |||
| 7bc4d571f4 |
34
.gitea/workflows/unit_tests.yaml
Normal file
34
.gitea/workflows/unit_tests.yaml
Normal file
@ -0,0 +1,34 @@
|
|||||||
|
name: Build and Run C++ Unit Tests
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- CI
|
||||||
|
pull_request:
|
||||||
|
branches:
|
||||||
|
- CI
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build-and-test:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Checkout code
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
|
- name: Install Dependencies
|
||||||
|
run: |
|
||||||
|
apt-get update
|
||||||
|
apt-get install -y cmake # Install required packages
|
||||||
|
|
||||||
|
- name: Build the Project
|
||||||
|
run: |
|
||||||
|
mkdir build
|
||||||
|
cd build
|
||||||
|
cmake ..
|
||||||
|
make # Build the LinearAlgebra library and tests
|
||||||
|
|
||||||
|
- name: Run Unit Tests
|
||||||
|
run: |
|
||||||
|
cd build
|
||||||
|
./LinearAlgebraTest # Execute the test binary
|
||||||
Loading…
x
Reference in New Issue
Block a user