update workflows

This commit is contained in:
Axel Kohlmeyer
2022-05-28 04:54:01 -04:00
parent 3615639bdd
commit d0edd7129c
4 changed files with 58 additions and 2 deletions

View File

@ -5,6 +5,8 @@ on:
push:
branches: [develop]
workflow_dispatch:
jobs:
analyze:
name: Analyze

View File

@ -3,12 +3,14 @@ name: "Native Windows Compilation and Unit Tests"
on:
push:
branches: [develop]
branches: [collected-small-changes]
workflow_dispatch:
jobs:
build:
name: Windows Compilation Test
if: ${{ github.repository == 'lammps/lammps' }}
if: ${{ github.repository == 'akohlmey/lammps' }}
runs-on: windows-latest
steps:

50
.github/workflows/unittest-gcc.yml vendored Normal file
View File

@ -0,0 +1,50 @@
# GitHub action to build LAMMPS on Windows with GCC and Ninja
name: "Native Windows Compilation /w GCC and Unit Tests using Ninja"
on:
push:
branches: [collected-small-changes]
jobs:
build:
name: Windows Compilation Test
if: ${{ github.repository == 'akohlmey/lammps' }}
runs-on: windows-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
with:
fetch-depth: 2
- name: Select Python version
uses: actions/setup-python@v2
with:
python-version: '3.10'
- name: Building LAMMPS via CMake
shell: bash
run: |
choco install ninja
python3 -m pip install numpy
python3 -m pip install pyyaml
cmake -C cmake/presets/windows.cmake \
-D PKG_PYTHON=on \
-S cmake -B build \
-D BUILD_SHARED_LIBS=on \
-D LAMMPS_EXCEPTIONS=on \
-D ENABLE_TESTING=on \
-D CMAKE_BUILD_TYPE=Release \
-G Ninja
cmake --build build
- name: Run LAMMPS executable
shell: bash
run: |
./build/lmp.exe -h
./build/lmp.exe -in bench/in.lj
- name: Run Unit Tests
working-directory: build
shell: bash
run: ctest -V

View File

@ -5,6 +5,8 @@ on:
push:
branches: [develop]
workflow_dispatch:
jobs:
build:
name: MacOS Unit Test