From 2b223dd29af702f676226fabe3eab2aea05e36de Mon Sep 17 00:00:00 2001 From: Itxaka Date: Fri, 21 Feb 2025 16:45:20 +0100 Subject: [PATCH] Bump github action for luet (#1283) --- .github/workflows/build-arm64.yaml | 24 ++++++----------- .github/workflows/build.yaml | 43 +++--------------------------- .github/workflows/pr.yaml | 35 +++++------------------- 3 files changed, 19 insertions(+), 83 deletions(-) diff --git a/.github/workflows/build-arm64.yaml b/.github/workflows/build-arm64.yaml index e343951..adade71 100644 --- a/.github/workflows/build-arm64.yaml +++ b/.github/workflows/build-arm64.yaml @@ -8,34 +8,24 @@ on: - main jobs: build: - runs-on: ARM64 - env: - ARCH: amd64 + runs-on: ubuntu-24.04-arm steps: - uses: actions/checkout@v4 - - run: | - git fetch --prune --unshallow - mkdir build - - name: Set up QEMU - uses: docker/setup-qemu-action@master with: - platforms: all - - name: Set up Docker Buildx - id: buildx - uses: docker/setup-buildx-action@master + fetch-depth: 0 - name: Download meta 🔧 - uses: luet-lab/luet-github-action@v0.3.0 + uses: luet-lab/luet-github-action@v0.3.1 with: FINAL_REPO: quay.io/kairos/packages-arm64 REPOSITORY_TYPE: docker downloadAllMeta: true downloadFromList: false downloadMeta: true + luetArch: arm64 # renovate: datasource=github-releases depName=mudler/luet luetVersion: 0.36.0 - luetArch: arm64 - name: Build packages 🔧 - uses: luet-lab/luet-github-action@v0.3.0 + uses: luet-lab/luet-github-action@v0.3.1 if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }} with: build: true @@ -51,10 +41,11 @@ jobs: values: values/arm64.yaml buildx: true platform: linux/arm64 + luetArch: arm64 # renovate: datasource=github-releases depName=mudler/luet luetVersion: 0.36.0 - name: Create repo 🔧 - uses: luet-lab/luet-github-action@v0.3.0 + uses: luet-lab/luet-github-action@v0.3.1 id: create_repo if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }} with: @@ -66,6 +57,7 @@ jobs: createRepo: true pushCache: true revisionSHA: true + luetArch: arm64 # renovate: datasource=github-releases depName=mudler/luet luetVersion: 0.36.0 - name: Summary info diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 77f90dc..904258d 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -9,45 +9,10 @@ on: jobs: build: runs-on: fast - env: - ARCH: amd64 steps: - - name: Release space from worker - run: | - echo "Listing top largest packages" - pkgs=$(dpkg-query -Wf '${Installed-Size}\t${Package}\t${Status}\n' | awk '$NF == "installed"{print $1 "\t" $2}' | sort -nr) - head -n 30 <<< "${pkgs}" - echo - df -h - echo - sudo apt-get remove -y '^llvm-.*|^libllvm.*' || true - sudo apt-get remove --auto-remove android-sdk-platform-tools || true - sudo apt-get purge --auto-remove android-sdk-platform-tools || true - sudo rm -rf /usr/local/lib/android - sudo apt-get remove -y '^dotnet-.*|^aspnetcore-.*' || true - sudo rm -rf /usr/share/dotnet - sudo apt-get remove -y '^mono-.*' || true - sudo apt-get remove -y '^ghc-.*' || true - sudo apt-get remove -y '.*jdk.*|.*jre.*' || true - sudo apt-get remove -y 'php.*' || true - sudo apt-get remove -y hhvm powershell firefox monodoc-manual msbuild || true - sudo apt-get remove -y '^google-.*' || true - sudo apt-get remove -y azure-cli || true - sudo apt-get remove -y '^mongo.*-.*|^postgresql-.*|^mysql-.*|^mssql-.*' || true - sudo apt-get remove -y '^gfortran-.*' || true - sudo apt-get autoremove -y - sudo apt-get clean - echo - echo "Listing top largest packages" - pkgs=$(dpkg-query -Wf '${Installed-Size}\t${Package}\t${Status}\n' | awk '$NF == "installed"{print $1 "\t" $2}' | sort -nr) - head -n 30 <<< "${pkgs}" - echo - sudo rm -rfv build || true - df -h - uses: actions/checkout@v4 - - run: | - git fetch --prune --unshallow - mkdir build + with: + fetch-depth: 0 - name: Download meta 🔧 uses: luet-lab/luet-github-action@v0.3.0 with: @@ -59,7 +24,7 @@ jobs: # renovate: datasource=github-releases depName=mudler/luet luetVersion: 0.36.0 - name: Build packages 🔧 - uses: luet-lab/luet-github-action@v0.3.0 + uses: luet-lab/luet-github-action@v0.3.1 if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }} with: build: true @@ -76,7 +41,7 @@ jobs: # renovate: datasource=github-releases depName=mudler/luet luetVersion: 0.36.0 - name: Create repo 🔧 - uses: luet-lab/luet-github-action@v0.3.0 + uses: luet-lab/luet-github-action@v0.3.1 id: create_repo if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }} with: diff --git a/.github/workflows/pr.yaml b/.github/workflows/pr.yaml index 53276d1..ca9bc44 100644 --- a/.github/workflows/pr.yaml +++ b/.github/workflows/pr.yaml @@ -30,21 +30,13 @@ jobs: go run main.go $PKG_ALL_CHANGED_FILES build-arm64: - runs-on: ARM64 - env: - ARCH: amd64 + runs-on: ubuntu-24.04-arm steps: - uses: actions/checkout@v4 - - run: | - git fetch --prune --unshallow - mkdir build - - name: Set up QEMU - uses: docker/setup-qemu-action@v3.4.0 - - name: Set up Docker Buildx - id: buildx - uses: docker/setup-buildx-action@v3.8.0 + with: + fetch-depth: 0 - name: Build packages 🔧 - uses: luet-lab/luet-github-action@v0.3.0 + uses: luet-lab/luet-github-action@v0.3.1 with: build: true fromIndex: true @@ -59,28 +51,15 @@ jobs: platform: linux/arm64 # renovate: datasource=github-releases depName=mudler/luet luetVersion: 0.36.0 - + luetArch: arm64 build: runs-on: fast - env: - ARCH: amd64 steps: - uses: actions/checkout@v4 - - run: | - git fetch --prune --unshallow - mkdir build - - name: Download meta 🔧 - uses: luet-lab/luet-github-action@v0.3.0 with: - FINAL_REPO: quay.io/kairos/packages - REPOSITORY_TYPE: docker - downloadAllMeta: false - downloadFromList: true - downloadMeta: true - # renovate: datasource=github-releases depName=mudler/luet - luetVersion: 0.36.0 + fetch-depth: 0 - name: Build packages 🔧 - uses: luet-lab/luet-github-action@v0.3.0 + uses: luet-lab/luet-github-action@v0.3.1 with: build: true fromIndex: true