@@ -15,19 +15,21 @@ jobs: | |||||
steps: | steps: | ||||
- name: Checkout code | - name: Checkout code | ||||
uses: actions/checkout@v2 | uses: actions/checkout@v2 | ||||
- name: Clean docker | |||||
id: clean_docker | |||||
working-directory: ${{ env.working-directory }} | |||||
run: | | |||||
docker system prune -af | |||||
docker system prune --volumes -f | |||||
docker container stop $(docker container ls -aq) | |||||
docker container rm $(docker container ls -aq) | |||||
docker image prune -af | |||||
- name: Build project | - name: Build project | ||||
id: builder | id: builder | ||||
working-directory: ${{ env.working-directory }} | working-directory: ${{ env.working-directory }} | ||||
env: | |||||
CONTINUE: 1 | |||||
run: | | run: | | ||||
bash build-docker.sh | bash build-docker.sh | ||||
echo ::set-output name=filename::$(ls deploy/*.tar.xz | xargs -n 1 basename) | echo ::set-output name=filename::$(ls deploy/*.tar.xz | xargs -n 1 basename) | ||||
- name: Fix Permissions | |||||
id: fix_perm_filename | |||||
run: | | |||||
chmod a+rw ${{ env.working-directory }}/deploy/${{ steps.builder.outputs.filename }} | |||||
echo ${{ env.working-directory }}/deploy/${{ steps.builder.outputs.filename }} | |||||
- name: Create Release | - name: Create Release | ||||
id: create_release | id: create_release | ||||
uses: actions/create-release@v1 | uses: actions/create-release@v1 | ||||
@@ -12,17 +12,21 @@ jobs: | |||||
steps: | steps: | ||||
- name: Checkout code | - name: Checkout code | ||||
uses: actions/checkout@v2 | uses: actions/checkout@v2 | ||||
- name: Clean docker | |||||
id: clean_docker | |||||
working-directory: ${{ env.working-directory }} | |||||
run: | | |||||
docker system prune -af | |||||
docker system prune --volumes -f | |||||
docker container stop $(docker container ls -aq) | |||||
docker container rm $(docker container ls -aq) | |||||
docker image prune -af | |||||
- name: Build project | - name: Build project | ||||
id: builder | id: builder | ||||
working-directory: ${{ env.working-directory }} | working-directory: ${{ env.working-directory }} | ||||
run: | | run: | | ||||
bash build-docker.sh | bash build-docker.sh | ||||
echo ::set-output name=filename::$(ls deploy/*.tar.xz | xargs -n 1 basename) | echo ::set-output name=filename::$(ls deploy/*.tar.xz | xargs -n 1 basename) | ||||
- name: Fix Permissions | |||||
id: fix_perm_filename | |||||
run: | | |||||
chmod a+rw ${{ env.working-directory }}/deploy/${{ steps.builder.outputs.filename }} | |||||
echo ${{ env.working-directory }}/deploy/${{ steps.builder.outputs.filename }} | |||||
- uses: actions/upload-artifact@v1 | - uses: actions/upload-artifact@v1 | ||||
with: | with: | ||||
name: ${{ steps.builder.outputs.filename }} | name: ${{ steps.builder.outputs.filename }} | ||||
@@ -0,0 +1,2 @@ | |||||
vim | |||||
tmux |
@@ -1,10 +1,13 @@ | |||||
install -m 755 shortcut/gnuradio.desktop "${ROOTFS_DIR}/home/${FIRST_USER_NAME}/Desktop" | |||||
install -m 755 shortcut/gqrx.desktop "${ROOTFS_DIR}/home/${FIRST_USER_NAME}/Desktop" | |||||
install -m 755 shortcut/sdrangel.desktop "${ROOTFS_DIR}/home/${FIRST_USER_NAME}/Desktop" | |||||
install -d "${ROOTFS_DIR}/home/${FIRST_USER_NAME}/Desktop" | |||||
install -D -m 755 shortcut/gnuradio.desktop "${ROOTFS_DIR}/home/${FIRST_USER_NAME}/Desktop" | |||||
install -D -m 755 shortcut/gqrx.desktop "${ROOTFS_DIR}/home/${FIRST_USER_NAME}/Desktop" | |||||
install -D -m 755 shortcut/sdrangel.desktop "${ROOTFS_DIR}/home/${FIRST_USER_NAME}/Desktop" | |||||
install -m 755 wallpaper/donald-giannatti-vla.jpg "${ROOTFS_DIR}/usr/share/rpd-wallpaper/" | |||||
install -D -m 755 wallpaper/donald-giannatti-vla.jpg "${ROOTFS_DIR}/usr/share/rpd-wallpaper/" | |||||
on_chroot << EOF | |||||
rm -fr /usr/share/rpd-wallpaper/road.jpg | |||||
mv /usr/share/rpd-wallpaper/donald-giannatti-vla.jpg /usr/share/rpd-wallpaper/road.jpg | |||||
EOF | |||||
install -v -o 1000 -g 1000 -d "${ROOTFS_DIR}/home/${FIRST_USER_NAME}/.config/" | |||||
install -v -o 1000 -g 1000 -d "${ROOTFS_DIR}/home/${FIRST_USER_NAME}/.config/menus/" | |||||
install -v -o 1000 -g 1000 -d "${ROOTFS_DIR}/home/${FIRST_USER_NAME}/.config/pcmanfm/" | |||||
install -v -o 1000 -g 1000 -d "${ROOTFS_DIR}/home/${FIRST_USER_NAME}/.config/pcmanfm/LXDE-pi/" | |||||
install -v -o 1000 -g 1000 -m 644 wallpaper/desktop-items-0.conf "${ROOTFS_DIR}/home/${FIRST_USER_NAME}/.config/pcmanfm/LXDE-pi/" |
@@ -0,0 +1,7 @@ | |||||
#!/bin/bash -e | |||||
on_chroot << EOF | |||||
mkdir -p "/home/${FIRST_USER_NAME}/PiSDR" | |||||
mkdir -p "/home/${FIRST_USER_NAME}/PiSDR/Software" | |||||
mkdir -p "/home/${FIRST_USER_NAME}/PiSDR/Radios" | |||||
EOF |
@@ -0,0 +1,4 @@ | |||||
[*] | |||||
wallpaper_mode=crop | |||||
wallpaper_common=1 | |||||
wallpaper=/usr/share/rpd-wallpaper/donald-giannatti-vla.jpg |
@@ -1,8 +1,8 @@ | |||||
#!/bin/bash -e | #!/bin/bash -e | ||||
on_chroot << EOF | on_chroot << EOF | ||||
mkdir -p "/home/${FIRST_USER_NAME}/GNURadio" | |||||
cd "/home/${FIRST_USER_NAME}/GNURadio" | |||||
mkdir -p "/home/${FIRST_USER_NAME}/PiSDR/Software" | |||||
cd "/home/${FIRST_USER_NAME}/PiSDR/Software" | |||||
if [ ! -d "gnuradio" ]; then | if [ ! -d "gnuradio" ]; then | ||||
git clone --recursive https://github.com/gnuradio/gnuradio.git | git clone --recursive https://github.com/gnuradio/gnuradio.git | ||||
@@ -1,8 +1,8 @@ | |||||
#!/bin/bash | #!/bin/bash | ||||
on_chroot << EOF | on_chroot << EOF | ||||
mkdir -p "/home/${FIRST_USER_NAME}/Packages" | |||||
cd "/home/${FIRST_USER_NAME}/Packages" | |||||
mkdir -p "/home/${FIRST_USER_NAME}/PiSDR/Software" | |||||
cd "/home/${FIRST_USER_NAME}/PiSDR/Software" | |||||
if [ ! -d "SoapySDR" ]; then | if [ ! -d "SoapySDR" ]; then | ||||
git clone https://github.com/pothosware/SoapySDR.git | git clone https://github.com/pothosware/SoapySDR.git | ||||
@@ -1,8 +1,8 @@ | |||||
#!/bin/bash | #!/bin/bash | ||||
on_chroot << EOF | on_chroot << EOF | ||||
mkdir -p "/home/${FIRST_USER_NAME}/Packages" | |||||
cd "/home/${FIRST_USER_NAME}/Packages" | |||||
mkdir -p "/home/${FIRST_USER_NAME}/PiSDR/Software" | |||||
cd "/home/${FIRST_USER_NAME}/PiSDR/Software" | |||||
if [ ! -d "SoapyRemote" ]; then | if [ ! -d "SoapyRemote" ]; then | ||||
git clone https://github.com/pothosware/SoapyRemote.git | git clone https://github.com/pothosware/SoapyRemote.git | ||||
@@ -1,8 +1,8 @@ | |||||
#!/bin/bash | #!/bin/bash | ||||
on_chroot << EOF | on_chroot << EOF | ||||
mkdir -p "/home/${FIRST_USER_NAME}/Packages" | |||||
cd "/home/${FIRST_USER_NAME}/Packages" | |||||
mkdir -p "/home/${FIRST_USER_NAME}/PiSDR/Software" | |||||
cd "/home/${FIRST_USER_NAME}/PiSDR/Software" | |||||
if [ ! -d "gr-soapy" ]; then | if [ ! -d "gr-soapy" ]; then | ||||
git clone https://gitlab.com/librespacefoundation/gr-soapy.git | git clone https://gitlab.com/librespacefoundation/gr-soapy.git | ||||
@@ -1,8 +1,8 @@ | |||||
#!/bin/bash -e | #!/bin/bash -e | ||||
on_chroot << EOF | on_chroot << EOF | ||||
mkdir -p "/home/${FIRST_USER_NAME}/LimeSDR" | |||||
cd "/home/${FIRST_USER_NAME}/LimeSDR" | |||||
mkdir -p "/home/${FIRST_USER_NAME}/PiSDR/Radios" | |||||
cd "/home/${FIRST_USER_NAME}/PiSDR/Radios" | |||||
if [ ! -d "LimeSuite" ]; then | if [ ! -d "LimeSuite" ]; then | ||||
git clone https://github.com/myriadrf/LimeSuite.git | git clone https://github.com/myriadrf/LimeSuite.git | ||||
@@ -1,8 +1,8 @@ | |||||
#!/bin/bash -e | #!/bin/bash -e | ||||
on_chroot << EOF | on_chroot << EOF | ||||
mkdir -p "/home/${FIRST_USER_NAME}/LimeSDR" | |||||
cd "/home/${FIRST_USER_NAME}/LimeSDR" | |||||
mkdir -p "/home/${FIRST_USER_NAME}/PiSDR/Radios" | |||||
cd "/home/${FIRST_USER_NAME}/PiSDR/Radios" | |||||
if [ ! -d "gr-limesdr" ]; then | if [ ! -d "gr-limesdr" ]; then | ||||
git clone https://github.com/myriadrf/gr-limesdr.git | git clone https://github.com/myriadrf/gr-limesdr.git | ||||
@@ -1,8 +1,8 @@ | |||||
#!/bin/bash -e | #!/bin/bash -e | ||||
on_chroot << EOF | on_chroot << EOF | ||||
mkdir -p "/home/${FIRST_USER_NAME}/Airspy" | |||||
cd "/home/${FIRST_USER_NAME}/Airspy" | |||||
mkdir -p "/home/${FIRST_USER_NAME}/PiSDR/Radios" | |||||
cd "/home/${FIRST_USER_NAME}/PiSDR/Radios" | |||||
if [ ! -d "airspyone_host" ]; then | if [ ! -d "airspyone_host" ]; then | ||||
git clone https://github.com/airspy/airspyone_host.git | git clone https://github.com/airspy/airspyone_host.git | ||||
@@ -1,8 +1,8 @@ | |||||
#!/bin/bash -e | #!/bin/bash -e | ||||
on_chroot << EOF | on_chroot << EOF | ||||
mkdir -p "/home/${FIRST_USER_NAME}/Airspy" | |||||
cd "/home/${FIRST_USER_NAME}/Airspy" | |||||
mkdir -p "/home/${FIRST_USER_NAME}/PiSDR/Radios" | |||||
cd "/home/${FIRST_USER_NAME}/PiSDR/Radios" | |||||
if [ ! -d "airspyhf" ]; then | if [ ! -d "airspyhf" ]; then | ||||
git clone https://github.com/airspy/airspyhf.git | git clone https://github.com/airspy/airspyhf.git | ||||
@@ -1,8 +1,8 @@ | |||||
#!/bin/bash -e | #!/bin/bash -e | ||||
on_chroot << EOF | on_chroot << EOF | ||||
mkdir -p "/home/${FIRST_USER_NAME}/Airspy" | |||||
cd "/home/${FIRST_USER_NAME}/Airspy" | |||||
mkdir -p "/home/${FIRST_USER_NAME}/PiSDR/Radios" | |||||
cd "/home/${FIRST_USER_NAME}/PiSDR/Radios" | |||||
if [ ! -d "SoapyAirspy" ]; then | if [ ! -d "SoapyAirspy" ]; then | ||||
git clone https://github.com/pothosware/SoapyAirspy.git | git clone https://github.com/pothosware/SoapyAirspy.git | ||||
@@ -0,0 +1,20 @@ | |||||
#!/bin/bash -e | |||||
on_chroot << EOF | |||||
mkdir -p "/home/${FIRST_USER_NAME}/PiSDR/Radios" | |||||
cd "/home/${FIRST_USER_NAME}/PiSDR/Radios" | |||||
if [ ! -d "SoapyAirspyHF" ]; then | |||||
git clone https://github.com/pothosware/SoapyAirspyHF.git | |||||
fi | |||||
cd SoapyAirspyHF | |||||
git pull | |||||
mkdir -p build | |||||
cd build | |||||
cmake -DCMAKE_CXX_FLAGS=-latomic ../ | |||||
make -j$(nproc) install | |||||
ldconfig | |||||
EOF | |||||
@@ -1,8 +1,8 @@ | |||||
#!/bin/bash -e | #!/bin/bash -e | ||||
on_chroot << EOF | on_chroot << EOF | ||||
mkdir -p "/home/${FIRST_USER_NAME}/RTLSDR" | |||||
cd "/home/${FIRST_USER_NAME}/RTLSDR" | |||||
mkdir -p "/home/${FIRST_USER_NAME}/PiSDR/Radios" | |||||
cd "/home/${FIRST_USER_NAME}/PiSDR/Radios" | |||||
if [ ! -d "rtl-sdr" ]; then | if [ ! -d "rtl-sdr" ]; then | ||||
git clone https://github.com/osmocom/rtl-sdr | git clone https://github.com/osmocom/rtl-sdr | ||||
@@ -1,8 +1,8 @@ | |||||
#!/bin/bash -e | #!/bin/bash -e | ||||
on_chroot << EOF | on_chroot << EOF | ||||
mkdir -p "/home/${FIRST_USER_NAME}/RTLSDR" | |||||
cd "/home/${FIRST_USER_NAME}/RTLSDR" | |||||
mkdir -p "/home/${FIRST_USER_NAME}/PiSDR/Radios" | |||||
cd "/home/${FIRST_USER_NAME}/PiSDR/Radios" | |||||
if [ ! -d "SoapyRTLSDR" ]; then | if [ ! -d "SoapyRTLSDR" ]; then | ||||
git clone https://github.com/pothosware/SoapyRTLSDR.git | git clone https://github.com/pothosware/SoapyRTLSDR.git | ||||
@@ -1,8 +1,8 @@ | |||||
#!/bin/bash -e | #!/bin/bash -e | ||||
on_chroot << EOF | on_chroot << EOF | ||||
mkdir -p "/home/${FIRST_USER_NAME}/PlutoSDR" | |||||
cd "/home/${FIRST_USER_NAME}/PlutoSDR" | |||||
mkdir -p "/home/${FIRST_USER_NAME}/PiSDR/Radios" | |||||
cd "/home/${FIRST_USER_NAME}/PiSDR/Radios" | |||||
if [ ! -d "libiio" ]; then | if [ ! -d "libiio" ]; then | ||||
git clone https://github.com/analogdevicesinc/libiio | git clone https://github.com/analogdevicesinc/libiio | ||||
@@ -1,8 +1,8 @@ | |||||
#!/bin/bash -e | #!/bin/bash -e | ||||
on_chroot << EOF | on_chroot << EOF | ||||
mkdir -p "/home/${FIRST_USER_NAME}/PlutoSDR" | |||||
cd "/home/${FIRST_USER_NAME}/PlutoSDR" | |||||
mkdir -p "/home/${FIRST_USER_NAME}/PiSDR/Radios" | |||||
cd "/home/${FIRST_USER_NAME}/PiSDR/Radios" | |||||
if [ ! -d "libad9361-iio" ]; then | if [ ! -d "libad9361-iio" ]; then | ||||
git clone https://github.com/analogdevicesinc/libad9361-iio | git clone https://github.com/analogdevicesinc/libad9361-iio | ||||
@@ -1,8 +1,8 @@ | |||||
#!/bin/bash -e | #!/bin/bash -e | ||||
on_chroot << EOF | on_chroot << EOF | ||||
mkdir -p "/home/${FIRST_USER_NAME}/PlutoSDR" | |||||
cd "/home/${FIRST_USER_NAME}/PlutoSDR" | |||||
mkdir -p "/home/${FIRST_USER_NAME}/PiSDR/Radios" | |||||
cd "/home/${FIRST_USER_NAME}/PiSDR/Radios" | |||||
if [ ! -d "gr-iio" ]; then | if [ ! -d "gr-iio" ]; then | ||||
git clone https://github.com/analogdevicesinc/gr-iio | git clone https://github.com/analogdevicesinc/gr-iio | ||||
@@ -1,8 +1,8 @@ | |||||
#!/bin/bash -e | #!/bin/bash -e | ||||
on_chroot << EOF | on_chroot << EOF | ||||
mkdir -p "/home/${FIRST_USER_NAME}/PlutoSDR" | |||||
cd "/home/${FIRST_USER_NAME}/PlutoSDR" | |||||
mkdir -p "/home/${FIRST_USER_NAME}/PiSDR/Radios" | |||||
cd "/home/${FIRST_USER_NAME}/PiSDR/Radios" | |||||
if [ ! -d "SoapyPlutoSDR" ]; then | if [ ! -d "SoapyPlutoSDR" ]; then | ||||
git clone https://github.com/pothosware/SoapyPlutoSDR.git | git clone https://github.com/pothosware/SoapyPlutoSDR.git | ||||
@@ -1,8 +1,8 @@ | |||||
#!/bin/bash -e | #!/bin/bash -e | ||||
on_chroot << EOF | on_chroot << EOF | ||||
mkdir -p "/home/${FIRST_USER_NAME}/Software" | |||||
cd "/home/${FIRST_USER_NAME}/Software" | |||||
mkdir -p "/home/${FIRST_USER_NAME}/PiSDR/Software" | |||||
cd "/home/${FIRST_USER_NAME}/PiSDR/Software" | |||||
if [ ! -d "gr-osmosdr" ]; then | if [ ! -d "gr-osmosdr" ]; then | ||||
git clone git://git.osmocom.org/gr-osmosdr | git clone git://git.osmocom.org/gr-osmosdr | ||||
@@ -1,8 +1,8 @@ | |||||
#!/bin/bash -e | #!/bin/bash -e | ||||
on_chroot << EOF | on_chroot << EOF | ||||
mkdir -p "/home/${FIRST_USER_NAME}/Software" | |||||
cd "/home/${FIRST_USER_NAME}/Software" | |||||
mkdir -p "/home/${FIRST_USER_NAME}/PiSDR/Software" | |||||
cd "/home/${FIRST_USER_NAME}/PiSDR/Software" | |||||
if [ ! -d "cm256cc" ]; then | if [ ! -d "cm256cc" ]; then | ||||
git clone https://github.com/f4exb/cm256cc.git | git clone https://github.com/f4exb/cm256cc.git | ||||
@@ -1,8 +1,8 @@ | |||||
#!/bin/bash -e | #!/bin/bash -e | ||||
on_chroot << EOF | on_chroot << EOF | ||||
mkdir -p "/home/${FIRST_USER_NAME}/Software" | |||||
cd "/home/${FIRST_USER_NAME}/Software" | |||||
mkdir -p "/home/${FIRST_USER_NAME}/PiSDR/Software" | |||||
cd "/home/${FIRST_USER_NAME}/PiSDR/Software" | |||||
if [ ! -d "mbelib" ]; then | if [ ! -d "mbelib" ]; then | ||||
git clone https://github.com/szechyjs/mbelib.git | git clone https://github.com/szechyjs/mbelib.git | ||||
@@ -1,8 +1,8 @@ | |||||
#!/bin/bash -e | #!/bin/bash -e | ||||
on_chroot << EOF | on_chroot << EOF | ||||
mkdir -p "/home/${FIRST_USER_NAME}/Software" | |||||
cd "/home/${FIRST_USER_NAME}/Software" | |||||
mkdir -p "/home/${FIRST_USER_NAME}/PiSDR/Software" | |||||
cd "/home/${FIRST_USER_NAME}/PiSDR/Software" | |||||
if [ ! -d "serialDV" ]; then | if [ ! -d "serialDV" ]; then | ||||
git clone https://github.com/f4exb/serialDV.git | git clone https://github.com/f4exb/serialDV.git | ||||
@@ -1,8 +1,8 @@ | |||||
#!/bin/bash -e | #!/bin/bash -e | ||||
on_chroot << EOF | on_chroot << EOF | ||||
mkdir -p "/home/${FIRST_USER_NAME}/Software" | |||||
cd "/home/${FIRST_USER_NAME}/Software" | |||||
mkdir -p "/home/${FIRST_USER_NAME}/PiSDR/Software" | |||||
cd "/home/${FIRST_USER_NAME}/PiSDR/Software" | |||||
if [ ! -d "dsdcc" ]; then | if [ ! -d "dsdcc" ]; then | ||||
git clone https://github.com/f4exb/dsdcc.git | git clone https://github.com/f4exb/dsdcc.git | ||||
@@ -1,8 +1,8 @@ | |||||
#!/bin/bash -e | #!/bin/bash -e | ||||
on_chroot << EOF | on_chroot << EOF | ||||
mkdir -p "/home/${FIRST_USER_NAME}/Software" | |||||
cd "/home/${FIRST_USER_NAME}/Software" | |||||
mkdir -p "/home/${FIRST_USER_NAME}/PiSDR/Software" | |||||
cd "/home/${FIRST_USER_NAME}/PiSDR/Software" | |||||
if [ ! -d "codec2" ]; then | if [ ! -d "codec2" ]; then | ||||
git clone https://github.com/drowe67/codec2.git | git clone https://github.com/drowe67/codec2.git | ||||
@@ -1,8 +1,8 @@ | |||||
#!/bin/bash -e | #!/bin/bash -e | ||||
on_chroot << EOF | on_chroot << EOF | ||||
mkdir -p "/home/${FIRST_USER_NAME}/Software" | |||||
cd "/home/${FIRST_USER_NAME}/Software" | |||||
mkdir -p "/home/${FIRST_USER_NAME}/PiSDR/Software" | |||||
cd "/home/${FIRST_USER_NAME}/PiSDR/Software" | |||||
if [ ! -d "sdrangel" ]; then | if [ ! -d "sdrangel" ]; then | ||||
git clone https://github.com/f4exb/sdrangel.git | git clone https://github.com/f4exb/sdrangel.git | ||||
@@ -1,8 +1,8 @@ | |||||
#!/bin/bash -e | #!/bin/bash -e | ||||
on_chroot << EOF | on_chroot << EOF | ||||
mkdir -p "/home/${FIRST_USER_NAME}/Software" | |||||
cd "/home/${FIRST_USER_NAME}/Software" | |||||
mkdir -p "/home/${FIRST_USER_NAME}/PiSDR/Software" | |||||
cd "/home/${FIRST_USER_NAME}/PiSDR/Software" | |||||
if [ ! -d "gqrx" ]; then | if [ ! -d "gqrx" ]; then | ||||
git clone https://github.com/csete/gqrx.git | git clone https://github.com/csete/gqrx.git | ||||