From 5d1db485a801d4abf820f4708d1355cda5beef91 Mon Sep 17 00:00:00 2001 From: jensgrunzer1 Date: Wed, 20 Nov 2024 10:37:55 +0100 Subject: [PATCH] s --- .github/workflows/aarch64.yml | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) diff --git a/.github/workflows/aarch64.yml b/.github/workflows/aarch64.yml index acf0c031..eff071eb 100644 --- a/.github/workflows/aarch64.yml +++ b/.github/workflows/aarch64.yml @@ -11,25 +11,19 @@ jobs: run: | sudo apt update -y sudo apt upgrade -y - sudo apt -y install binfmt-support qemu-user-static systemd-container wget libarchive-tools + sudo apt -y install binfmt-support qemu-user-static systemd-container wget libarchive-tools lxc - name: Starting Services run: | sudo systemctl restart systemd-binfmt - - name: Downloading Arch Linux Arm Image for rpi4 aarch64 + - name: Downloading Arch Linux Arm Image for aarch64 run: | - wget http://os.archlinuxarm.org/os/ArchLinuxARM-rpi-aarch64-latest.tar.gz - - name: Extracting Image - run: | - mkdir root - sudo tar xpf ArchLinuxARM-rpi-aarch64-latest.tar.gz -C root --warning=no-unknown-keyword - sudo chmod 770 root - sync + lxc-create --name mycontainer --template download -- --dist archlinux --release current --arch arm64 + lxc-start --name mycontainer - name: Building Swingmusic in qemu run: | wget https://raw.githubusercontent.com/jensgrunzer1/swingmusic/refs/heads/master/aarch64_buildscript chmod +x aarch64_buildscript - mv aarch64_buildscript root/ - sudo systemd-nspawn -b -D root sh -c ./aarch64_buildscript + lxc exec mycontainer -- sh -c ./aarch64_buildscript - name: Create Release id: create_release uses: actions/create-release@v1