Skip to content

Commit

Permalink
Create build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
fangjian19 authored Dec 20, 2024
1 parent a9291a2 commit 30e2695
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: build
on:
push:
branches:
- main

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: ubuntu-latest

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v4

- name: Install openmpi
run: |
sudo apt-get install -y openmpi-bin libopenmpi-dev
- name: Build OpenCFD-Comb
run: |
cmake -S . -B build
cmake --build build -j 2
cmake --install build
ctest --test-dir build

0 comments on commit 30e2695

Please sign in to comment.