github/workflow: Update actions versions #15
This file contains 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
on: | |
push: | |
branches: [master, deb] | |
release: | |
type: [published] | |
name: deb build for Ubuntu 22.04 | |
jobs: | |
build: | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Install dependencies | |
run: sudo apt-get update && | |
sudo apt-get install -y | |
build-essential cmake git | |
libgtk-3-dev libxml2-dev | |
libcurl4-openssl-dev libad9361-dev | |
libaio-dev libiio-dev libgtkdatabox-dev | |
libjansson-dev libmatio-dev libfftw3-dev | |
- name: Generate deb package | |
run: mkdir build && cd $_ && | |
cmake -DENABLE_PACKAGING=ON .. && make package | |
- name: Upload deb package | |
uses: actions/upload-artifact@v4 | |
with: | |
name: iio-oscilloscope-Ubuntu22.04.deb | |
path: build/iio-oscilloscope-*-Linux.deb | |
if-no-files-found: error |