diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 9af1466..363b027 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -127,6 +127,22 @@ jobs: cpack | tee cpack.out filepath=$(sed -nr 's/.*package: (.+) generated\./\1/p' cpack.out) echo "filepath=$filepath" >> "$GITHUB_OUTPUT" + - name: Test install of binary packages + shell: bash + run: | + binary_file="${{ steps.cpack.outputs.filepath }}" + # Detect and install using the correct package manager + if [[ "${{ matrix.os }}" == "ubuntu" ]]; then + sudo apt update + sudo apt install -y "$binary_file" + elif [[ "${{ matrix.os }}" == "fedora" ]]; then + sudo dnf install -y "$binary_file" + elif [[ "${{ matrix.os }}" == "opensuse" ]]; then + sudo zypper install -y "$binary_file" + else + echo "Unsupported OS" + exit 1 + fi - uses: actions/upload-artifact@v4 if: inputs.publish-version