Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update git actions #1

Merged
merged 10 commits into from
Mar 19, 2024
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
2 changes: 1 addition & 1 deletion .github/workflows/clang-format.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: clang-format

on:
push:
branches: [master, litepcie-update]
branches: [develop]
pull_request:

jobs:
Expand Down
26 changes: 18 additions & 8 deletions .github/workflows/cmake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: CMake

on:
push:
branches: [master, litepcie-update]
branches: [develop]
pull_request:

env:
Expand All @@ -17,9 +17,15 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os:
[ubuntu-latest, windows-latest]
# os: [ubuntu-latest, macos-latest, windows-latest]
include:
- os: ubuntu-latest
compiler: gcc
- os: ubuntu-latest
compiler: clang
- os: windows-latest
compiler: msvc
- os: macos-latest
compiler: clang

steps:
- uses: actions/checkout@v2
Expand Down Expand Up @@ -56,12 +62,16 @@ jobs:
cmake --build . --target install

- name: Configure CMake (windows)
if: matrix.os == 'windows-latest'
if: matrix.os == 'windows-latest' && matrix.compiler == 'msvc'
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DCMAKE_INSTALL_PREFIX=${{env.INSTALL_PREFIX}} -DwxWidgets_ROOT_DIR=${{github.workspace}}/deps/wxWidgets -DFX3_SDK_PATH=${{github.workspace}}/deps/FX3SDK

- name: Configure CMake (linux)
if: matrix.os != 'windows-latest'
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DCMAKE_INSTALL_PREFIX=${{env.INSTALL_PREFIX}}
- name: Configure CMake (gcc)
if: matrix.compiler == 'gcc'
run: cmake -B ${{github.workspace}}/build -DCMAKE_CXX_COMPILER=g++ -DCMAKE_C_COMPILER=gcc -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DCMAKE_INSTALL_PREFIX=${{env.INSTALL_PREFIX}}

- name: Configure CMake (clang)
if: matrix.compiler == 'clang'
run: cmake -B ${{github.workspace}}/build -DCMAKE_CXX_COMPILER=clang++ -DCMAKE_C_COMPILER=clang -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DCMAKE_INSTALL_PREFIX=${{env.INSTALL_PREFIX}}

- name: Build
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}
2 changes: 1 addition & 1 deletion .github/workflows/gtest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: GTest tests

on:
push:
branches: [master, litepcie-update]
branches: [develop]
pull_request:

env:
Expand Down
2 changes: 1 addition & 1 deletion src/Si5351C/Si5351C.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

#include "Si5351C.h"
#include "Logger.h"
#include <math.h>
#include <cmath>
#include <iomanip>
#include <fstream>
#include <set>
Expand Down
2 changes: 1 addition & 1 deletion src/boards/LMS7002M_SDRDevice.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -734,7 +734,7 @@ uint16_t LMS7002M_SDRDevice::GetParameter(uint8_t moduleIndex, uint8_t channel,
} catch (...)
{
// TODO: fix return
throw std::runtime_error("failure setting parameter: " + address);
throw std::runtime_error("failure setting parameter: " + std::to_string(address));
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/boards/LimeSDR_X3/LimeSDR_X3.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -647,7 +647,7 @@ OpStatus LimeSDR_X3::Configure(const SDRConfig& cfg, uint8_t socIndex)

void LimeSDR_X3::ConfigureDirection(TRXDir dir, LMS7002M* chip, const SDRConfig& cfg, int ch, uint8_t socIndex)
{
std::string dirName = dir == TRXDir::Rx ? "Rx" : "Tx";
const char* dirName = dir == TRXDir::Rx ? "Rx" : "Tx";
SDRDevice::ChannelConfig::Direction trx = cfg.channel[ch].GetDirection(dir);

if (socIndex == 1) // LMS2 uses external ADC/DAC
Expand Down
2 changes: 1 addition & 1 deletion src/comms/PCIe/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ set(COMMS_LITE_PCIE_SOURCES
########################################################################
include(FeatureSummary)
include(CMakeDependentOption)
cmake_dependent_option(ENABLE_LITE_PCIE "Enable Lite PCIe" ON "UNIX;ENABLE_LIBRARY" OFF)
cmake_dependent_option(ENABLE_LITE_PCIE "Enable Lite PCIe" ON "UNIX;ENABLE_LIBRARY; NOT APPLE" OFF)
add_feature_info(LITE_PCIE ENABLE_LITE_PCIE "PCIe support")
if (NOT ENABLE_LITE_PCIE)
return()
Expand Down
2 changes: 1 addition & 1 deletion src/comms/USB/FT601/FT601.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ static const int CONTROL_BULK_READ_ADDRESS = 0x82;

FT601::FT601(void* usbContext)
: USBGeneric(usbContext)
#ifdef __unix
#ifdef __unix__
, mUsbCounter(0)
#else
, mFTHandle(nullptr)
Expand Down
2 changes: 1 addition & 1 deletion src/oglGraph/GLFont.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#include <vector>
using namespace std;

static constexpr bool IsGlew1_5()
static bool IsGlew1_5()
{
#ifdef __GNUC__
#pragma GCC diagnostic push
Expand Down
2 changes: 1 addition & 1 deletion src/oglGraph/OpenGLGraph.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ const int OpenGLGraph::GLCanvasAttributes[8] = {

bool OpenGLGraph::hasNotRecentEnoughOpenGLVersionWarningBeenThrownYet = false;

static constexpr bool IsGlew1_5()
static bool IsGlew1_5()
{
#ifdef __GNUC__
#pragma GCC diagnostic push
Expand Down
Loading