Skip to content

Commit

Permalink
Run arm64 builders on arm64 worker (#972)
Browse files Browse the repository at this point in the history
Signed-off-by: Itxaka <[email protected]>
  • Loading branch information
Itxaka authored Jul 15, 2024
1 parent 1760109 commit de8fc4a
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 116 deletions.
34 changes: 1 addition & 33 deletions .github/workflows/build-arm64.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,42 +9,10 @@ on:
jobs:

build:
runs-on: fast
runs-on: github-arm64-2c-8gb
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
Expand Down
72 changes: 0 additions & 72 deletions .github/workflows/one.yaml

This file was deleted.

12 changes: 1 addition & 11 deletions .github/workflows/pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
go run main.go $PKG_ALL_CHANGED_FILES
build-arm64:
runs-on: fast
runs-on: github-arm64-2c-8gb
env:
ARCH: amd64
steps:
Expand All @@ -40,19 +40,9 @@ jobs:
mkdir build
- name: Set up QEMU
uses: docker/[email protected]
with:
platforms: all
- name: Set up Docker Buildx
id: buildx
uses: docker/[email protected]
- name: Download meta 🔧
uses: luet-lab/[email protected]
with:
FINAL_REPO: quay.io/kairos/packages-arm64
REPOSITORY_TYPE: docker
downloadAllMeta: false
downloadFromList: true
downloadMeta: true
- name: Build packages 🔧
uses: luet-lab/[email protected]
with:
Expand Down

0 comments on commit de8fc4a

Please sign in to comment.