CI: Bugfixing

This commit is contained in:
Jakub Melka 2023-12-09 17:34:48 +01:00
parent 176369e8dd
commit 19a26c2a74
1 changed files with 6 additions and 7 deletions

View File

@ -4,7 +4,7 @@ on:
workflow_dispatch: workflow_dispatch:
jobs: jobs:
build: build_ubuntu:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
@ -19,7 +19,6 @@ jobs:
cd vcpkg cd vcpkg
./bootstrap-vcpkg.sh ./bootstrap-vcpkg.sh
./vcpkg integrate install ./vcpkg integrate install
working-directory: vcpkg
- name: 'VCPKG: Cache vcpkg dependencies' - name: 'VCPKG: Cache vcpkg dependencies'
uses: actions/cache@v2 uses: actions/cache@v2
@ -33,7 +32,7 @@ jobs:
- name: 'VCPKG: Install project dependencies' - name: 'VCPKG: Install project dependencies'
run: | run: |
./vcpkg/vcpkg install tbb openssl lcms zlib openjpeg freetype ijg-libjpeg libpng ./vcpkg install tbb openssl lcms zlib openjpeg freetype ijg-libjpeg libpng
working-directory: vcpkg working-directory: vcpkg
- name: Install Qt - name: Install Qt
@ -49,21 +48,21 @@ jobs:
cache-key-prefix: ${{ runner.os }}-qt-660 cache-key-prefix: ${{ runner.os }}-qt-660
- name: Build project - name: Build project
working-directory: pdf4qt
run: | run: |
cd pdf4qt
cmake -B build -S . -DPDF4QT_INSTALL_QT_DEPENDENCIES=0 -DCMAKE_TOOLCHAIN_FILE=../vcpkg/scripts/buildsystems/vcpkg.cmake -DCMAKE_BUILD_TYPE=Release cmake -B build -S . -DPDF4QT_INSTALL_QT_DEPENDENCIES=0 -DCMAKE_TOOLCHAIN_FILE=../vcpkg/scripts/buildsystems/vcpkg.cmake -DCMAKE_BUILD_TYPE=Release
cmake --build build -j6 cmake --build build -j6
cmake --install build cmake --install build
working-directory: pdf4qt
- name: Make DEB package - name: Make DEB package
working-directory: pdf4qt/build
run: | run: |
cd pdf4qt/build
sh make-package.sh sh make-package.sh
- name: Upload DEB package - name: Upload DEB package
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v3
working-directory: pdf4qt/build
with: with:
name: ubuntu-deb-package name: ubuntu-deb-package
path: ./pdf4qt/build/*.deb path: ./*.deb
retention-days: 30 retention-days: 30