From f7ffa85ef8798542b1b6965d765f3f1137dfa4e5 Mon Sep 17 00:00:00 2001 From: Raphael <68374617+raphaelscholle@users.noreply.github.com> Date: Sat, 11 Jan 2025 19:41:24 +0100 Subject: [PATCH] testing stuff --- .github/workflows/eventbuild.yml | 10 ++++++++-- stages/03-Preconfiguration/02-run-chroot.sh | 3 ++- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/.github/workflows/eventbuild.yml b/.github/workflows/eventbuild.yml index 3280dd86..ee0666e1 100644 --- a/.github/workflows/eventbuild.yml +++ b/.github/workflows/eventbuild.yml @@ -6,6 +6,7 @@ on: - "2.6-evo" - "dev-release" - "release" + - "add-ramdisk" jobs: build: @@ -34,10 +35,14 @@ jobs: echo "DT=$(date -d '+1 hour' +'%m-%d-%Y-%H-%M-%S')" >> $GITHUB_ENV echo "BRANCH=${GITHUB_REF##*/}" >> $GITHUB_ENV echo "$GITHUB_ENV" - - + ### ONLY THIS RELEVANT FOR BUILDING ### - uses: actions/checkout@v4 + - name: Print dev-build if dev-release + if: ${{ env.BRANCH == 'dev-release' || env.BRANCH == 'add-ramdisk' }} + run: | + ls -a + touch Open*/additionalFiles/dev-build - name: update run: sudo apt-get update - name: remove even more @@ -70,6 +75,7 @@ jobs: - name: Build Image run: | touch additionalFiles/issue-new.txt + echo "OpenHD-image-${{ matrix.TARGET }}-${{ matrix.DISTRO }}-${GITHUB_REF##*/}-${{ env.DT }}" > additionalFiles/issue-new.txt sudo ./build.sh ${{ matrix.TARGET }} # - name: debug diff --git a/stages/03-Preconfiguration/02-run-chroot.sh b/stages/03-Preconfiguration/02-run-chroot.sh index 687128e8..7dac8dfb 100644 --- a/stages/03-Preconfiguration/02-run-chroot.sh +++ b/stages/03-Preconfiguration/02-run-chroot.sh @@ -7,7 +7,8 @@ rm -Rf /opt/additionalFiles echo "alias led='led_sys.sh'" | sudo tee -a /etc/bash.bashrc >/dev/null - +#create ramdisk +sudo mkdir -p /ramdisk && echo "tmpfs /ramdisk tmpfs defaults,size=100M 0 0" | sudo tee -a /etc/fstab && sudo mount /ramdisk if [[ "${OS}" == "radxa-debian-rock5a" ]]; then mkdir -p /usr/local/share/openhd_platform/rock/rock5a