diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c37340a54..6751ca36a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 @@ -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: | @@ -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 }} @@ -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 @@ -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 @@ -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 @@ -219,13 +219,13 @@ 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 @@ -233,17 +233,17 @@ jobs: ./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: | @@ -269,30 +269,30 @@ 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: | @@ -300,7 +300,7 @@ jobs: 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 }} @@ -308,7 +308,7 @@ jobs: 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 }} @@ -331,21 +331,21 @@ 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: | @@ -353,7 +353,7 @@ jobs: 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: @@ -361,7 +361,7 @@ jobs: 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: @@ -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: