Skip to content

Commit

Permalink
Try GitHub Actions with cmake
Browse files Browse the repository at this point in the history
  • Loading branch information
han190 committed Mar 11, 2024
1 parent 63a28f9 commit b64d8ee
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 5 deletions.
16 changes: 12 additions & 4 deletions .github/workflows/PE-Fortran.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,16 @@ jobs:
if: contains( matrix.os, 'ubuntu' )
run: sudo apt install gfortran-${{ matrix.gcc_version }}

- name: Build PE-Fortran by GNU make
run: make profile=debug
- name: Install CMake
if: contains( matrix.os, 'ubuntu' )
run: sudo apt install cmake

- name: Test PE-Fortran by GNU make
run: make test profile=debug
- name: Configure and test with CMake
if: contains( matrix.os, 'ubuntu' )
run: |
mkdir -p build
cd build
cmake .. -DCMAKE_BUILD_TYPE=Release
make clean
make
make test
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,6 @@ add_custom_target(test
DEPENDS PE-Fortran)

# Install
install(TARGETS PE-Preprocess PE-Fortran DESTINATION $ENV{HOME}/.local/bin)
install(TARGETS PE-Fortran DESTINATION $ENV{HOME}/.local/bin)
file(GLOB data_files ${PROJECT_SOURCE_DIR}/data/*.txt)
install(FILES ${data_files} DESTINATION ${data_prefix})

0 comments on commit b64d8ee

Please sign in to comment.