diff --git a/.gitea/workflows/BuildRelease.yaml b/.gitea/workflows/BuildRelease.yaml index 9d8e3ca..dff9088 100644 --- a/.gitea/workflows/BuildRelease.yaml +++ b/.gitea/workflows/BuildRelease.yaml @@ -8,6 +8,9 @@ on: jobs: Windows-AMD64-Build: runs-on: windows-x86_64 + defaults: + run: + shell: powershell steps: - name: Check out repository code uses: actions/checkout@v3 @@ -15,20 +18,15 @@ jobs: - name: Building/Compiling/Installing Project run: | cd ${{ gitea.workspace }} - cmake -A x64 -DCMAKE_BUILD_TYPE=Release --preset=default . + mkdir build cd build + cmake -A x64 -DCMAKE_BUILD_TYPE=Release -DCMAKE_TOOLCHAIN_FILE="$env:VCPKG_ROOT\scripts\buildsystems\vcpkg.cmake" .. cmake --build . --config Release - - name: Creating Appropriate Directories - run: | - cd ${{ gitea.workspace }} - mv build/Release/DeviceScanner.exe . - mv build/Release/zlib1.dll . - - name: Zipping Binaries run: | cd ${{ gitea.workspace }} - tar -a -c -f device-scanner-windows-amd64.zip DeviceScanner.exe zlib1.dll + tar -a -c -f device-scanner-windows-amd64.zip build/Release/DeviceScanner.exe - uses: https://github.com/actions/setup-go@v4 with: @@ -41,6 +39,7 @@ jobs: files: |- device-scanner-windows-amd64.zip api_key: '${{secrets.RELEASE_TOKEN}}' + pre_release: false Linux-AMD64-Build: runs-on: linux-x86_64 @@ -50,13 +49,14 @@ jobs: - name: Installing Dependencies run: | - sudo pacman -S --noconfirm zip alsa-lib libxcb xcb-util-cursor + sudo pacman -S --noconfirm doxygen zip alsa-lib libxcb xcb-util-cursor pipewire - name: Building/Compiling/Installing Project run: | cd ${{ gitea.workspace }} - cmake -DCMAKE_BUILD_TYPE=Release . + cmake -DCMAKE_BUILD_TYPE=Release -DLINUX_WINDOW_SYSTEM:STRING=XCB . cmake --build . --config Release + cmake --install . - name: Zipping Binaries run: zip -r device-scanner-linux-amd64.zip DeviceScanner @@ -72,6 +72,7 @@ jobs: files: |- device-scanner-linux-amd64.zip api_key: '${{secrets.RELEASE_TOKEN}}' + pre_release: false Linux-AARCH64-Build: runs-on: linux-aarch64 @@ -80,13 +81,14 @@ jobs: uses: actions/checkout@v3 - name: Installing Dependencies - run: sudo apt install -y zip libasound2-dev libxcb1-dev libxcb-xinput-dev libxcb-cursor-dev + run: sudo apt install -y doxygen zip libasound2-dev libxcb1-dev libxcb-xinput-dev libxcb-cursor-dev libpipewire-0.3-dev - name: Building/Compiling/Installing Project run: | cd ${{ gitea.workspace }} - cmake -DCMAKE_BUILD_TYPE=Release . + cmake -DCMAKE_BUILD_TYPE=Release -DLINUX_WINDOW_SYSTEM:STRING=XCB . cmake --build . --config Release + cmake --install . - name: Zipping Binaries run: zip -r device-scanner-linux-aarch64.zip DeviceScanner @@ -101,4 +103,5 @@ jobs: with: files: |- device-scanner-linux-aarch64.zip - api_key: '${{secrets.RELEASE_TOKEN}}' \ No newline at end of file + api_key: '${{secrets.RELEASE_TOKEN}}' + pre_release: false \ No newline at end of file