Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 24 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,18 @@ jobs:
strategy:
matrix:
os: ['macos-latest', 'ubuntu-latest', 'windows-latest']
cmake: ['3.10.0', '3.16.0', '3.21.0', '4.0.0', 'latest']
exclude:
# GitHub runners use Apple silicon. Support added in CMake 3.19.2.
- os: 'macos-latest'
cmake: '3.10.0'
- os: 'macos-latest'
cmake: '3.16.0'
# GitHub runners use Visual Studio 2022. Support added in CMake 3.21.
- os: 'windows-latest'
cmake: '3.10.0'
- os: 'windows-latest'
cmake: '3.16.0'

# Don't cancel all builds when one fails
fail-fast: false
Expand All @@ -30,6 +42,11 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: Setup cmake
uses: jwlawson/actions-setup-cmake@v2
with:
cmake-version: ${{ matrix.cmake }}

- name: Install dependencies (macOS)
run: brew install fftw
if: matrix.os == 'macos-latest'
Expand Down Expand Up @@ -127,13 +144,14 @@ jobs:
with:
name: hackrf-tools-windows
path: ${{github.workspace}}/install/bin
if: matrix.os == 'windows-latest'
if: matrix.os == 'windows-latest' && matrix.cmake == 'latest'

firmware:
strategy:
matrix:
os: ['macos-latest', 'ubuntu-latest']
board: ['HACKRF_ONE', 'JAWBREAKER', 'RAD1O']
cmake: ['3.10.0', 'latest']

# Don't cancel all builds when one fails
fail-fast: false
Expand All @@ -144,6 +162,11 @@ jobs:
with:
submodules: true

- name: Setup cmake
uses: jwlawson/actions-setup-cmake@v2
with:
cmake-version: ${{ matrix.cmake }}

- name: Install Arm GNU Toolchain
uses: carlosperate/arm-none-eabi-gcc-action@v1

Expand Down
2 changes: 1 addition & 1 deletion firmware/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

# Top directory CMake project for HackRF firmware

cmake_minimum_required(VERSION 3.5.0)
cmake_minimum_required(VERSION 3.10.0)
set(CMAKE_TOOLCHAIN_FILE toolchain-arm-cortex-m.cmake)

project (hackrf_firmware_all C)
Expand Down
2 changes: 1 addition & 1 deletion firmware/blinky/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
# Boston, MA 02110-1301, USA.
#

cmake_minimum_required(VERSION 3.5.0)
cmake_minimum_required(VERSION 3.10.0)
set(CMAKE_TOOLCHAIN_FILE ../toolchain-arm-cortex-m.cmake)

project(blinky C)
Expand Down
2 changes: 1 addition & 1 deletion firmware/hackrf_usb/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
# Boston, MA 02110-1301, USA.
#

cmake_minimum_required(VERSION 3.5.0)
cmake_minimum_required(VERSION 3.10.0)
set(CMAKE_TOOLCHAIN_FILE ../toolchain-arm-cortex-m.cmake)

project(hackrf_usb C)
Expand Down
2 changes: 1 addition & 1 deletion host/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#top dir cmake project for libhackrf + tools

cmake_minimum_required(VERSION 3.5.0)
cmake_minimum_required(VERSION 3.10.0)
project (HackRF C)

set(CMAKE_C_FLAGS "$ENV{CFLAGS}" CACHE STRING "C Flags")
Expand Down
2 changes: 1 addition & 1 deletion host/hackrf-tools/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

# Based heavily upon the libftdi cmake setup.

cmake_minimum_required(VERSION 3.5.0)
cmake_minimum_required(VERSION 3.10.0)
project(hackrf-tools C)
set(PACKAGE hackrf-tools)
include(${PROJECT_SOURCE_DIR}/../cmake/set_release.cmake)
Expand Down
2 changes: 1 addition & 1 deletion host/libhackrf/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

# Based heavily upon the libftdi cmake setup.

cmake_minimum_required(VERSION 3.5.0)
cmake_minimum_required(VERSION 3.10.0)
project(libhackrf C)
set(MAJOR_VERSION 0)
set(MINOR_VERSION 9)
Expand Down
Loading