Skip to content

Workflow file for this run

name: Kuiper Scopy Build
on: [push, pull_request]
env:
BUILD_HOST: ubuntu-20.04
USERNAME: host-runner
jobs:
build_scopy_for_kuiper:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v4
with:
set-safe-directory: 'true'
- name: Pull the Docker Image
run: docker pull cristianbindea/scopy2-kuiper:latest
- name: Setup upterm session
uses: lhotari/action-upterm@v1
- name: Create Scopy AppImage
shell: bash
run: |
sudo chown -R 1000:1000 $GITHUB_WORKSPACE
set "BUILD_HOST=ubuntu-20.04"
set "DOCKER_USERNAME=runner"
set "SCOPY_PATH=/home/runner/scopy"
docker run \
--mount type=bind,source="$GITHUB_WORKSPACE",target=$SCOPY_PATH \
-e BUILD_HOST=$BUILD_HOST \
-e DOCKER_USERNAME=$DOCKER_USERNAME \
-e GITHUB_SERVER_URL=$GITHUB_SERVER_URL \
-e GITHUB_API_URL=$GITHUB_API_URL \
-e GITHUB_RUN_ID=$GITHUB_RUN_ID \
-e GITHUB_RUN_NUMBER=$GITHUB_RUN_NUMBER \
-e GITHUB_JOB=$GITHUB_JOB \
-e RUNNER_ARCH=$RUNNER_ARCH \
-e SHELL="/bin/bash" \
cristianbindea/scopy2-kuiper:latest \
/bin/bash -c 'sudo chown -R $DOCKER_USERNAME:$DOCKER_USERNAME $SCOPY_PATH && \
cd $SCOPY_PATH && \
./ci/kuiper/kuiper_build_process.sh install_packages download_cmake download_crosscompiler move_sysroot build_scopy build_iio-emu create_appdir create_appimage && \
cd $HOME && \
sudo chown -R $DOCKER_USERNAME:$DOCKER_USERNAME $SCOPY_PATH && \
cd $SCOPY_PATH && \
./ci/kuiper/kuiper_build_process.sh create_appimage move_appimage'
- name: Set short git commit SHA
shell: bash
run: echo "commit_sha=$(git rev-parse --short ${{ github.sha }})" >> "$GITHUB_ENV"
- uses: actions/upload-artifact@v4
with:
name: scopy-linux-armhf-${{ env.commit_sha }}
path: ${{ github.workspace }}/Scopy-armhf.AppImage