Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
Signed-off-by: Bindea Cristian <[email protected]>
  • Loading branch information
bindea-cristian committed Apr 5, 2024
1 parent de511f8 commit a8c4647
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 17 deletions.
28 changes: 12 additions & 16 deletions .github/workflows/kuiperbuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
--mount type=bind,source="$GITHUB_WORKSPACE",target=/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
Expand Down
3 changes: 2 additions & 1 deletion ci/kuiper/kuiper_build_process.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#!/bin/bash

set -ex
git config --global --add safe.directory $HOME/scopy
SRC_DIR=$(git rev-parse --show-toplevel)
source $SRC_DIR/ci/kuiper/kuiper_build_config.sh

Expand Down Expand Up @@ -417,7 +418,7 @@ create_appimage(){

move_sysroot(){
mkdir -p $STAGING_AREA
sudo mv /home/runner/sysroot $SYSROOT
[ -d /home/runner/sysroot ] && sudo mv /home/runner/sysroot $SYSROOT
}

move_appimage(){
Expand Down

0 comments on commit a8c4647

Please sign in to comment.