Skip to content

Commit

Permalink
workflow update + minor bugs/warnings fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
jankae committed Nov 3, 2024
1 parent 69b2fac commit 67a186b
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 23 deletions.
24 changes: 12 additions & 12 deletions .github/workflows/Build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
PC_Application_Ubuntu:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v4

- name: Install dependencies
run: |
Expand Down Expand Up @@ -44,15 +44,15 @@ jobs:
- name: Upload artifact
env:
LIBREVNA_VERSION: "${{steps.id_version.outputs.app_version}}"
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: LibreVNA-GUI-Ubuntu-${{env.LIBREVNA_VERSION}}
path: Software/PC_Application/LibreVNA-GUI/LibreVNA-GUI

PC_Application_RPi5:
runs-on: RPi-HIL
steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v4

- name: Install dependencies
run: |
Expand Down Expand Up @@ -82,15 +82,15 @@ jobs:
- name: Upload artifact
env:
LIBREVNA_VERSION: "${{steps.id_version.outputs.app_version}}"
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: LibreVNA-GUI-RPi5-${{env.LIBREVNA_VERSION}}
path: Software/PC_Application/LibreVNA-GUI/LibreVNA-GUI

PC_Application_Windows:
runs-on: windows-2019
steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v4
- uses: msys2/setup-msys2@v2

- name: Install Qt
Expand Down Expand Up @@ -141,21 +141,21 @@ jobs:
shell: cmd

- name: Upload
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
env:
LIBREVNA_VERSION: "${{steps.id_version.outputs.app_version}}"
with:
name: GUI_Windows-${{env.LIBREVNA_VERSION}}
path: Software/PC_Application/LibreVNA-GUI/release

PC_Application_OSX:
runs-on: macos-12
runs-on: macos-latest
steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v4

- name: Install dependencies
run: |
brew install qt@6 libusb pcre
brew install qt@6 pcre
- name: Set Environment
run: |
Expand Down Expand Up @@ -189,15 +189,15 @@ jobs:
- name: Upload artifact
env:
LIBREVNA_VERSION: "${{steps.id_version.outputs.app_version}}"
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: LibreVNA-GUI-OSX-${{env.LIBREVNA_VERSION}}
path: Software/PC_Application/LibreVNA-GUI/LibreVNA-GUI.zip

Embedded_Firmware:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v4

- name: Install toolchain
run: |
Expand Down Expand Up @@ -230,7 +230,7 @@ jobs:
shell: bash

- name: Upload
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
env:
LIBREVNA_VERSION: "${{steps.id_version.outputs.app_version}}"
with:
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/Release_tag_stable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
outputs:
upload_url: ${{ steps.bump_release.outputs.upload_url }}
steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v4

- name: Install dependencies
run: |
Expand Down Expand Up @@ -67,7 +67,7 @@ jobs:
needs: PC_Application_Ubuntu
runs-on: RPi-HIL
steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v4

- name: Install dependencies
run: |
Expand Down Expand Up @@ -106,7 +106,7 @@ jobs:
needs: PC_Application_Ubuntu
runs-on: windows-2019
steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v4
- uses: msys2/setup-msys2@v2

- name: Install Qt
Expand Down Expand Up @@ -171,13 +171,13 @@ jobs:

PC_Application_OSX:
needs: PC_Application_Ubuntu
runs-on: macos-12
runs-on: macos-latest
steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v4

- name: Install dependencies
run: |
brew install qt@6 libusb pcre
brew install qt@6 pcre
- name: Set Environment
run: |
Expand Down Expand Up @@ -219,7 +219,7 @@ jobs:
needs: PC_Application_Ubuntu
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v4

- name: Install toolchain
run: |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ void CalDevice::loadCoefficientSetsThreadSlow(QStringList names, QList<int> port
totalPoints += usb->Query(":COEFF:NUM? "+name+" P"+QString::number(i)+"_SHORT").toInt();
totalPoints += usb->Query(":COEFF:NUM? "+name+" P"+QString::number(i)+"_LOAD").toInt();
for(int jdx=idx+1;jdx<numPorts;jdx++) {
int j = ports[j];
int j = ports[jdx];
totalPoints += usb->Query(":COEFF:NUM? "+name+" P"+QString::number(i)+QString::number(j)+"_THROUGH").toInt();
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ void CompoundDeviceEditDialog::checkIfOkay()
// Check port mapping
// Looking for duplicate and missing ports
bool highestPortFound = false;
unsigned int highestPort;
unsigned int highestPort = 0;
for(unsigned int port=0;port<2*ldev.deviceSerials.size();port++) {
int num = 0;
for(unsigned int i=0;i<deviceFrames.size();i++) {
Expand Down
4 changes: 2 additions & 2 deletions Software/PC_Application/LibreVNA-GUI/VNA/vna.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -646,7 +646,7 @@ VNA::VNA(AppWindow *window, QString name)

Calibration::InterpolationType VNA::getCalInterpolation()
{
double f_min, f_max;
double f_min = 0, f_max = 0;
switch(settings.sweepType) {
case SweepType::Last:
// should never get here, use frequency values just in case
Expand Down Expand Up @@ -976,7 +976,7 @@ void VNA::NewDatapoint(DeviceDriver::VNAMeasurement m)
window->addStreamingData(m_avg, AppWindow::VNADataType::Calibrated);
}

TraceMath::DataType type;
TraceMath::DataType type = TraceMath::DataType::Frequency;
if(settings.zerospan) {
type = TraceMath::DataType::TimeZeroSpan;

Expand Down

0 comments on commit 67a186b

Please sign in to comment.