Skip to content

Commit 246fe10

Browse files
committed
chore(CI): add ubuntu 24.04 LTS support
1 parent 7b1ecfb commit 246fe10

File tree

1 file changed

+46
-0
lines changed

1 file changed

+46
-0
lines changed

Diff for: .github/workflows/release.yaml

+46
Original file line numberDiff line numberDiff line change
@@ -184,3 +184,49 @@ jobs:
184184
name: inputplumber_debian-bookworm.deb
185185
path: target/debian/inputplumber_*.deb
186186
if-no-files-found: error
187+
188+
publish-to-ubuntu-noble:
189+
name: 🐧 Generate ubuntu 24.04 LTS package
190+
needs: release
191+
if: needs.release.outputs.should_publish == 'yes'
192+
runs-on: ubuntu-latest
193+
194+
container:
195+
image: ubuntu:noble
196+
197+
steps:
198+
- name: Checkout
199+
uses: actions/checkout@v4
200+
201+
- name: Install basic dependencies
202+
id: install-software
203+
run: |
204+
export DEBIAN_FRONTEND=noninteractive
205+
apt-get update
206+
apt-get install -y wget git lsb-release wget software-properties-common gnupg curl build-essential devscripts debhelper
207+
208+
- name: Install build dependencies
209+
id: install-build-deps
210+
run: |
211+
export DEBIAN_FRONTEND=noninteractive
212+
apt-get update
213+
apt-get install -y pkg-config libclang-dev libiio-dev libudev-dev libevdev-dev
214+
215+
- name: Install Rust and Cargo
216+
run: |
217+
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
218+
echo "$HOME/.cargo/bin" >> $GITHUB_PATH
219+
. $HOME/.cargo/env
220+
221+
- name: Install cargo-deb
222+
run: cargo install cargo-deb
223+
224+
- name: Build Debian package
225+
run: cargo deb
226+
227+
- name: Upload Debian package
228+
uses: actions/upload-artifact@v4
229+
with:
230+
name: inputplumber_ubuntu-noble_amd64.deb
231+
path: target/debian/inputplumber_*.deb
232+
if-no-files-found: error

0 commit comments

Comments
 (0)