diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 4c07bbde9b4343405fd34919b0f033491c580474..109b84c112d1cc0cac960932e61ee6b371c83508 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -37,6 +37,7 @@ Windows-MSYS2-MINGW64: C:\msys64\usr\bin\bash -lcx ' pacman --noconfirm -Syu mingw-w64-x86_64-gcc mingw-w64-x86_64-cmake pacman --noconfirm -Syu mingw-w64-x86_64-qt5-static + pacman --noconfirm -Syu mingw-w64-x86_64-doxygen mingw-w64-x86_64-graphviz pacman --noconfirm -Syu zip' - | # Building C:\msys64\usr\bin\bash -lcx ' @@ -44,6 +45,7 @@ Windows-MSYS2-MINGW64: cd build cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_C_COMPILER=gcc -DCMAKE_CXX_COMPILER=g++ cmake --build . --target cute + cmake --build . --target doc_doxygen ls -lh cd ..' - | # Collecting all Files and zipping them @@ -59,10 +61,13 @@ Windows-MSYS2-MINGW64: mv .clang-format template/ mv .gitignore template/ zip -r template-windows.zip template/ + zip -r doxygen.zip doxygen/ ' # Uploading the zip to the Package Registry - $URL = "${CI_API_V4_URL}/projects/$CI_PROJECT_ID/packages/generic/cutelib-hsrt/$CI_COMMIT_TAG/template-windows.zip" - Invoke-WebRequest -Uri $URL -Method Put -Headers @{ "JOB-TOKEN" = "$CI_JOB_TOKEN" } -InFile "template-windows.zip" -UseBasicParsing + - $URL = "${CI_API_V4_URL}/projects/$CI_PROJECT_ID/packages/generic/cutelib-hsrt/$CI_COMMIT_TAG/doxygen.zip" + - Invoke-WebRequest -Uri $URL -Method Put -Headers @{ "JOB-TOKEN" = "$CI_JOB_TOKEN" } -InFile "doxygen.zip" -UseBasicParsing # Automatically publishing a new Release with the files Uploaded to the Package Registry. # The Release may be edited manually under gitlab -> project -> deploy -> releases. @@ -76,12 +81,15 @@ Publish: release: name: "Release $CI_COMMIT_TAG" tag_name: "$CI_COMMIT_TAG" - description: "Automated release including Windows builds." # & Linux + description: "Automated release including Windows builds and Doxygen documentation." # & Linux assets: links: - name: "Windows Template" link_type: package url: "${CI_API_V4_URL}/projects/$CI_PROJECT_ID/packages/generic/cutelib-hsrt/$CI_COMMIT_TAG/template-windows.zip" + - name: "Doxygen" + link_type: other + url: "${CI_API_V4_URL}/projects/$CI_PROJECT_ID/packages/generic/cutelib-hsrt/$CI_COMMIT_TAG/doxygen.zip" #- name: "Linux Template" # link_type: package # url: "${CI_API_V4_URL}/projects/$CI_PROJECT_ID/packages/generic/cutelib-hsrt/$CI_COMMIT_TAG/template-linux.zip"