Skip to content

Set CI to run every Monday, configured artifacts for all platforms. #31

Set CI to run every Monday, configured artifacts for all platforms.

Set CI to run every Monday, configured artifacts for all platforms. #31

Workflow file for this run

#
# Stripped down version of the official hackrf workflow.
#
name: Build (Linux)
on:
push:
pull_request:
workflow_dispatch:
# Run automatically every monday
schedule:
- cron: 1 12 * * 1
jobs:
host:
strategy:
matrix:
os: ['ubuntu-latest']
# Don't cancel all builds when one fails
fail-fast: false
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Install dependencies (Ubuntu)
run: |
sudo apt update
sudo apt install libfftw3-dev libhackrf-dev libczmq-dev libzmq5 libzmq3-dev libmsgpack-dev
- name: Create Build Environment
run: cmake -E make_directory ${{github.workspace}}/build
- name: Configure CMake
working-directory: ${{github.workspace}}/build
run: cmake $GITHUB_WORKSPACE/ -DCMAKE_BUILD_TYPE=Release
- name: Build
working-directory: ${{github.workspace}}/build
run: cmake --build . --config Release
- name: Install
working-directory: ${{github.workspace}}/build
run: |
sudo cmake --install . --config Release --prefix=$GITHUB_WORKSPACE/install
# Publish the contents of install/
- name: Publish Artifacts
uses: actions/upload-artifact@v4
with:
name: hackrf_sweeper-ubuntu
path: ${{github.workspace}}/install/*