build: update 2

Signed-off-by: AuxXxilium <info@auxxxilium.tech>
This commit is contained in:
AuxXxilium 2024-11-09 17:45:40 +01:00
parent bc43cdaeb7
commit fe642ebec2
4 changed files with 19 additions and 16 deletions

View File

@ -5,15 +5,17 @@
# See /LICENSE for more information. # See /LICENSE for more information.
# #
name: Build Arc Development name: Build Arc Image Development
on: on:
workflow_dispatch: workflow_dispatch:
inputs: inputs:
runs: runs:
description: "runs-on (ubuntu-latest / self-hosted)" description: "runs-on (ubuntu-latest / self-hosted)"
default: "ubuntu-latest" type: choice
type: string options:
- ubuntu-latest
- self-hosted
version: version:
description: "version (1.0.0)" description: "version (1.0.0)"
required: true required: true
@ -117,8 +119,8 @@ jobs:
repackInitrd "brx/initrd-arc" "files/initrd" "files/p3/initrd-arc" repackInitrd "brx/initrd-arc" "files/initrd" "files/p3/initrd-arc"
echo "Copying files" echo "Copying files"
sudo cp -Rf "files/p1/"* "/tmp/p1" sudo cp -rf "files/p1/"* "/tmp/p1"
sudo cp -Rf "files/p3/"* "/tmp/p3" sudo cp -rf "files/p3/"* "/tmp/p3"
sync sync
echo "Unmount image file" echo "Unmount image file"

View File

@ -12,8 +12,10 @@ on:
inputs: inputs:
runs: runs:
description: "runs-on (ubuntu-latest / self-hosted)" description: "runs-on (ubuntu-latest / self-hosted)"
default: "ubuntu-latest" type: choice
type: string options:
- ubuntu-latest
- self-hosted
version: version:
description: "version (1.0.0)" description: "version (1.0.0)"
required: true required: true
@ -51,13 +53,12 @@ jobs:
uses: actions/checkout@main uses: actions/checkout@main
- name: Delete releases and workflows runs - name: Delete releases and workflows runs
if: inputs.clean == true if: ${{ inputs.clean }} == 'true'
uses: ophub/delete-releases-workflows@main uses: ophub/delete-releases-workflows@main
with: with:
delete_releases: true delete_releases: true
releases_keep_latest: 1 releases_keep_latest: 1
delete_workflows: true delete_workflows: false
workflows_keep_day: 1
delete_tags: true delete_tags: true
gh_token: ${{ secrets.GITHUB_TOKEN }} gh_token: ${{ secrets.GITHUB_TOKEN }}
@ -144,8 +145,8 @@ jobs:
repackInitrd "brx/initrd-arc" "files/initrd" "files/p3/initrd-arc" repackInitrd "brx/initrd-arc" "files/initrd" "files/p3/initrd-arc"
echo "Copying files" echo "Copying files"
sudo cp -Rf "files/p1/"* "/tmp/p1" sudo cp -rf "files/p1/"* "/tmp/p1"
sudo cp -Rf "files/p3/"* "/tmp/p3" sudo cp -rf "files/p3/"* "/tmp/p3"
sync sync
echo "Unmount image file" echo "Unmount image file"

View File

@ -50,8 +50,8 @@ cp -f "brx/bzImage-arc" "files/p3/bzImage-arc"
repackInitrd "brx/initrd-arc" "files/initrd" "files/p3/initrd-arc" repackInitrd "brx/initrd-arc" "files/initrd" "files/p3/initrd-arc"
echo "Copying files" echo "Copying files"
sudo cp -Rf "files/p1/"* "/tmp/p1" sudo cp -rf "files/p1/"* "/tmp/p1"
sudo cp -Rf "files/p3/"* "/tmp/p3" sudo cp -rf "files/p3/"* "/tmp/p3"
sync sync
echo "Unmount image file" echo "Unmount image file"

View File

@ -50,8 +50,8 @@ cp -f "brs/bzImage-arc" "files/p3/bzImage-arc"
repackInitrd "brs/initrd-arc" "files/initrd" "files/p3/initrd-arc" repackInitrd "brs/initrd-arc" "files/initrd" "files/p3/initrd-arc"
echo "Copying files" echo "Copying files"
sudo cp -Rf "files/p1/"* "/tmp/p1" sudo cp -rf "files/p1/"* "/tmp/p1"
sudo cp -Rf "files/p3/"* "/tmp/p3" sudo cp -rf "files/p3/"* "/tmp/p3"
sync sync
echo "Unmount image file" echo "Unmount image file"