SIGROK_FIRMWARE_FX2LAFW_REPO: "git://sigrok.org/sigrok-firmware-fx2lafw"
# Git URL for the sigrok-dumps dependency
SIGROK_DUMPS_REPO: "git://sigrok.org/sigrok-dumps"
- # Build type for PulseView (Debug, Release, RelWithDebInfo, MinSizeRel)
- BUILD_TYPE: "Release"
# Misc commands
WGET: "wget -c --quiet"
GIT_CLONE: "git clone --depth=1"
jobs:
build_pulseview_mxe:
- name: PulseView MXE build (${{ matrix.target.target }})
+ name: PulseView MXE build (${{ matrix.target.target }}) (${{ matrix.build_type.type }})
runs-on: ubuntu-latest
container:
target:
- { target: "i686", nsis_param: "" }
- { target: "x86_64", nsis_param: "-DPE64=1" }
+ build_type:
+ - { type: "Release", name: "release" }
+ - { type: "Debug", name: "debug" }
env:
TARGET: ${{ matrix.target.target }}
cd pulseview/build
$CMAKE \
-DCMAKE_INSTALL_PREFIX:PATH=$INSTALL_DIR \
- -DCMAKE_BUILD_TYPE=$BUILD_TYPE \
+ -DCMAKE_BUILD_TYPE=${{ matrix.build_type.type }} \
-DDISABLE_WERROR=FALSE \
-DENABLE_TESTS=FALSE \
..
- name: Rename artifact
run: |
cd pulseview/build/contrib
- mv pulseview-*installer.exe pulseview-NIGHTLY-${{ matrix.target.target }}-static-$BUILD_TYPE-installer.exe
+ mv pulseview-*installer.exe pulseview-NIGHTLY-${{ matrix.target.target }}-static-${{ matrix.build_type.name }}-installer.exe
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
- name: artifact-pulseview-mxe
+ name: artifact-pulseview-${{ matrix.target.target }}-mxe
path: pulseview/build/contrib/pulseview*installer.exe
overwrite: true
- name: Rename artifact
run: |
cd sigrok-cli/contrib
- mv sigrok-cli-*installer.exe sigrok-cli-NIGHTLY-${{ matrix.target.target }}-static-$BUILD_TYPE-installer.exe
+ mv sigrok-cli-*installer.exe sigrok-cli-NIGHTLY-${{ matrix.target.target }}-static-debug-installer.exe
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
- name: artifact-sigrok-cli-mxe
+ name: artifact-sigrok-cli-${{ matrix.target.target }}-mxe
path: sigrok-cli/contrib/sigrok-cli*installer.exe
overwrite: true
build_pulseview_appimage:
- name: PulseView AppImage build (${{ matrix.target.target }})
+ name: PulseView AppImage build (${{ matrix.target.target }}) (${{ matrix.build_type.type }})
runs-on: ubuntu-latest
container:
cxx: "g++"
ld: "ld"
ldflags: ""
+ build_type:
+ - { type: "Release", name: "release" }
+ - { type: "Debug", name: "debug" }
env:
TARGET: ${{ matrix.target.target }}
cd pulseview/build
PKG_CONFIG_PATH=$P cmake \
-DCMAKE_INSTALL_PREFIX:PATH="$APP_DIR"/usr \
- -DCMAKE_BUILD_TYPE=$BUILD_TYPE \
+ -DCMAKE_BUILD_TYPE=${{ matrix.build_type.type }} \
-DDISABLE_WERROR=FALSE \
-DENABLE_TESTS=FALSE \
..
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
- name: artifact-pulseview-appimage
+ name: artifact-pulseview-${{ matrix.target.target }}-appimage
path: sigrok-build/ci/appimage/appimage-build/PulseView-*.AppImage
overwrite: true
build_pulseview_macos:
- name: PulseView macOS build
+ name: PulseView macOS build (${{ matrix.build_type.type }}) ${{ matrix.build_type.type }}
runs-on: macos-11
+ strategy:
+ matrix:
+ build_type:
+ - { type: "Release", name: "release" }
+ - { type: "Debug", name: "debug" }
+
env:
TARGET: "x86"
# We use Homebrew Qt 5.15.x (current)
uses: actions/checkout@v4
with:
# TODO: Clone from sigrok.org
- repository: abraxa/pulseview
+ repository: sigrokproject/pulseview
path: pulseview
- name: Build PulseView
cd pulseview/build
PKG_CONFIG_PATH=$P cmake \
-DCMAKE_INSTALL_PREFIX:PATH=$INSTALL_DIR \
- -DCMAKE_BUILD_TYPE=$BUILD_TYPE \
+ -DCMAKE_BUILD_TYPE=${{ matrix.build_type.type }} \
-DDISABLE_WERROR=FALSE \
-DENABLE_TESTS=FALSE \
..
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
- name: artifact-pulseview-macos
+ name: artifact-pulseview-${{ matrix.build_type.name }}-macos
path: sigrok-build/ci/macos/PulseView*.dmg
overwrite: true
uses: softprops/action-gh-release@v1
with:
files: |
- artifact-sigrok-cli-mxe/sigrok-cli-*
- artifact-pulseview-mxe/pulseview-*
+ artifact-sigrok-cli-i686-mxe/sigrok-cli-*
+ artifact-sigrok-cli-x86_64-mxe/sigrok-cli-*
+ artifact-pulseview-i686-mxe/pulseview-*
+ artifact-pulseview-x86_64-mxe/pulseview-*
tag_name: continuous
generate_release_notes: false
draft: false