Skip to content

Merge pull request #75 from OpenSEMBA/dev #26

Merge pull request #75 from OpenSEMBA/dev

Merge pull request #75 from OpenSEMBA/dev #26

name: automatic-release-ubuntu-gnu
on:
push:
branches:
- main
jobs:
builds-and-test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: 'recursive'
- name: Setup ninja
uses: seanmiddleditch/gha-setup-ninja@master
- name: Install required packages
run: |
sudo apt install libhdf5-dev libopenmpi-dev
- name: Build application
run: |
cmake -S . -B build -G Ninja -DCMAKE_BUILD_TYPE=Release
cmake --build build -j
- name: Run fdtd unit tests
run: |
build/bin/fdtd_tests
- name: Install python wrapper requirements
timeout-minutes: 60
run: |
python -m pip install -r requirements.txt
- name: Run wrapper tests
timeout-minutes: 60
run: |
python -m pytest test
- name: Get current date
id: date
run: echo "::set-output name=date::$(date +'%Y-%m-%d')"
- name: Creating archive
run: |
tar -czvf semba-fdtd-ubuntu-gnu.tar.gz build/bin/* LICENSE
- name: Generating release
uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
automatic_release_tag: "${{ steps.date.outputs.date }}-ubuntu-gnu"
prerelease: false
title: "${{ steps.date.outputs.date }} Ubuntu GNU dev. build"
files: |
semba-fdtd-ubuntu-gnu.tar.gz