Skip to content

Commit

Permalink
CI: added some emoji to step names to enhance overview.
Browse files Browse the repository at this point in the history
  • Loading branch information
GPMueller committed Feb 20, 2021
1 parent 4981481 commit 71d2f07
Showing 1 changed file with 47 additions and 47 deletions.
94 changes: 47 additions & 47 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,36 +34,36 @@ jobs:
steps:
- uses: actions/checkout@v2

- name: Install required system packages
- name: πŸ“š Install required system packages
if: matrix.os == 'ubuntu-latest'
run: |
sudo apt update
sudo apt install xorg-dev libglu1-mesa-dev libgtk-3-dev
- name: Create build folder
- name: πŸ“ Create build folder
run: cmake -E make_directory ${{runner.workspace}}/build

- name: configure with OpenMP
- name: βš™ Configure with OpenMP
if: matrix.openmp == true
shell: bash
working-directory: ${{runner.workspace}}/build
run: cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=$BUILD_TYPE $CMAKE_FLAGS -DSPIRIT_USE_OPENMP=ON

- name: configure
- name: βš™ Configure
if: matrix.openmp == false
shell: bash
working-directory: ${{runner.workspace}}/build
run: cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=$BUILD_TYPE $CMAKE_FLAGS

- name: build
- name: πŸ›  Build
shell: bash
working-directory: ${{runner.workspace}}/build
run: cmake --build . --config $BUILD_TYPE -j 2

- name: Install python packages
- name: πŸ“š Install python packages
run: pip install --user numpy

- name: test
- name: πŸ§ͺ Test
shell: bash
working-directory: ${{runner.workspace}}/build
run: ctest -C $BUILD_TYPE -E $EXCLUDETESTS --output-on-failure
Expand All @@ -80,27 +80,27 @@ jobs:
with:
python-version: '3.x'

- name: Create build folder
- name: πŸ“ Create build folder
run: cmake -E make_directory ${{runner.workspace}}/build

- name: configure
- name: βš™ Configure
shell: bash
working-directory: ${{runner.workspace}}/build
run: cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=$BUILD_TYPE $CMAKE_FLAGS

- name: build
- name: πŸ›  Build
shell: bash
working-directory: ${{runner.workspace}}/build
run: cmake --build . --config Release -j 2

- name: Install necessary packages
- name: πŸ“š Install necessary packages
run: |
python -m pip install --upgrade pip
python -m pip install numpy coverage 'coveralls<3' wheel
sudo apt update
sudo apt install lcov
- name: generate C++ coverage
- name: πŸ§ͺ Generate C++ coverage
shell: bash
working-directory: ${{runner.workspace}}/build
run: |
Expand All @@ -109,12 +109,12 @@ jobs:
lcov -c --no-external --directory . --base-directory $GITHUB_WORKSPACE/core -o after_test.info
lcov -a baseline.info -a after_test.info -o total_test.info
lcov -r total_test.info \*thirdparty\* \*/test/\* \*Collection\* \*DLL_\* -o coverage.info
- name: upload C++ coverage
- name: ⬆ Upload C++ coverage
uses: codecov/codecov-action@v1
with:
files: ${{runner.workspace}}/build/coverage.info

- name: Python API coverage
- name: πŸ§ͺ Python API coverage
working-directory: ./core/python
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -134,23 +134,23 @@ jobs:
steps:
- uses: actions/checkout@v2

- name: Create build folder
- name: πŸ“ Create build folder
run: cmake -E make_directory ${{runner.workspace}}/build

- name: configure
- name: βš™ Configure
shell: bash
working-directory: ${{runner.workspace}}/build
run: cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=$BUILD_TYPE $CMAKE_FLAGS

- name: build
- name: πŸ›  Build
shell: bash
working-directory: ${{runner.workspace}}/build
run: cmake --build . --config $BUILD_TYPE -j 2

- name: Install python packages
- name: πŸ“š Install python packages
run: pip install --user numpy

- name: test
- name: πŸ§ͺ Test
shell: bash
working-directory: ${{runner.workspace}}/build
run: ctest -C $BUILD_TYPE --output-on-failure
Expand All @@ -170,20 +170,20 @@ jobs:
steps:
- uses: actions/checkout@v2

- name: Install CUDA
- name: πŸ“š Install CUDA
run: |
sudo apt update
sudo apt install nvidia-cuda-toolkit
- name: Create build folder
- name: πŸ“ Create build folder
run: cmake -E make_directory ${{runner.workspace}}/build

- name: configure
- name: βš™ Configure
shell: bash
working-directory: ${{runner.workspace}}/build
run: cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=$BUILD_TYPE $CMAKE_FLAGS

- name: build
- name: πŸ›  Build
shell: bash
working-directory: ${{runner.workspace}}/build
run: cmake --build . --config $BUILD_TYPE -j 2
Expand All @@ -197,20 +197,20 @@ jobs:
steps:
- uses: actions/checkout@v2

- name: Install Qt5
- name: πŸ“š Install Qt5
run: |
sudo apt update
sudo apt install qt5-default libqt5charts5-dev
- name: Create build folder
- name: πŸ“ Create build folder
run: cmake -E make_directory ${{runner.workspace}}/build

