From 19355003988135b982da1daca8778bc155271174 Mon Sep 17 00:00:00 2001 From: Bindea Cristian Date: Thu, 4 Apr 2024 18:49:02 +0300 Subject: [PATCH] fix Signed-off-by: Bindea Cristian --- .github/workflows/kuiperbuild.yml | 28 ++++++++++++---------------- 1 file changed, 12 insertions(+), 16 deletions(-) diff --git a/.github/workflows/kuiperbuild.yml b/.github/workflows/kuiperbuild.yml index facd1209c8..d5cec46196 100644 --- a/.github/workflows/kuiperbuild.yml +++ b/.github/workflows/kuiperbuild.yml @@ -3,32 +3,28 @@ name: Kuiper Scopy Build on: [push, pull_request] env: - BUILD_HOST: ubuntu-22.04 - USERNAME: github-actions + BUILD_HOST: ubuntu-20.04 + USERNAME: runner jobs: - build_scopy_on_ubuntu22: - runs-on: ubuntu-22.04 - container: - image: cristianbindea/scopy2-kuiper:latest - options: --user root + build_scopy_for_kuiper: + runs-on: ubuntu-20.04 + steps: - uses: actions/checkout@v4 + with: + set-safe-directory: 'true' - - name: fix dubious ownership - shell: bash - run: git config --global --add safe.directory $GITHUB_WORKSPACE - - - name: fix HOME variable - shell: bash - run: echo HOME=/home/runner | sudo tee -a $GITHUB_ENV + - name: Pull the Docker Image + run: docker pull cristianbindea/scopy2-kuiper:latest - name: Build Scopy shell: bash run: | - cd $GITHUB_WORKSPACE - ./ci/kuiper/kuiper_build_process.sh install_packages download_cmake download_crosscompiler move_sysroot build_scopy build_iio-emu create_appdir create_appimage move_appimage + docker run \ + -v $GITHUB_WORKSPACE:/home/runner/scopy \ + cristianbindea/scopy2-kuiper:latest /bin/bash -c 'cd /home/runner/scopy && ./ci/kuiper/kuiper_build_process.sh install_packages download_cmake download_crosscompiler move_sysroot build_scopy build_iio-emu create_appdir create_appimage move_appimage' - name: Set short git commit SHA shell: bash