@@ -0,0 +1,31 @@
|
|||||||
|
name: CMake Build and Deploy
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: ["main"]
|
||||||
|
pull_request:
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Checkout code
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Install dependencies
|
||||||
|
run: |
|
||||||
|
sudo apt-get update
|
||||||
|
sudo apt-get install -y cmake build-essential
|
||||||
|
|
||||||
|
- name: Build project
|
||||||
|
run: cmake --build build -- -j$(nproc)
|
||||||
|
|
||||||
|
- name: Run tests
|
||||||
|
run: ctest --test-dir build || true
|
||||||
|
|
||||||
|
- name: Upload artifact
|
||||||
|
uses: actions/upload-artifact@v4
|
||||||
|
with:
|
||||||
|
name: beluga
|
||||||
|
path: build/beluga
|
||||||
Reference in New Issue
Block a user