2.1.0 #15
Workflow file for this run
This file contains hidden or 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: Publish Debian Package | |
on: | |
release: | |
types: [published] | |
env: | |
QSV_KIND: prebuilt | |
jobs: | |
build-and-publish: | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Install Rust toolchain | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: stable | |
profile: minimal | |
target: x86_64-unknown-linux-gnu | |
override: true | |
- name: Install dependencies | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y libwayland-dev | |
cargo install cargo-deb | |
- name: Build all Debian packages | |
id: build | |
run: | | |
chmod +x scripts/build-deb.sh | |
echo "Running build-deb.sh..." | |
build_output=$(./scripts/build-deb.sh) | |
echo "Build script output:" | |
echo "$build_output" | |
# Extract paths from the output | |
deb_paths=$(echo "$build_output" | grep -oP '/[^ ]*\.deb' | tr '\n' ' ') | |
echo "Extracted .deb paths:" | |
echo "$deb_paths" | |
echo "DEB_PATHS=$deb_paths" >> $GITHUB_OUTPUT | |
- name: List built packages | |
run: | | |
echo "Built packages:" | |
ls -l ${{ steps.build.outputs.DEB_PATHS }} | |
- name: Rename and move Debian packages | |
run: | | |
mkdir -p renamed_debs | |
mv $(echo "${{ steps.build.outputs.DEB_PATHS }}" | awk '{print $1}') renamed_debs/qsv.deb | |
mv $(echo "${{ steps.build.outputs.DEB_PATHS }}" | awk '{print $2}') renamed_debs/qsvlite.deb | |
mv $(echo "${{ steps.build.outputs.DEB_PATHS }}" | awk '{print $3}') renamed_debs/qsvdp.deb | |
echo "Renamed packages:" | |
ls -l renamed_debs | |
- name: Upload Debian Packages as Artifacts | |
uses: actions/upload-artifact@v3 | |
with: | |
name: debian-packages | |
path: renamed_debs/*.deb | |
- name: Upload Debian Packages as Artifacts | |
uses: actions/upload-artifact@v3 | |
with: | |
name: debian-packages | |
path: | | |
/home/runner/work/qsv/qsv/target/debian/*.deb |