From a4291c04eac2431e1c623cac9a384228d6c5d3f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Leonard=20G=C3=B6hrs?= Date: Thu, 25 Jul 2024 11:53:29 +0200 Subject: [PATCH] CI: prettier --- .github/workflows/build.yml | 28 ++++++++++++++++++---------- 1 file changed, 18 insertions(+), 10 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 4184ed55..999fe065 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -11,21 +11,29 @@ jobs: name: build runs-on: [self-hosted, forrest, build] steps: - - run: sudo localectl set-locale en_US.UTF-8 - - run: sudo apt-get update - - run: sudo apt-get --assume-yes dist-upgrade - - run: sudo apt-get --assume-yes install build-essential chrpath diffstat gawk git lz4 - - uses: actions/checkout@v4 + - name: Set up runner machine + run: | + sudo localectl set-locale en_US.UTF-8 + sudo apt-get update + sudo apt-get --assume-yes dist-upgrade + sudo apt-get --assume-yes install build-essential chrpath diffstat gawk git lz4 + - name: Check out the repository + uses: actions/checkout@v4 with: submodules: recursive - - run: | + - name: Build LXA TAC RAUC bundle + run: | rm -f conf/local.conf source oe-init-build-env echo 'INHERIT += "rm_work"' >> conf/local.conf - bitbake lxatac-core-bundle-base + #bitbake lxatac-core-bundle-base + bitbake emmc-boot-image - name: Persist the disk image env: PERSISTENCE_TOKEN: ${{ secrets.PERSISTENCE_TOKEN }} - run: echo "$PERSISTENCE_TOKEN" > ~/config/persist - - name: Free up unused space in the disk image - run: sudo fstrim / + run: | + if [ -n "$PERSISTENCE_TOKEN" ] + then + sudo fstrim / + echo "$PERSISTENCE_TOKEN" > ~/config/persist + fi