From fe642ebec28d6e03bc17d67511e8b3bfff9d68ea Mon Sep 17 00:00:00 2001 From: AuxXxilium Date: Sat, 9 Nov 2024 17:45:40 +0100 Subject: [PATCH] build: update 2 Signed-off-by: AuxXxilium --- .github/workflows/autobuild.yml | 12 +++++++----- .github/workflows/build.yml | 15 ++++++++------- img-gen-n.sh | 4 ++-- img-gen-s.sh | 4 ++-- 4 files changed, 19 insertions(+), 16 deletions(-) diff --git a/.github/workflows/autobuild.yml b/.github/workflows/autobuild.yml index 60626749..a63a3358 100644 --- a/.github/workflows/autobuild.yml +++ b/.github/workflows/autobuild.yml @@ -5,15 +5,17 @@ # See /LICENSE for more information. # -name: Build Arc Development +name: Build Arc Image Development on: workflow_dispatch: inputs: runs: description: "runs-on (ubuntu-latest / self-hosted)" - default: "ubuntu-latest" - type: string + type: choice + options: + - ubuntu-latest + - self-hosted version: description: "version (1.0.0)" required: true @@ -117,8 +119,8 @@ jobs: repackInitrd "brx/initrd-arc" "files/initrd" "files/p3/initrd-arc" echo "Copying files" - sudo cp -Rf "files/p1/"* "/tmp/p1" - sudo cp -Rf "files/p3/"* "/tmp/p3" + sudo cp -rf "files/p1/"* "/tmp/p1" + sudo cp -rf "files/p3/"* "/tmp/p3" sync echo "Unmount image file" diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 2e2c868a..99f0c35b 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -12,8 +12,10 @@ on: inputs: runs: description: "runs-on (ubuntu-latest / self-hosted)" - default: "ubuntu-latest" - type: string + type: choice + options: + - ubuntu-latest + - self-hosted version: description: "version (1.0.0)" required: true @@ -51,13 +53,12 @@ jobs: uses: actions/checkout@main - name: Delete releases and workflows runs - if: inputs.clean == true + if: ${{ inputs.clean }} == 'true' uses: ophub/delete-releases-workflows@main with: delete_releases: true releases_keep_latest: 1 - delete_workflows: true - workflows_keep_day: 1 + delete_workflows: false delete_tags: true gh_token: ${{ secrets.GITHUB_TOKEN }} @@ -144,8 +145,8 @@ jobs: repackInitrd "brx/initrd-arc" "files/initrd" "files/p3/initrd-arc" echo "Copying files" - sudo cp -Rf "files/p1/"* "/tmp/p1" - sudo cp -Rf "files/p3/"* "/tmp/p3" + sudo cp -rf "files/p1/"* "/tmp/p1" + sudo cp -rf "files/p3/"* "/tmp/p3" sync echo "Unmount image file" diff --git a/img-gen-n.sh b/img-gen-n.sh index 9c079ef3..8db05b6a 100755 --- a/img-gen-n.sh +++ b/img-gen-n.sh @@ -50,8 +50,8 @@ cp -f "brx/bzImage-arc" "files/p3/bzImage-arc" repackInitrd "brx/initrd-arc" "files/initrd" "files/p3/initrd-arc" echo "Copying files" -sudo cp -Rf "files/p1/"* "/tmp/p1" -sudo cp -Rf "files/p3/"* "/tmp/p3" +sudo cp -rf "files/p1/"* "/tmp/p1" +sudo cp -rf "files/p3/"* "/tmp/p3" sync echo "Unmount image file" diff --git a/img-gen-s.sh b/img-gen-s.sh index 47d10bc8..8c01a203 100755 --- a/img-gen-s.sh +++ b/img-gen-s.sh @@ -50,8 +50,8 @@ cp -f "brs/bzImage-arc" "files/p3/bzImage-arc" repackInitrd "brs/initrd-arc" "files/initrd" "files/p3/initrd-arc" echo "Copying files" -sudo cp -Rf "files/p1/"* "/tmp/p1" -sudo cp -Rf "files/p3/"* "/tmp/p3" +sudo cp -rf "files/p1/"* "/tmp/p1" +sudo cp -rf "files/p3/"* "/tmp/p3" sync echo "Unmount image file"