- name: configure
- name: βš™ Configure
shell: bash
working-directory: ${{runner.workspace}}/build
run: cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=$BUILD_TYPE $CMAKE_FLAGS

- name: build
- name: πŸ›  Build
shell: bash
working-directory: ${{runner.workspace}}/build
run: cmake --build . --config $BUILD_TYPE -j 2
Expand All @@ -219,31 +219,31 @@ jobs:
runs-on: ubuntu-20.04
env:
BUILD_TYPE: Release
CMAKE_FLAGS: -DSPIRIT_BUILD_FOR_JS=ON
CMAKE_FLAGS: -DSPIRIT_UI_USE_IMGUI=ON -DSPIRIT_BUILD_FOR_JS=ON
EMSCRIPTEN_VERSION: "1.39.20"

steps:
- uses: actions/checkout@v2

- name: Install Emscripten
- name: πŸ“š Install Emscripten
working-directory: ${{runner.workspace}}
run: |
git clone https://github.com/emscripten-core/emsdk.git
cd emsdk
./emsdk install $EMSCRIPTEN_VERSION
./emsdk activate $EMSCRIPTEN_VERSION
- name: Create build folder
- name: πŸ“ Create build folder
run: cmake -E make_directory ${{runner.workspace}}/build

- name: configure
- name: βš™ Configure
shell: bash
working-directory: ${{runner.workspace}}/build
run: |
source ${{runner.workspace}}/emsdk/emsdk_env.sh
cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=$BUILD_TYPE $CMAKE_FLAGS -DCMAKE_TOOLCHAIN_FILE=${{runner.workspace}}/emsdk/upstream/emscripten/cmake/Modules/Platform/Emscripten.cmake
- name: build
- name: πŸ›  Build
shell: bash
working-directory: ${{runner.workspace}}/build
run: |
Expand All @@ -269,46 +269,46 @@ jobs:
with:
python-version: '3.x'

- name: Configure environment
- name: βš™ Configure environment
shell: bash
if: github.ref == 'refs/heads/master'
run: echo "SPIRIT_ADD_VERSION_SUFFIX=false" >> $GITHUB_ENV

- name: Create build folder
- name: πŸ“ Create build folder
run: cmake -E make_directory ${{runner.workspace}}/build

- name: configure
- name: βš™ Configure
shell: bash
working-directory: ${{runner.workspace}}/build
run: cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=$BUILD_TYPE $CMAKE_FLAGS

- name: build
- name: πŸ›  Build
shell: bash
working-directory: ${{runner.workspace}}/build
run: cmake --build . --config $BUILD_TYPE -j 2

- name: Install necessary packages
- name: πŸ“š Install necessary packages
run: |
python -m pip install --upgrade pip
python -m pip install numpy setuptools wheel twine
- name: build Python package
- name: πŸ›  Build Python package
shell: bash
working-directory: ./core/python
run: |
echo "Python package build"
echo "Add suffix to spirit version tag for python package $SPIRIT_ADD_VERSION_SUFFIX"
python setup.py sdist bdist_wheel
- name: Deploy to TestPyPI
- name: πŸš€ Deploy to TestPyPI
working-directory: ./core/python
env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
if: github.ref != 'refs/heads/master'
run: twine upload --skip-existing --repository testpypi dist/*

- name: Deploy to PyPI
- name: πŸš€ Deploy to PyPI
working-directory: ./core/python
env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
Expand All @@ -331,37 +331,37 @@ jobs:
steps:
- uses: actions/checkout@v2

- name: Install required system packages
- name: πŸ“š Install required system packages
if: matrix.os == 'ubuntu-latest'
run: |
sudo apt update
sudo apt install xorg-dev libglu1-mesa-dev libgtk-3-dev
- name: Create build folder
- name: πŸ“ Create build folder
run: cmake -E make_directory ${{runner.workspace}}/build

- name: configure
- name: βš™ Configure
shell: bash
working-directory: ${{runner.workspace}}/build
run: cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=$BUILD_TYPE $CMAKE_FLAGS

- name: build
- name: πŸ›  Build
shell: bash
working-directory: ${{runner.workspace}}/build
run: |
cmake --build . --config $BUILD_TYPE -j 2
cmake --install .
cmake --build . --config $BUILD_TYPE -j 2 --target package
- name: archive ubuntu package
- name: πŸ“¦ Archive ubuntu package
if: matrix.os == 'ubuntu-latest'
uses: actions/upload-artifact@v2
with:
name: spirit-ubuntu
path: |
${{runner.workspace}}/build/*.tar.gz
- name: archive macos package
- name: πŸ“¦ Archive macos package
if: matrix.os == 'macos-latest'
uses: actions/upload-artifact@v2
with:
Expand All @@ -373,7 +373,7 @@ jobs:
${{runner.workspace}}/build/install/VERSION.txt
${{runner.workspace}}/build/install/licenses/
- name: archive windows package
- name: πŸ“¦ Archive windows package
if: matrix.os == 'windows-latest'
uses: actions/upload-artifact@v2
with:
Expand Down

0 comments on commit 71d2f07

Please sign in to comment.