Skip to content
Open
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
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: Build Binaries

on: [push, pull_request]
on: [push, pull_request, workflow_dispatch]

jobs:
build_debian_buster:
Expand All @@ -20,7 +20,7 @@ jobs:
run: docker cp build:/root/android-sdr-kit.tar.gz ./

- name: Save Deb Archive
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: android-sdr-kit
path: ${{runner.workspace}}/android-sdr-kit.tar.gz
41 changes: 41 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Build and Push to GHCR

on:
push:
branches: ['main'] # Trigger on push to main branch

env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}

jobs:
build-and-push:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Log in to the Container registry
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v5
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}

- name: Build and push Docker image
uses: docker/build-push-action@v5
with:
context: .
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
35 changes: 33 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,40 @@ FROM ubuntu:jammy

ENV DEBIAN_FRONTEND=noninteractive
ENV ENV="/etc/profile"
ENV ANDROID_INSTALLER=commandlinetools-linux-8512546_latest.zip
ENV ANDROID_API_LEVEL=28
ENV ANDROID_NDK_VERSION=27.3.13750724
ENV ANDROID_CMAKE_VERSION=3.18.1
ENV GRADLE_VERSION=7.3.3
ENV SDR_KIT_BUILD=/root/sdr-kit-build
ENV SDR_KIT_ROOT=/sdr-kit
ENV ANDROID_HOME=/root/Android
ENV ANDROID_SDK_ROOT=/root/Android

COPY install.sh /root

RUN chmod +x /root/install.sh && /root/install.sh /root

COPY clone.sh /root
RUN chmod +x /root/clone.sh && /root/clone.sh $SDR_KIT_BUILD

COPY build.sh /root
COPY package.sh /root
RUN chmod +x /root/build.sh
RUN /root/build.sh clone
RUN /root/build.sh libstd
RUN /root/build.sh libfftw
RUN /root/build.sh codec2
RUN /root/build.sh libusb
RUN /root/build.sh libbladerf
RUN /root/build.sh libxml2
RUN /root/build.sh libiio
RUN /root/build.sh libhydrasdr
RUN /root/build.sh libad9361
RUN /root/build.sh librtlsdr
RUN /root/build.sh libhackrf
RUN /root/build.sh libairspy
RUN /root/build.sh libairspyhf
RUN /root/build.sh libvolk

RUN chmod +x /root/install.sh && cd /root && ./install.sh
COPY package.sh /root
RUN chmod +x /root/package.sh && /root/package.sh $SDR_KIT_ROOT
Loading