Release version 0.7.3 #20
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "Create Release" | |
on: | |
push: | |
tags: | |
- "v*" | |
workflow_dispatch: | |
jobs: | |
tagged-release: | |
name: "Tagged Release" | |
runs-on: "ubuntu-latest" | |
steps: | |
- name: Checkout LibRapid | |
uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
- name: Compile | |
run: | | |
mkdir build | |
cd build | |
cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_STANDARD=17 -DLIBRAPID_BUILD_EXAMPLES=on -DLIBRAPID_BUILD_TESTS=on -DLIBRAPID_GET_BLAS=ON -DLIBRAPID_USE_MULTIPREC=ON | |
cmake --build . --config Release | |
- name: Run Tests | |
run: | | |
cd build | |
ctest -C Release --output-on-failure | |
- name: Zip Source Code | |
run: | | |
zip -r librapid.zip ../librapid | |
- name: Get latest CMake and ninja | |
uses: lukka/get-cmake@latest | |
- name: Setup Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: "3.9" | |
- name: Install Clang | |
uses: KyleMayes/install-llvm-action@v1 | |
with: | |
version: "15.0" | |
directory: "./llvm" | |
env: on | |
- name: Build Doxygen | |
id: build_doxygen | |
continue-on-error: true | |
run: | | |
git clone --recursive https://github.com/doxygen/doxygen.git | |
cd doxygen | |
git checkout Release_1_9_7 | |
mkdir build | |
cd build | |
cmake .. -DCMAKE_BUILD_TYPE=Release -G "Unix Makefiles" | |
cmake --build . --config Release | |
sudo make install | |
env: | |
CC: gcc | |
CXX: g++ | |
- name: Install Doxygen on Error | |
if: steps.build_doxygen.outcome != 'success' | |
run: | | |
sudo apt install doxygen | |
- name: Upgrade Source Distribution | |
continue-on-error: true | |
run: | | |
sudo apt update | |
sudo apt upgrade -y | |
sudo apt autoremove -y | |
- name: Install LaTeX | |
continue-on-error: true | |
run: | | |
sudo apt-get install -y texlive-full | |
- name: Install Requirements | |
continue-on-error: true | |
run: | | |
cd docs | |
pip install -r requirements.txt | |
- name: Force install Sphinx Build | |
run: | | |
sudo apt-get install python3-sphinx | |
- name: Configure Files | |
run: | | |
touch .is_local | |
- name: Build HTML Documentation | |
run: | | |
cd docs | |
make html | |
- name: Build PDf Documentation | |
# continue-on-error: true | |
run: | | |
cd docs | |
make latexpdf | |
- name: Zip Documentation (HTML) | |
run: | | |
zip -r htmlDocs.zip ./docs/build/html | |
- uses: "marvinpinto/action-automatic-releases@latest" | |
with: | |
repo_token: "${{ secrets.GITHUB_TOKEN }}" | |
prerelease: false | |
files: | | |
librapid.zip | |
htmlDocs.zip | |
docs/build/latex/librapid.pdf |