From 29b22d04fc230a4232eb85cedfc09346ac972b5c Mon Sep 17 00:00:00 2001 From: dogi Date: Tue, 23 Jul 2024 19:17:41 -0400 Subject: [PATCH] actions: bump `actions/checkout` to 4 (fixes #48) (#50) --- .github/workflows/build.yml | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 3c47b2c..08d1176 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,4 +1,4 @@ -name: Build Image +name: build cube image on: workflow_dispatch: @@ -12,40 +12,42 @@ jobs: build: runs-on: ubuntu-latest steps: - - name: Install Dependencies + - name: install dependencies run: | sudo apt update sudo apt install coreutils p7zip-full qemu-user-static - - name: Checkout CustomPiOS - uses: actions/checkout@v3 + - name: checkout CustomPiOS + uses: actions/checkout@v4 with: + fetch-depth: 1 repository: 'guysoft/CustomPiOS' path: CustomPiOS - - - name: Checkout Project Repository - uses: actions/checkout@v3 + + - name: checkout repository code + uses: actions/checkout@v4 with: + fetch-depth: 1 path: repository submodules: true - - name: Download Raspios Lite ARM64 Image + - name: download raspios lite arm64 image run: | cd repository/src/image-raspios_lite_arm64 wget -c --trust-server-names 'https://downloads.raspberrypi.org/raspios_lite_arm64/images/raspios_lite_arm64-2024-07-04/2024-07-04-raspios-bookworm-arm64-lite.img.xz' - - name: Update CustomPiOS Paths + - name: update CustomPiOS paths run: | cd repository/src/image-raspios_lite_arm64 ../../../CustomPiOS/src/update-custompios-paths - - name: Build Image + - name: build image run: | sudo modprobe loop cd repository/src sudo bash -x ./build_dist raspios_lite_arm64 - - name: Copy output + - name: copy output id: copy run: | source repository/src/config