Skip to content

Commit

Permalink
Workflows (#1)
Browse files Browse the repository at this point in the history
* Chore: Fix for workflows
  • Loading branch information
Grabt234 authored Mar 27, 2024
1 parent f4fa01e commit 27f3115
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 13 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/CMake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,12 @@ jobs:
runs-on: ubuntu-latest

steps:


- name: Checkout project and submodules
uses: actions/checkout@v3
with:
submodules: recursive

- name: Install Requried Libs for FERS
run: sudo apt-get install libboost-all-dev libfftw3-dev libhdf5-dev libhdf5-serial-dev build-essential cmake cmake-qt-gui python-all-dev libtinyxml-dev

Expand All @@ -18,7 +23,7 @@ jobs:
cd build
pwd # This will print the current working directory after cd
ls -a
cmake ../../ -D FERS_LIB_HDF5="/usr/lib/x86_64-linux-gnu/hdf5/serial/libhdf5.so" -D FERS_LIB_HDF5_HL="/usr/lib/x86_64-linux-gnu/hdf5/serial/libhdf5_hl.so" -D CMAKE_CXX_FLAGS="-I/usr/include/hdf5/serial/"
cmake -S .. -B . -D FERS_LIB_HDF5="/usr/lib/x86_64-linux-gnu/hdf5/serial/libhdf5.so" -D FERS_LIB_HDF5_HL="/usr/lib/x86_64-linux-gnu/hdf5/serial/libhdf5_hl.so" -D CMAKE_CXX_FLAGS="-I/usr/include/hdf5/serial/"
- name: Build FERS
run: |
Expand All @@ -30,9 +35,10 @@ jobs:

- name: Generate Validator
run: |
cd config_validators
mkdir build
cd build
cmake
cmake ..
- name: Build Validator
run: |
Expand Down
27 changes: 17 additions & 10 deletions .github/workflows/ReleaseCMake.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,19 @@
name: C++ Build on Linux

on: [push]
on:
release:
types: [published]

jobs:
build:
runs-on: ubuntu-latest

steps:

- name: Checkout project and submodules
uses: actions/checkout@v3
with:
submodules: recursive

- name: Install Requried Libs
run: sudo apt-get install libboost-all-dev libfftw3-dev libhdf5-dev libhdf5-serial-dev build-essential cmake cmake-qt-gui python-all-dev libtinyxml-dev
Expand All @@ -24,11 +31,11 @@ jobs:
- name: Prepare FERS for zip
run: |
mkdir build/toZip
cp build/src/fers ~/toZip/fers
mkdir ./toZip
cp build/src/fers ./toZip/fers
- name: Go nack to home
run: cd ~
run: cd ..

- name: Install Requried Libs for validator
run: sudo apt install libxerces-c-dev
Expand All @@ -38,7 +45,7 @@ jobs:
cd config_validators
mkdir build
cd build
cmake
cmake ..
- name: Build Validator
run: |
Expand All @@ -47,21 +54,21 @@ jobs:
- name: Prepare Validator for zip
run: |
cp config_validators/build/xml_validator_output ~/toZip/xml_validator_output
cp config_validators/build/kml_visualiser ~/toZip/kml_visualiser
cp config_validators/build/validator ~/toZip/validator
sudo cp config_validators/build/xml_validator_output ./toZip/xml_validator_output
sudo cp config_validators/build/kml_visualiser ./toZip/kml_visualiser
sudo cp config_validators/build/validator ./toZip/validator
- name: Zip Docs and Build
uses: TheDoctor0/[email protected]
with:
directory: /toZip # File to add to the archive
directory: ./toZip # File to add to the archive
path: ./*
Filename: FERS.zip # The name of the archive file

- name: Upload to Release
uses: softprops/action-gh-release@v1
with:
files: |
build/toZip/FERS.zip
./toZip/FERS.zip
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 27f3115

Please sign in to comment.