Skip to content

Commit

Permalink
Add build action
Browse files Browse the repository at this point in the history
  • Loading branch information
zuckschwerdt committed Apr 4, 2024
1 parent 82514e0 commit a2bfeaf
Show file tree
Hide file tree
Showing 4 changed files with 63 additions and 0 deletions.
57 changes: 57 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
name: Release
on:
workflow_dispatch:
push:
tags:
- '*'

jobs:
release_job:
name: Create release
runs-on: ubuntu-latest
outputs:
upload_url: ${{ steps.create_release.outputs.upload_url }}
release_version: ${{ env.RELEASE_VERSION }}
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Create Release info
# e.g. refs/tags/23.01
run: |
echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
echo "RELEASE_NAME=Release ${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
- uses: softprops/action-gh-release@v2
id: create_release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ env.RELEASE_VERSION }}
name: ${{ env.RELEASE_NAME }}
draft: true
prerelease: true

macos_build_job:
needs: release_job
strategy:
fail-fast: false
matrix:
os: [macos-12, macos-14]
runs-on: ${{ matrix.os }}
name: Build on ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Build
run: |
xcodebuild
- name: Check final binary
run: otool -L build/Release/IQSpectrogram.qlgenerator/Contents/MacOS/IQSpectrogram
- name: "Upload Release Asset"
if: matrix.os == 'macos-14'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
ZIP_FILE: IQSpectrogram-quicklook-${{ matrix.os }}-${{ needs.release_job.outputs.release_version }}.zip
run: |
cd build/Release
zip -r $ZIP_FILE IQSpectrogram.qlgenerator
gh release upload ${{ needs.release_job.outputs.release_version }} $ZIP_FILE
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@
This is an open-source QuickLook plugin to generate spectrogram thumbnails and previews for SDR I/Q data.
Requires Mac OS X 10.7 or later (but tested on 10.8).

Small preview in Finder windows:
![Finder screenshot](./images/Finder.png)

Full QuickLook file preview:
![QuickLook screenshot](./images/Quicklook.png)

## Supported file types

- `.cu4`
Expand Down
Binary file added images/Finder.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/Quicklook.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit a2bfeaf

Please sign in to comment.