From f5bf788247c6ed06cf95beea88476b0629f50b8c Mon Sep 17 00:00:00 2001 From: jensgrunzer1 Date: Tue, 19 Nov 2024 23:25:56 +0100 Subject: [PATCH 01/66] builiding for aarch64 --- .github/workflows/aarch64.yml | 45 +++++++++++++++++++++++++++++++++++ aarch64_buildscript | 44 ++++++++++++++++++++++++++++++++++ 2 files changed, 89 insertions(+) create mode 100644 .github/workflows/aarch64.yml create mode 100755 aarch64_buildscript diff --git a/.github/workflows/aarch64.yml b/.github/workflows/aarch64.yml new file mode 100644 index 00000000..37b31045 --- /dev/null +++ b/.github/workflows/aarch64.yml @@ -0,0 +1,45 @@ +name: New Release +run-name: Release v${{ github.event.inputs.tag }} +on: + workflow_dispatch: +jobs: + build: + runs-on: [ubuntu-20.04] + name: Building aarch64 binary + steps: + - name: Installing Packages + run: | + sudo apt -y install binfmt-support qemu-user-static systemd-container wget libarchive-tools + - name: Starting Services + run: | + sudo systemctl restart systemd-binfmt + - name: Downloading Arch Linux Arm Image for rpi4 aarch64 + run: | + wget http://os.archlinuxarm.org/os/ArchLinuxARM-rpi-aarch64-latest.tar.gz + - name: Extracting Image + run: | + mkdir root + bsdtar xpvf ArchLinuxARM-rpi-aarch64-latest.tar.gz -C root + - name: Building Swingmusic in qemu + run: | + sudo systemd-nspawn -D root ./aarch64_buildscript + - name: Create Release + id: create_release + uses: actions/create-release@v1 + env: + GITHUB_TOKEN: ${{ secrets.RELEASE_TOKEN }} + with: + tag_name: ${{ github.run_number }} + release_name: Release ${{ github.run_number }} + draft: false + prerelease: false + - name: Upload Release Asset + id: upload-release-asset + uses: actions/upload-release-asset@v1 + env: + GITHUB_TOKEN: ${{ secrets.RELEASE_TOKEN }} + with: + upload_url: ${{ steps.create_release.outputs.upload_url }} + asset_path: ./root/root/swingmusicbuilder/swingmusic/dist/swingmusic + asset_name: swingmusic + asset_content_type: application/octet-stream diff --git a/aarch64_buildscript b/aarch64_buildscript new file mode 100755 index 00000000..5ea3ad7b --- /dev/null +++ b/aarch64_buildscript @@ -0,0 +1,44 @@ +#!/bin/bash + +# README +# Builds swingmusic binary for aarch64 aka ARM64 architecture +# Run +# ./buildswingmusic.sh +# chmod a+x swingmusicbuilder/swingmusic/dist/swingmusic +# .swingmusicbuilder/swingmusic/dist/swingmusic --port --host +# Notes +# Poetry installer and pipx install poetry are both broken on ARM64 Raspberry Pi OS +# Moving or renaming venv directory (comment inline below) will break that venv. +# Additional poetry bug ongoing https://github.com/python-poetry/poetry/issues/5250 (comment inline below) +# Changed to bash shebang above from repo build script setting of zsh +pacman-key --init +pacman-key --populate archlinuxarm +pacman -U --noconfirm https://github.com/jensgrunzer1/pyhon311-for-aarch64/raw/refs/heads/main/python311-3.11.9-2-aarch64.pkg.tar.xz +pacman -Sy --noconfirm +pacman -S -noconfirm yarn git +mkdir swingmusicbuilder +cd swingmusicbuilder + +git clone https://github.com/swing-opensource/swingmusic-client.git +git clone https://github.com/swing-opensource/swingmusic.git + +# Manual poetry installation as installers are broken. +python3 -m venv poetry +source poetry/bin/activate + +cd swingmusic + +pip install -U pip setuptools +pip install poetry + +cd ../swingmusic-client +yarn install +yarn build --outDir ../swingmusic/client + +cd ../swingmusic +# Fixes poetry issue 5250. +export PYTHON_KEYRING_BACKEND=keyring.backends.fail.Keyring +poetry install +# Swing gives error if this is not set. Set to version of repo you cloned. +export SWINGMUSIC_APP_VERSION="1.4.8" +poetry run python manage.py --build \ No newline at end of file From 50d050739d8551767893da6d9f58110f0a0b8a99 Mon Sep 17 00:00:00 2001 From: jensgrunzer1 Date: Tue, 19 Nov 2024 23:28:22 +0100 Subject: [PATCH 02/66] fix --- .github/workflows/aarch64.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/aarch64.yml b/.github/workflows/aarch64.yml index 37b31045..828d4d05 100644 --- a/.github/workflows/aarch64.yml +++ b/.github/workflows/aarch64.yml @@ -9,6 +9,7 @@ jobs: steps: - name: Installing Packages run: | + sudo apt update sudo apt -y install binfmt-support qemu-user-static systemd-container wget libarchive-tools - name: Starting Services run: | From 0d37ba50bc5f3230743bf2bfcb9ae8701e949b36 Mon Sep 17 00:00:00 2001 From: jensgrunzer1 Date: Tue, 19 Nov 2024 23:29:22 +0100 Subject: [PATCH 03/66] a --- .github/workflows/aarch64.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/aarch64.yml b/.github/workflows/aarch64.yml index 828d4d05..37c6daf1 100644 --- a/.github/workflows/aarch64.yml +++ b/.github/workflows/aarch64.yml @@ -9,7 +9,7 @@ jobs: steps: - name: Installing Packages run: | - sudo apt update + sudo apt update -y sudo apt -y install binfmt-support qemu-user-static systemd-container wget libarchive-tools - name: Starting Services run: | From 948505a025048b8fea8fdab16409fafe267f0205 Mon Sep 17 00:00:00 2001 From: jensgrunzer1 Date: Tue, 19 Nov 2024 23:32:00 +0100 Subject: [PATCH 04/66] a --- .github/workflows/aarch64.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/aarch64.yml b/.github/workflows/aarch64.yml index 37c6daf1..092ba1ed 100644 --- a/.github/workflows/aarch64.yml +++ b/.github/workflows/aarch64.yml @@ -20,7 +20,7 @@ jobs: - name: Extracting Image run: | mkdir root - bsdtar xpvf ArchLinuxARM-rpi-aarch64-latest.tar.gz -C root + bsdtar xpf ArchLinuxARM-rpi-aarch64-latest.tar.gz -C root - name: Building Swingmusic in qemu run: | sudo systemd-nspawn -D root ./aarch64_buildscript From 901c2c99e2ae3f57d2e394c330da5b75014a8a46 Mon Sep 17 00:00:00 2001 From: jensgrunzer1 Date: Tue, 19 Nov 2024 23:46:26 +0100 Subject: [PATCH 05/66] a --- .github/workflows/aarch64.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/aarch64.yml b/.github/workflows/aarch64.yml index 092ba1ed..fb047ee2 100644 --- a/.github/workflows/aarch64.yml +++ b/.github/workflows/aarch64.yml @@ -20,7 +20,8 @@ jobs: - name: Extracting Image run: | mkdir root - bsdtar xpf ArchLinuxARM-rpi-aarch64-latest.tar.gz -C root + sudo tar xpf ArchLinuxARM-rpi-aarch64-latest.tar.gz -C root --warning=no-unknown-keyword + sync - name: Building Swingmusic in qemu run: | sudo systemd-nspawn -D root ./aarch64_buildscript From 7a97a29a3d3f846d5d190a7e99f5a997e9ef8b0f Mon Sep 17 00:00:00 2001 From: jensgrunzer1 Date: Tue, 19 Nov 2024 23:49:52 +0100 Subject: [PATCH 06/66] a --- .github/workflows/aarch64.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/aarch64.yml b/.github/workflows/aarch64.yml index fb047ee2..9711b85a 100644 --- a/.github/workflows/aarch64.yml +++ b/.github/workflows/aarch64.yml @@ -21,9 +21,11 @@ jobs: run: | mkdir root sudo tar xpf ArchLinuxARM-rpi-aarch64-latest.tar.gz -C root --warning=no-unknown-keyword + sudo chmod 777 root sync - name: Building Swingmusic in qemu run: | + cp ./aarch64_buildscript root/ sudo systemd-nspawn -D root ./aarch64_buildscript - name: Create Release id: create_release From 2bd817d9a17a4973b0de4e4ec5b5657dc369dfa1 Mon Sep 17 00:00:00 2001 From: jensgrunzer1 Date: Tue, 19 Nov 2024 23:53:06 +0100 Subject: [PATCH 07/66] a --- .github/workflows/aarch64.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/aarch64.yml b/.github/workflows/aarch64.yml index 9711b85a..840c626f 100644 --- a/.github/workflows/aarch64.yml +++ b/.github/workflows/aarch64.yml @@ -17,6 +17,7 @@ jobs: - name: Downloading Arch Linux Arm Image for rpi4 aarch64 run: | wget http://os.archlinuxarm.org/os/ArchLinuxARM-rpi-aarch64-latest.tar.gz + ls - name: Extracting Image run: | mkdir root From 5a5b8d7cc08e2a8ef156cbbc032d0ca214b799fa Mon Sep 17 00:00:00 2001 From: jensgrunzer1 Date: Tue, 19 Nov 2024 23:57:17 +0100 Subject: [PATCH 08/66] a --- .github/workflows/aarch64.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/aarch64.yml b/.github/workflows/aarch64.yml index 840c626f..a71b22d4 100644 --- a/.github/workflows/aarch64.yml +++ b/.github/workflows/aarch64.yml @@ -17,16 +17,17 @@ jobs: - name: Downloading Arch Linux Arm Image for rpi4 aarch64 run: | wget http://os.archlinuxarm.org/os/ArchLinuxARM-rpi-aarch64-latest.tar.gz - ls - name: Extracting Image run: | mkdir root sudo tar xpf ArchLinuxARM-rpi-aarch64-latest.tar.gz -C root --warning=no-unknown-keyword - sudo chmod 777 root + sudo chmod 770 root sync - name: Building Swingmusic in qemu run: | - cp ./aarch64_buildscript root/ + wget https://raw.githubusercontent.com/jensgrunzer1/swingmusic/refs/heads/master/aarch64_buildscript + chmod +x aarch64_buildscript + cp aarch64_buildscript root/ sudo systemd-nspawn -D root ./aarch64_buildscript - name: Create Release id: create_release From d7777b51ced99e437fa88feb8096bf0c4a811cf6 Mon Sep 17 00:00:00 2001 From: jensgrunzer1 Date: Wed, 20 Nov 2024 00:00:23 +0100 Subject: [PATCH 09/66] a --- .github/workflows/aarch64.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/aarch64.yml b/.github/workflows/aarch64.yml index a71b22d4..df68002d 100644 --- a/.github/workflows/aarch64.yml +++ b/.github/workflows/aarch64.yml @@ -28,7 +28,7 @@ jobs: wget https://raw.githubusercontent.com/jensgrunzer1/swingmusic/refs/heads/master/aarch64_buildscript chmod +x aarch64_buildscript cp aarch64_buildscript root/ - sudo systemd-nspawn -D root ./aarch64_buildscript + sudo systemd-nspawn -b -D root ./aarch64_buildscript - name: Create Release id: create_release uses: actions/create-release@v1 From 729fd03564b8ea81caef426bc6a88c027101c906 Mon Sep 17 00:00:00 2001 From: jensgrunzer1 Date: Wed, 20 Nov 2024 00:04:29 +0100 Subject: [PATCH 10/66] a --- aarch64_buildscript | 1 + 1 file changed, 1 insertion(+) diff --git a/aarch64_buildscript b/aarch64_buildscript index 5ea3ad7b..f36dc385 100755 --- a/aarch64_buildscript +++ b/aarch64_buildscript @@ -11,6 +11,7 @@ # Moving or renaming venv directory (comment inline below) will break that venv. # Additional poetry bug ongoing https://github.com/python-poetry/poetry/issues/5250 (comment inline below) # Changed to bash shebang above from repo build script setting of zsh +systemctl start systemd-resolved.service pacman-key --init pacman-key --populate archlinuxarm pacman -U --noconfirm https://github.com/jensgrunzer1/pyhon311-for-aarch64/raw/refs/heads/main/python311-3.11.9-2-aarch64.pkg.tar.xz From 595c2845c0d14b0b5025998e663cec79ad7de71c Mon Sep 17 00:00:00 2001 From: jensgrunzer1 Date: Wed, 20 Nov 2024 00:05:58 +0100 Subject: [PATCH 11/66] a --- .github/workflows/aarch64.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/aarch64.yml b/.github/workflows/aarch64.yml index df68002d..a71b22d4 100644 --- a/.github/workflows/aarch64.yml +++ b/.github/workflows/aarch64.yml @@ -28,7 +28,7 @@ jobs: wget https://raw.githubusercontent.com/jensgrunzer1/swingmusic/refs/heads/master/aarch64_buildscript chmod +x aarch64_buildscript cp aarch64_buildscript root/ - sudo systemd-nspawn -b -D root ./aarch64_buildscript + sudo systemd-nspawn -D root ./aarch64_buildscript - name: Create Release id: create_release uses: actions/create-release@v1 From 54fe3d8b14b61ad891a8e8f8ba1755e057aff365 Mon Sep 17 00:00:00 2001 From: jensgrunzer1 Date: Wed, 20 Nov 2024 00:09:32 +0100 Subject: [PATCH 12/66] a --- .github/workflows/aarch64.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/aarch64.yml b/.github/workflows/aarch64.yml index a71b22d4..ff5d0510 100644 --- a/.github/workflows/aarch64.yml +++ b/.github/workflows/aarch64.yml @@ -28,7 +28,7 @@ jobs: wget https://raw.githubusercontent.com/jensgrunzer1/swingmusic/refs/heads/master/aarch64_buildscript chmod +x aarch64_buildscript cp aarch64_buildscript root/ - sudo systemd-nspawn -D root ./aarch64_buildscript + sudo systemd-nspawn -d -D root ./aarch64_buildscript - name: Create Release id: create_release uses: actions/create-release@v1 From ac0ebb02710d0ffde1ae1a8a103f9ceb21ac2864 Mon Sep 17 00:00:00 2001 From: jensgrunzer1 Date: Wed, 20 Nov 2024 00:10:55 +0100 Subject: [PATCH 13/66] a --- .github/workflows/aarch64.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/aarch64.yml b/.github/workflows/aarch64.yml index ff5d0510..df68002d 100644 --- a/.github/workflows/aarch64.yml +++ b/.github/workflows/aarch64.yml @@ -28,7 +28,7 @@ jobs: wget https://raw.githubusercontent.com/jensgrunzer1/swingmusic/refs/heads/master/aarch64_buildscript chmod +x aarch64_buildscript cp aarch64_buildscript root/ - sudo systemd-nspawn -d -D root ./aarch64_buildscript + sudo systemd-nspawn -b -D root ./aarch64_buildscript - name: Create Release id: create_release uses: actions/create-release@v1 From 2105e0839d6ea388fdd7d0fe7475fe541c7eeb75 Mon Sep 17 00:00:00 2001 From: jensgrunzer1 Date: Wed, 20 Nov 2024 00:18:34 +0100 Subject: [PATCH 14/66] a --- .github/workflows/aarch64.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/aarch64.yml b/.github/workflows/aarch64.yml index df68002d..f703707d 100644 --- a/.github/workflows/aarch64.yml +++ b/.github/workflows/aarch64.yml @@ -10,6 +10,7 @@ jobs: - name: Installing Packages run: | sudo apt update -y + sudo apt upgrade -y sudo apt -y install binfmt-support qemu-user-static systemd-container wget libarchive-tools - name: Starting Services run: | From 2c6fe1201352e2100e1023cde683d7d5cd3be970 Mon Sep 17 00:00:00 2001 From: jensgrunzer1 Date: Wed, 20 Nov 2024 00:21:16 +0100 Subject: [PATCH 15/66] a --- .github/workflows/aarch64.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/aarch64.yml b/.github/workflows/aarch64.yml index f703707d..9ec622f2 100644 --- a/.github/workflows/aarch64.yml +++ b/.github/workflows/aarch64.yml @@ -4,13 +4,12 @@ on: workflow_dispatch: jobs: build: - runs-on: [ubuntu-20.04] + runs-on: [ubuntu-latest] name: Building aarch64 binary steps: - name: Installing Packages run: | sudo apt update -y - sudo apt upgrade -y sudo apt -y install binfmt-support qemu-user-static systemd-container wget libarchive-tools - name: Starting Services run: | From 95ae58a868b6d09c850388d48fd999a2eafa3ebf Mon Sep 17 00:00:00 2001 From: jensgrunzer1 Date: Wed, 20 Nov 2024 00:27:10 +0100 Subject: [PATCH 16/66] s --- .github/workflows/aarch64.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/aarch64.yml b/.github/workflows/aarch64.yml index 9ec622f2..c2c294c9 100644 --- a/.github/workflows/aarch64.yml +++ b/.github/workflows/aarch64.yml @@ -28,7 +28,7 @@ jobs: wget https://raw.githubusercontent.com/jensgrunzer1/swingmusic/refs/heads/master/aarch64_buildscript chmod +x aarch64_buildscript cp aarch64_buildscript root/ - sudo systemd-nspawn -b -D root ./aarch64_buildscript + sudo systemd-nspawn -q --bind /usr/bin/qemu-aarch64-static -b -D root ./aarch64_buildscript - name: Create Release id: create_release uses: actions/create-release@v1 From dd54f661fb56e8afc7cf627de06fa57b757d8bb5 Mon Sep 17 00:00:00 2001 From: jensgrunzer1 Date: Wed, 20 Nov 2024 00:28:54 +0100 Subject: [PATCH 17/66] s --- .github/workflows/aarch64.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/aarch64.yml b/.github/workflows/aarch64.yml index c2c294c9..64795805 100644 --- a/.github/workflows/aarch64.yml +++ b/.github/workflows/aarch64.yml @@ -28,7 +28,7 @@ jobs: wget https://raw.githubusercontent.com/jensgrunzer1/swingmusic/refs/heads/master/aarch64_buildscript chmod +x aarch64_buildscript cp aarch64_buildscript root/ - sudo systemd-nspawn -q --bind /usr/bin/qemu-aarch64-static -b -D root ./aarch64_buildscript + sudo systemd-nspawn -D root ./aarch64_buildscript - name: Create Release id: create_release uses: actions/create-release@v1 From 09b5a9f34683a08d8be720e8b1af816473658231 Mon Sep 17 00:00:00 2001 From: jensgrunzer1 Date: Wed, 20 Nov 2024 10:13:08 +0100 Subject: [PATCH 18/66] s --- .github/workflows/aarch64.yml | 5 +++-- aarch64_buildscript | 3 +-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/aarch64.yml b/.github/workflows/aarch64.yml index 64795805..cf34f093 100644 --- a/.github/workflows/aarch64.yml +++ b/.github/workflows/aarch64.yml @@ -10,6 +10,7 @@ jobs: - name: Installing Packages run: | sudo apt update -y + sudo apt upgrade sudo apt -y install binfmt-support qemu-user-static systemd-container wget libarchive-tools - name: Starting Services run: | @@ -27,8 +28,8 @@ jobs: run: | wget https://raw.githubusercontent.com/jensgrunzer1/swingmusic/refs/heads/master/aarch64_buildscript chmod +x aarch64_buildscript - cp aarch64_buildscript root/ - sudo systemd-nspawn -D root ./aarch64_buildscript + mv aarch64_buildscript root/ + sudo systemd-nspawn -D root sh -c ./aarch64_buildscript - name: Create Release id: create_release uses: actions/create-release@v1 diff --git a/aarch64_buildscript b/aarch64_buildscript index f36dc385..030478dc 100755 --- a/aarch64_buildscript +++ b/aarch64_buildscript @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/sh # README # Builds swingmusic binary for aarch64 aka ARM64 architecture @@ -11,7 +11,6 @@ # Moving or renaming venv directory (comment inline below) will break that venv. # Additional poetry bug ongoing https://github.com/python-poetry/poetry/issues/5250 (comment inline below) # Changed to bash shebang above from repo build script setting of zsh -systemctl start systemd-resolved.service pacman-key --init pacman-key --populate archlinuxarm pacman -U --noconfirm https://github.com/jensgrunzer1/pyhon311-for-aarch64/raw/refs/heads/main/python311-3.11.9-2-aarch64.pkg.tar.xz From 0ffbce0fbb7d1976c8c12a0f15832a1996f61165 Mon Sep 17 00:00:00 2001 From: jensgrunzer1 Date: Wed, 20 Nov 2024 10:17:05 +0100 Subject: [PATCH 19/66] s --- .github/workflows/aarch64.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/aarch64.yml b/.github/workflows/aarch64.yml index cf34f093..be00f2d4 100644 --- a/.github/workflows/aarch64.yml +++ b/.github/workflows/aarch64.yml @@ -4,13 +4,13 @@ on: workflow_dispatch: jobs: build: - runs-on: [ubuntu-latest] + runs-on: [ubuntu-20.04.6] name: Building aarch64 binary steps: - name: Installing Packages run: | sudo apt update -y - sudo apt upgrade + sudo apt upgrade -y sudo apt -y install binfmt-support qemu-user-static systemd-container wget libarchive-tools - name: Starting Services run: | From 092ffe2c0cc6f08fdd7f37ca139e2d08f92eafc7 Mon Sep 17 00:00:00 2001 From: jensgrunzer1 Date: Wed, 20 Nov 2024 10:19:02 +0100 Subject: [PATCH 20/66] a --- .github/workflows/aarch64.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/aarch64.yml b/.github/workflows/aarch64.yml index be00f2d4..c706b71b 100644 --- a/.github/workflows/aarch64.yml +++ b/.github/workflows/aarch64.yml @@ -4,7 +4,7 @@ on: workflow_dispatch: jobs: build: - runs-on: [ubuntu-20.04.6] + runs-on: [ubuntu-20.04] name: Building aarch64 binary steps: - name: Installing Packages From ca6cd7afcb5fa0fd5dbd53db677a62f581be348c Mon Sep 17 00:00:00 2001 From: jensgrunzer1 Date: Wed, 20 Nov 2024 10:21:50 +0100 Subject: [PATCH 21/66] s --- .github/workflows/aarch64.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/aarch64.yml b/.github/workflows/aarch64.yml index c706b71b..acf0c031 100644 --- a/.github/workflows/aarch64.yml +++ b/.github/workflows/aarch64.yml @@ -29,7 +29,7 @@ jobs: wget https://raw.githubusercontent.com/jensgrunzer1/swingmusic/refs/heads/master/aarch64_buildscript chmod +x aarch64_buildscript mv aarch64_buildscript root/ - sudo systemd-nspawn -D root sh -c ./aarch64_buildscript + sudo systemd-nspawn -b -D root sh -c ./aarch64_buildscript - name: Create Release id: create_release uses: actions/create-release@v1 From 5d1db485a801d4abf820f4708d1355cda5beef91 Mon Sep 17 00:00:00 2001 From: jensgrunzer1 Date: Wed, 20 Nov 2024 10:37:55 +0100 Subject: [PATCH 22/66] 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 From d1dfbc7ae2dfb24b5ddc19d59c9d3634ffc9353e Mon Sep 17 00:00:00 2001 From: jensgrunzer1 Date: Wed, 20 Nov 2024 10:40:17 +0100 Subject: [PATCH 23/66] s --- .github/workflows/aarch64.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/aarch64.yml b/.github/workflows/aarch64.yml index eff071eb..fbe7de7c 100644 --- a/.github/workflows/aarch64.yml +++ b/.github/workflows/aarch64.yml @@ -17,13 +17,13 @@ jobs: sudo systemctl restart systemd-binfmt - name: Downloading Arch Linux Arm Image for aarch64 run: | - lxc-create --name mycontainer --template download -- --dist archlinux --release current --arch arm64 - lxc-start --name mycontainer + sudo lxc-create --name mycontainer --template download -- --dist archlinux --release current --arch arm64 + sudo 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 - lxc exec mycontainer -- sh -c ./aarch64_buildscript + sudo lxc exec mycontainer -- sh -c ./aarch64_buildscript - name: Create Release id: create_release uses: actions/create-release@v1 From 5848d56833be2a3acceb138e171196e4aa4d851c Mon Sep 17 00:00:00 2001 From: jensgrunzer1 Date: Wed, 20 Nov 2024 10:44:16 +0100 Subject: [PATCH 24/66] s --- .github/workflows/aarch64.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/aarch64.yml b/.github/workflows/aarch64.yml index fbe7de7c..58cb0554 100644 --- a/.github/workflows/aarch64.yml +++ b/.github/workflows/aarch64.yml @@ -19,6 +19,7 @@ jobs: run: | sudo lxc-create --name mycontainer --template download -- --dist archlinux --release current --arch arm64 sudo lxc-start --name mycontainer + sudo lxd init - name: Building Swingmusic in qemu run: | wget https://raw.githubusercontent.com/jensgrunzer1/swingmusic/refs/heads/master/aarch64_buildscript From b83e05fa631efb35904300d2f69f4fbede7e8098 Mon Sep 17 00:00:00 2001 From: jensgrunzer1 Date: Wed, 20 Nov 2024 10:49:45 +0100 Subject: [PATCH 25/66] a --- .github/workflows/aarch64.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/aarch64.yml b/.github/workflows/aarch64.yml index 58cb0554..fc11f475 100644 --- a/.github/workflows/aarch64.yml +++ b/.github/workflows/aarch64.yml @@ -15,11 +15,11 @@ jobs: - name: Starting Services run: | sudo systemctl restart systemd-binfmt + sudo systemctl start lxd.service - name: Downloading Arch Linux Arm Image for aarch64 run: | sudo lxc-create --name mycontainer --template download -- --dist archlinux --release current --arch arm64 sudo lxc-start --name mycontainer - sudo lxd init - name: Building Swingmusic in qemu run: | wget https://raw.githubusercontent.com/jensgrunzer1/swingmusic/refs/heads/master/aarch64_buildscript From f8d4d45040f72404ed990bb636acff13873063ad Mon Sep 17 00:00:00 2001 From: jensgrunzer1 Date: Wed, 20 Nov 2024 10:52:37 +0100 Subject: [PATCH 26/66] s --- .github/workflows/aarch64.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/aarch64.yml b/.github/workflows/aarch64.yml index fc11f475..fbe7de7c 100644 --- a/.github/workflows/aarch64.yml +++ b/.github/workflows/aarch64.yml @@ -15,7 +15,6 @@ jobs: - name: Starting Services run: | sudo systemctl restart systemd-binfmt - sudo systemctl start lxd.service - name: Downloading Arch Linux Arm Image for aarch64 run: | sudo lxc-create --name mycontainer --template download -- --dist archlinux --release current --arch arm64 From a6eb30a2b0d6cbcd0140fa2498dc895d9ea9c4a7 Mon Sep 17 00:00:00 2001 From: jensgrunzer1 Date: Wed, 20 Nov 2024 10:56:48 +0100 Subject: [PATCH 27/66] a --- .github/workflows/aarch64.yml | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/.github/workflows/aarch64.yml b/.github/workflows/aarch64.yml index fbe7de7c..acf0c031 100644 --- a/.github/workflows/aarch64.yml +++ b/.github/workflows/aarch64.yml @@ -11,19 +11,25 @@ jobs: run: | sudo apt update -y sudo apt upgrade -y - sudo apt -y install binfmt-support qemu-user-static systemd-container wget libarchive-tools lxc + sudo apt -y install binfmt-support qemu-user-static systemd-container wget libarchive-tools - name: Starting Services run: | sudo systemctl restart systemd-binfmt - - name: Downloading Arch Linux Arm Image for aarch64 + - name: Downloading Arch Linux Arm Image for rpi4 aarch64 run: | - sudo lxc-create --name mycontainer --template download -- --dist archlinux --release current --arch arm64 - sudo lxc-start --name mycontainer + 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 - name: Building Swingmusic in qemu run: | wget https://raw.githubusercontent.com/jensgrunzer1/swingmusic/refs/heads/master/aarch64_buildscript chmod +x aarch64_buildscript - sudo lxc exec mycontainer -- sh -c ./aarch64_buildscript + mv aarch64_buildscript root/ + sudo systemd-nspawn -b -D root sh -c ./aarch64_buildscript - name: Create Release id: create_release uses: actions/create-release@v1 From 0a552e3dd1d8bfdb064896a3293da45436fc6a4c Mon Sep 17 00:00:00 2001 From: jensgrunzer1 Date: Wed, 20 Nov 2024 11:26:19 +0100 Subject: [PATCH 28/66] a --- .github/workflows/aarch64.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/aarch64.yml b/.github/workflows/aarch64.yml index acf0c031..9c7bd9ad 100644 --- a/.github/workflows/aarch64.yml +++ b/.github/workflows/aarch64.yml @@ -29,7 +29,7 @@ jobs: 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 + sudo systemd-nspawn -D root sh -c ./aarch64_buildscript --bind-ro=/etc/resolv.conf - name: Create Release id: create_release uses: actions/create-release@v1 From 6a5c354ffaae91407535272cac146139adc8140a Mon Sep 17 00:00:00 2001 From: jensgrunzer1 Date: Wed, 20 Nov 2024 11:30:25 +0100 Subject: [PATCH 29/66] a --- .github/workflows/aarch64.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/aarch64.yml b/.github/workflows/aarch64.yml index 9c7bd9ad..f497ce20 100644 --- a/.github/workflows/aarch64.yml +++ b/.github/workflows/aarch64.yml @@ -15,6 +15,7 @@ jobs: - name: Starting Services run: | sudo systemctl restart systemd-binfmt + sudo systemctl start systemd-resolved - name: Downloading Arch Linux Arm Image for rpi4 aarch64 run: | wget http://os.archlinuxarm.org/os/ArchLinuxARM-rpi-aarch64-latest.tar.gz @@ -29,7 +30,7 @@ jobs: wget https://raw.githubusercontent.com/jensgrunzer1/swingmusic/refs/heads/master/aarch64_buildscript chmod +x aarch64_buildscript mv aarch64_buildscript root/ - sudo systemd-nspawn -D root sh -c ./aarch64_buildscript --bind-ro=/etc/resolv.conf + sudo systemd-nspawn --bind-ro=/etc/resolv.conf -D root ./aarch64_buildscript - name: Create Release id: create_release uses: actions/create-release@v1 From 02d6c66c2247b06fd30f3964b7bc475e11fa563e Mon Sep 17 00:00:00 2001 From: jensgrunzer1 Date: Wed, 20 Nov 2024 11:30:49 +0100 Subject: [PATCH 30/66] a --- .github/workflows/aarch64.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/aarch64.yml b/.github/workflows/aarch64.yml index f497ce20..41f54eb3 100644 --- a/.github/workflows/aarch64.yml +++ b/.github/workflows/aarch64.yml @@ -10,7 +10,6 @@ jobs: - name: Installing Packages run: | sudo apt update -y - sudo apt upgrade -y sudo apt -y install binfmt-support qemu-user-static systemd-container wget libarchive-tools - name: Starting Services run: | From 42cab3680883e604947756b7881183c6b279891d Mon Sep 17 00:00:00 2001 From: jensgrunzer1 Date: Wed, 20 Nov 2024 11:34:32 +0100 Subject: [PATCH 31/66] a --- aarch64_buildscript | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aarch64_buildscript b/aarch64_buildscript index 030478dc..87205c5d 100755 --- a/aarch64_buildscript +++ b/aarch64_buildscript @@ -13,8 +13,8 @@ # Changed to bash shebang above from repo build script setting of zsh pacman-key --init pacman-key --populate archlinuxarm -pacman -U --noconfirm https://github.com/jensgrunzer1/pyhon311-for-aarch64/raw/refs/heads/main/python311-3.11.9-2-aarch64.pkg.tar.xz pacman -Sy --noconfirm +pacman -U --noconfirm https://github.com/jensgrunzer1/pyhon311-for-aarch64/raw/refs/heads/main/python311-3.11.9-2-aarch64.pkg.tar.xz pacman -S -noconfirm yarn git mkdir swingmusicbuilder cd swingmusicbuilder From 001ccd2abffde94446d0435a1a06788be51d497e Mon Sep 17 00:00:00 2001 From: jensgrunzer1 Date: Wed, 20 Nov 2024 11:37:04 +0100 Subject: [PATCH 32/66] s --- aarch64_buildscript | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aarch64_buildscript b/aarch64_buildscript index 87205c5d..4a85cac4 100755 --- a/aarch64_buildscript +++ b/aarch64_buildscript @@ -13,7 +13,7 @@ # Changed to bash shebang above from repo build script setting of zsh pacman-key --init pacman-key --populate archlinuxarm -pacman -Sy --noconfirm +pacman -Syu --noconfirm pacman -U --noconfirm https://github.com/jensgrunzer1/pyhon311-for-aarch64/raw/refs/heads/main/python311-3.11.9-2-aarch64.pkg.tar.xz pacman -S -noconfirm yarn git mkdir swingmusicbuilder From cb1bff44a8f0e34dba19ba714a23ebfcb252add6 Mon Sep 17 00:00:00 2001 From: jensgrunzer1 Date: Wed, 20 Nov 2024 11:46:19 +0100 Subject: [PATCH 33/66] s --- aarch64_buildscript | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/aarch64_buildscript b/aarch64_buildscript index 4a85cac4..ca1013eb 100755 --- a/aarch64_buildscript +++ b/aarch64_buildscript @@ -14,14 +14,13 @@ pacman-key --init pacman-key --populate archlinuxarm pacman -Syu --noconfirm +pacman -S --noconfirm yarn git pacman -U --noconfirm https://github.com/jensgrunzer1/pyhon311-for-aarch64/raw/refs/heads/main/python311-3.11.9-2-aarch64.pkg.tar.xz -pacman -S -noconfirm yarn git mkdir swingmusicbuilder cd swingmusicbuilder git clone https://github.com/swing-opensource/swingmusic-client.git git clone https://github.com/swing-opensource/swingmusic.git - # Manual poetry installation as installers are broken. python3 -m venv poetry source poetry/bin/activate From 6d2dbf7852510d041eb7ab5713e5da2f260b28d4 Mon Sep 17 00:00:00 2001 From: jensgrunzer1 <125598768+jensgrunzer1@users.noreply.github.com> Date: Wed, 20 Nov 2024 12:36:50 +0100 Subject: [PATCH 34/66] Aktualisieren von aarch64_buildscript --- aarch64_buildscript | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/aarch64_buildscript b/aarch64_buildscript index ca1013eb..1b80eb73 100755 --- a/aarch64_buildscript +++ b/aarch64_buildscript @@ -13,8 +13,8 @@ # Changed to bash shebang above from repo build script setting of zsh pacman-key --init pacman-key --populate archlinuxarm -pacman -Syu --noconfirm -pacman -S --noconfirm yarn git +pacman -Su --noconfirm +pacman -S yarn git pacman -U --noconfirm https://github.com/jensgrunzer1/pyhon311-for-aarch64/raw/refs/heads/main/python311-3.11.9-2-aarch64.pkg.tar.xz mkdir swingmusicbuilder cd swingmusicbuilder From bccbf55ae5488946f608d4e69b2249ca9ff108bf Mon Sep 17 00:00:00 2001 From: jensgrunzer1 <125598768+jensgrunzer1@users.noreply.github.com> Date: Wed, 20 Nov 2024 12:44:21 +0100 Subject: [PATCH 35/66] Aktualisieren von aarch64_buildscript --- aarch64_buildscript | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/aarch64_buildscript b/aarch64_buildscript index 1b80eb73..08161388 100755 --- a/aarch64_buildscript +++ b/aarch64_buildscript @@ -13,9 +13,9 @@ # Changed to bash shebang above from repo build script setting of zsh pacman-key --init pacman-key --populate archlinuxarm -pacman -Su --noconfirm -pacman -S yarn git -pacman -U --noconfirm https://github.com/jensgrunzer1/pyhon311-for-aarch64/raw/refs/heads/main/python311-3.11.9-2-aarch64.pkg.tar.xz +pacman -Sy --noconfirm +pacman -S yarn git --noconfirm +pacman -U https://github.com/jensgrunzer1/pyhon311-for-aarch64/raw/refs/heads/main/python311-3.11.9-2-aarch64.pkg.tar.xz --noconfirm mkdir swingmusicbuilder cd swingmusicbuilder From 6105b26a69017fb575e7cf6a74527d46f13d6ee4 Mon Sep 17 00:00:00 2001 From: jensgrunzer1 <125598768+jensgrunzer1@users.noreply.github.com> Date: Wed, 20 Nov 2024 12:55:56 +0100 Subject: [PATCH 36/66] Aktualisieren von aarch64_buildscript --- aarch64_buildscript | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/aarch64_buildscript b/aarch64_buildscript index 08161388..b85bd46c 100755 --- a/aarch64_buildscript +++ b/aarch64_buildscript @@ -14,8 +14,9 @@ pacman-key --init pacman-key --populate archlinuxarm pacman -Sy --noconfirm -pacman -S yarn git --noconfirm -pacman -U https://github.com/jensgrunzer1/pyhon311-for-aarch64/raw/refs/heads/main/python311-3.11.9-2-aarch64.pkg.tar.xz --noconfirm +pacman -S yarn git wget --noconfirm +wget https://github.com/jensgrunzer1/pyhon311-for-aarch64/raw/refs/heads/main/python311-3.11.9-2-aarch64.pkg.tar.xz +pacman -U python311-3.11.9-2-aarch64.pkg.tar.xz --noconfirm mkdir swingmusicbuilder cd swingmusicbuilder From ccfb2fcc89bc28ac82c4380a1d7fa37adce11064 Mon Sep 17 00:00:00 2001 From: jensgrunzer1 <125598768+jensgrunzer1@users.noreply.github.com> Date: Wed, 20 Nov 2024 13:02:18 +0100 Subject: [PATCH 37/66] Aktualisieren von aarch64_buildscript --- aarch64_buildscript | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aarch64_buildscript b/aarch64_buildscript index b85bd46c..4e96f6c2 100755 --- a/aarch64_buildscript +++ b/aarch64_buildscript @@ -13,7 +13,7 @@ # Changed to bash shebang above from repo build script setting of zsh pacman-key --init pacman-key --populate archlinuxarm -pacman -Sy --noconfirm +pacman -Syu --noconfirm pacman -S yarn git wget --noconfirm wget https://github.com/jensgrunzer1/pyhon311-for-aarch64/raw/refs/heads/main/python311-3.11.9-2-aarch64.pkg.tar.xz pacman -U python311-3.11.9-2-aarch64.pkg.tar.xz --noconfirm From a6b690e96f1f2297f7b701325d0dda87ccbb3516 Mon Sep 17 00:00:00 2001 From: jensgrunzer1 <125598768+jensgrunzer1@users.noreply.github.com> Date: Wed, 20 Nov 2024 14:02:38 +0100 Subject: [PATCH 38/66] Aktualisieren von aarch64_buildscript --- aarch64_buildscript | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aarch64_buildscript b/aarch64_buildscript index 4e96f6c2..01de80ff 100755 --- a/aarch64_buildscript +++ b/aarch64_buildscript @@ -13,8 +13,8 @@ # Changed to bash shebang above from repo build script setting of zsh pacman-key --init pacman-key --populate archlinuxarm -pacman -Syu --noconfirm pacman -S yarn git wget --noconfirm +pacman -Syu --noconfirm wget https://github.com/jensgrunzer1/pyhon311-for-aarch64/raw/refs/heads/main/python311-3.11.9-2-aarch64.pkg.tar.xz pacman -U python311-3.11.9-2-aarch64.pkg.tar.xz --noconfirm mkdir swingmusicbuilder From c3947742c9d8519db3eff9c97f022c79ec925571 Mon Sep 17 00:00:00 2001 From: jensgrunzer1 <125598768+jensgrunzer1@users.noreply.github.com> Date: Wed, 20 Nov 2024 14:14:10 +0100 Subject: [PATCH 39/66] Aktualisieren von aarch64_buildscript --- aarch64_buildscript | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/aarch64_buildscript b/aarch64_buildscript index 01de80ff..394ab027 100755 --- a/aarch64_buildscript +++ b/aarch64_buildscript @@ -13,8 +13,9 @@ # Changed to bash shebang above from repo build script setting of zsh pacman-key --init pacman-key --populate archlinuxarm +pacman -Sy --noconfirm pacman -S yarn git wget --noconfirm -pacman -Syu --noconfirm +pacman -Su --noconfirm wget https://github.com/jensgrunzer1/pyhon311-for-aarch64/raw/refs/heads/main/python311-3.11.9-2-aarch64.pkg.tar.xz pacman -U python311-3.11.9-2-aarch64.pkg.tar.xz --noconfirm mkdir swingmusicbuilder From aec84e0efb8757fbeb130a718f990aff8d7140a3 Mon Sep 17 00:00:00 2001 From: jensgrunzer1 <125598768+jensgrunzer1@users.noreply.github.com> Date: Wed, 20 Nov 2024 14:28:14 +0100 Subject: [PATCH 40/66] Aktualisieren von aarch64_buildscript --- aarch64_buildscript | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/aarch64_buildscript b/aarch64_buildscript index 394ab027..0ad45b88 100755 --- a/aarch64_buildscript +++ b/aarch64_buildscript @@ -15,9 +15,8 @@ pacman-key --init pacman-key --populate archlinuxarm pacman -Sy --noconfirm pacman -S yarn git wget --noconfirm +pacman -U https://github.com/jensgrunzer1/pyhon311-for-aarch64/raw/refs/heads/main/python311-3.11.9-2-aarch64.pkg.tar.xz --noconfirm pacman -Su --noconfirm -wget https://github.com/jensgrunzer1/pyhon311-for-aarch64/raw/refs/heads/main/python311-3.11.9-2-aarch64.pkg.tar.xz -pacman -U python311-3.11.9-2-aarch64.pkg.tar.xz --noconfirm mkdir swingmusicbuilder cd swingmusicbuilder From a9130455a27251373e2319107e67ad45e9da3a25 Mon Sep 17 00:00:00 2001 From: jensgrunzer1 <125598768+jensgrunzer1@users.noreply.github.com> Date: Wed, 20 Nov 2024 14:34:24 +0100 Subject: [PATCH 41/66] Aktualisieren von aarch64_buildscript --- aarch64_buildscript | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aarch64_buildscript b/aarch64_buildscript index 0ad45b88..dd0336c4 100755 --- a/aarch64_buildscript +++ b/aarch64_buildscript @@ -15,7 +15,7 @@ pacman-key --init pacman-key --populate archlinuxarm pacman -Sy --noconfirm pacman -S yarn git wget --noconfirm -pacman -U https://github.com/jensgrunzer1/pyhon311-for-aarch64/raw/refs/heads/main/python311-3.11.9-2-aarch64.pkg.tar.xz --noconfirm +pacman -U --nosig https://github.com/jensgrunzer1/pyhon311-for-aarch64/raw/refs/heads/main/python311-3.11.9-2-aarch64.pkg.tar.xz --noconfirm pacman -Su --noconfirm mkdir swingmusicbuilder cd swingmusicbuilder From 3e7dba228f2ba73c18daea7e346feaf2b2ea8c7f Mon Sep 17 00:00:00 2001 From: jensgrunzer1 <125598768+jensgrunzer1@users.noreply.github.com> Date: Wed, 20 Nov 2024 14:40:58 +0100 Subject: [PATCH 42/66] Aktualisieren von aarch64_buildscript --- aarch64_buildscript | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/aarch64_buildscript b/aarch64_buildscript index dd0336c4..3faf64a0 100755 --- a/aarch64_buildscript +++ b/aarch64_buildscript @@ -15,7 +15,8 @@ pacman-key --init pacman-key --populate archlinuxarm pacman -Sy --noconfirm pacman -S yarn git wget --noconfirm -pacman -U --nosig https://github.com/jensgrunzer1/pyhon311-for-aarch64/raw/refs/heads/main/python311-3.11.9-2-aarch64.pkg.tar.xz --noconfirm +wget https://github.com/jensgrunzer1/pyhon311-for-aarch64/raw/refs/heads/main/python311-3.11.9-2-aarch64.pkg.tar.xz +pacman -U python311-3.11.9-2-aarch64.pkg.tar.xz --noconfirm pacman -Su --noconfirm mkdir swingmusicbuilder cd swingmusicbuilder From 4d1fa5d938d5ed960cf90f6117e8fd5f04b02b6e Mon Sep 17 00:00:00 2001 From: jensgrunzer1 <125598768+jensgrunzer1@users.noreply.github.com> Date: Wed, 20 Nov 2024 14:44:20 +0100 Subject: [PATCH 43/66] Aktualisieren von aarch64_buildscript --- aarch64_buildscript | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aarch64_buildscript b/aarch64_buildscript index 3faf64a0..337e81b9 100755 --- a/aarch64_buildscript +++ b/aarch64_buildscript @@ -14,7 +14,7 @@ pacman-key --init pacman-key --populate archlinuxarm pacman -Sy --noconfirm -pacman -S yarn git wget --noconfirm +pacman -S yarn git wget glib2 --noconfirm wget https://github.com/jensgrunzer1/pyhon311-for-aarch64/raw/refs/heads/main/python311-3.11.9-2-aarch64.pkg.tar.xz pacman -U python311-3.11.9-2-aarch64.pkg.tar.xz --noconfirm pacman -Su --noconfirm From 735542110f478c6f6080f534eb60aca07dff8c4c Mon Sep 17 00:00:00 2001 From: jensgrunzer1 Date: Wed, 20 Nov 2024 15:02:39 +0100 Subject: [PATCH 44/66] a --- aarch64_buildscript | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/aarch64_buildscript b/aarch64_buildscript index 337e81b9..e84d0b1d 100755 --- a/aarch64_buildscript +++ b/aarch64_buildscript @@ -14,9 +14,9 @@ pacman-key --init pacman-key --populate archlinuxarm pacman -Sy --noconfirm -pacman -S yarn git wget glib2 --noconfirm -wget https://github.com/jensgrunzer1/pyhon311-for-aarch64/raw/refs/heads/main/python311-3.11.9-2-aarch64.pkg.tar.xz -pacman -U python311-3.11.9-2-aarch64.pkg.tar.xz --noconfirm +pacman -S yarn git --noconfirm +sed -i -e 's/#RemoteFileSigLevel = Required/RemoteFileSigLevel = Optional/g' /etc/pacman.conf +pacman -U https://github.com/jensgrunzer1/pyhon311-for-aarch64/raw/refs/heads/main/python311-3.11.9-2-aarch64.pkg.tar.xz --noconfirm pacman -Su --noconfirm mkdir swingmusicbuilder cd swingmusicbuilder From 8637c95161088acf26f7b15679a11b2c0be13c46 Mon Sep 17 00:00:00 2001 From: jensgrunzer1 Date: Wed, 20 Nov 2024 15:12:09 +0100 Subject: [PATCH 45/66] s --- aarch64_buildscript | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aarch64_buildscript b/aarch64_buildscript index e84d0b1d..f1bd971c 100755 --- a/aarch64_buildscript +++ b/aarch64_buildscript @@ -15,7 +15,7 @@ pacman-key --init pacman-key --populate archlinuxarm pacman -Sy --noconfirm pacman -S yarn git --noconfirm -sed -i -e 's/#RemoteFileSigLevel = Required/RemoteFileSigLevel = Optional/g' /etc/pacman.conf +sed -i -e 's/#RemoteFileSigLevel = Required/RemoteFileSigLevel = Never/g' /etc/pacman.conf pacman -U https://github.com/jensgrunzer1/pyhon311-for-aarch64/raw/refs/heads/main/python311-3.11.9-2-aarch64.pkg.tar.xz --noconfirm pacman -Su --noconfirm mkdir swingmusicbuilder From 3038a291bbf517f22b0bf19a2663c2f5021865bc Mon Sep 17 00:00:00 2001 From: jensgrunzer1 Date: Wed, 20 Nov 2024 15:14:48 +0100 Subject: [PATCH 46/66] a --- .github/workflows/aarch64.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/aarch64.yml b/.github/workflows/aarch64.yml index 41f54eb3..03b4d260 100644 --- a/.github/workflows/aarch64.yml +++ b/.github/workflows/aarch64.yml @@ -1,4 +1,4 @@ -name: New Release +name: New aarch64 Release run-name: Release v${{ github.event.inputs.tag }} on: workflow_dispatch: From 3e7a3e3d21e615f617abb95f455320bcd8c065de Mon Sep 17 00:00:00 2001 From: jensgrunzer1 Date: Wed, 20 Nov 2024 15:49:42 +0100 Subject: [PATCH 47/66] s --- aarch64_buildscript | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/aarch64_buildscript b/aarch64_buildscript index f1bd971c..425c25ea 100755 --- a/aarch64_buildscript +++ b/aarch64_buildscript @@ -15,8 +15,8 @@ pacman-key --init pacman-key --populate archlinuxarm pacman -Sy --noconfirm pacman -S yarn git --noconfirm -sed -i -e 's/#RemoteFileSigLevel = Required/RemoteFileSigLevel = Never/g' /etc/pacman.conf -pacman -U https://github.com/jensgrunzer1/pyhon311-for-aarch64/raw/refs/heads/main/python311-3.11.9-2-aarch64.pkg.tar.xz --noconfirm +curl https://github.com/jensgrunzer1/pyhon311-for-aarch64/raw/refs/heads/main/python311-3.11.9-2-aarch64.pkg.tar.xz > python311-3.11.9-2-aarch64.pkg.tar.xz +pacman -U python311-3.11.9-2-aarch64.pkg.tar.xz --noconfirm pacman -Su --noconfirm mkdir swingmusicbuilder cd swingmusicbuilder From 71b4799ee7c172121106524f5472158f32652328 Mon Sep 17 00:00:00 2001 From: jensgrunzer1 Date: Wed, 20 Nov 2024 15:57:49 +0100 Subject: [PATCH 48/66] a --- aarch64_buildscript | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/aarch64_buildscript b/aarch64_buildscript index 425c25ea..977dc275 100755 --- a/aarch64_buildscript +++ b/aarch64_buildscript @@ -14,10 +14,9 @@ pacman-key --init pacman-key --populate archlinuxarm pacman -Sy --noconfirm -pacman -S yarn git --noconfirm -curl https://github.com/jensgrunzer1/pyhon311-for-aarch64/raw/refs/heads/main/python311-3.11.9-2-aarch64.pkg.tar.xz > python311-3.11.9-2-aarch64.pkg.tar.xz +pacman -S yarn git wget glibc --noconfirm +wget https://github.com/jensgrunzer1/pyhon311-for-aarch64/raw/refs/heads/main/python311-3.11.9-2-aarch64.pkg.tar.xz pacman -U python311-3.11.9-2-aarch64.pkg.tar.xz --noconfirm -pacman -Su --noconfirm mkdir swingmusicbuilder cd swingmusicbuilder From ac0d6031b13a6816ab3863c8688ae94f552f54dc Mon Sep 17 00:00:00 2001 From: jensgrunzer1 Date: Wed, 20 Nov 2024 16:03:17 +0100 Subject: [PATCH 49/66] s --- aarch64_buildscript | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/aarch64_buildscript b/aarch64_buildscript index 977dc275..75eaf53e 100755 --- a/aarch64_buildscript +++ b/aarch64_buildscript @@ -23,7 +23,7 @@ cd swingmusicbuilder git clone https://github.com/swing-opensource/swingmusic-client.git git clone https://github.com/swing-opensource/swingmusic.git # Manual poetry installation as installers are broken. -python3 -m venv poetry +python3.11 -m venv poetry source poetry/bin/activate cd swingmusic @@ -38,6 +38,7 @@ yarn build --outDir ../swingmusic/client cd ../swingmusic # Fixes poetry issue 5250. export PYTHON_KEYRING_BACKEND=keyring.backends.fail.Keyring +poetry env use /usr/bin/python3.11 poetry install # Swing gives error if this is not set. Set to version of repo you cloned. export SWINGMUSIC_APP_VERSION="1.4.8" From 6cb8e295f721afc43589e746a7737a3715587f82 Mon Sep 17 00:00:00 2001 From: jensgrunzer1 Date: Wed, 20 Nov 2024 16:15:17 +0100 Subject: [PATCH 50/66] s --- aarch64_buildscript | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aarch64_buildscript b/aarch64_buildscript index 75eaf53e..59dd8fb3 100755 --- a/aarch64_buildscript +++ b/aarch64_buildscript @@ -14,7 +14,7 @@ pacman-key --init pacman-key --populate archlinuxarm pacman -Sy --noconfirm -pacman -S yarn git wget glibc --noconfirm +pacman -S yarn git wget glibc python-poetry --noconfirm wget https://github.com/jensgrunzer1/pyhon311-for-aarch64/raw/refs/heads/main/python311-3.11.9-2-aarch64.pkg.tar.xz pacman -U python311-3.11.9-2-aarch64.pkg.tar.xz --noconfirm mkdir swingmusicbuilder From a5762eec7b3b6a3796221439b321f2464e9a64c9 Mon Sep 17 00:00:00 2001 From: jensgrunzer1 Date: Wed, 20 Nov 2024 17:22:07 +0100 Subject: [PATCH 51/66] a --- aarch64_buildscript | 1 + 1 file changed, 1 insertion(+) diff --git a/aarch64_buildscript b/aarch64_buildscript index 59dd8fb3..30bb7ed2 100755 --- a/aarch64_buildscript +++ b/aarch64_buildscript @@ -17,6 +17,7 @@ pacman -Sy --noconfirm pacman -S yarn git wget glibc python-poetry --noconfirm wget https://github.com/jensgrunzer1/pyhon311-for-aarch64/raw/refs/heads/main/python311-3.11.9-2-aarch64.pkg.tar.xz pacman -U python311-3.11.9-2-aarch64.pkg.tar.xz --noconfirm +pacman -Su --noconfirm mkdir swingmusicbuilder cd swingmusicbuilder From bcc5adcfbd4ff476aede9238878c9a0d4a4184e5 Mon Sep 17 00:00:00 2001 From: jensgrunzer1 Date: Wed, 20 Nov 2024 18:49:34 +0100 Subject: [PATCH 52/66] a --- .github/workflows/aarch64.yml | 6 +++--- aarch64_buildscript | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/aarch64.yml b/.github/workflows/aarch64.yml index 03b4d260..01330eee 100644 --- a/.github/workflows/aarch64.yml +++ b/.github/workflows/aarch64.yml @@ -34,7 +34,7 @@ jobs: id: create_release uses: actions/create-release@v1 env: - GITHUB_TOKEN: ${{ secrets.RELEASE_TOKEN }} + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: tag_name: ${{ github.run_number }} release_name: Release ${{ github.run_number }} @@ -44,9 +44,9 @@ jobs: id: upload-release-asset uses: actions/upload-release-asset@v1 env: - GITHUB_TOKEN: ${{ secrets.RELEASE_TOKEN }} + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: upload_url: ${{ steps.create_release.outputs.upload_url }} - asset_path: ./root/root/swingmusicbuilder/swingmusic/dist/swingmusic + asset_path: ./root/swingmusicbuilder/swingmusic/dist/swingmusic asset_name: swingmusic asset_content_type: application/octet-stream diff --git a/aarch64_buildscript b/aarch64_buildscript index 30bb7ed2..65129d5e 100755 --- a/aarch64_buildscript +++ b/aarch64_buildscript @@ -14,7 +14,7 @@ pacman-key --init pacman-key --populate archlinuxarm pacman -Sy --noconfirm -pacman -S yarn git wget glibc python-poetry --noconfirm +pacman -S yarn git wget glibc gcc --noconfirm wget https://github.com/jensgrunzer1/pyhon311-for-aarch64/raw/refs/heads/main/python311-3.11.9-2-aarch64.pkg.tar.xz pacman -U python311-3.11.9-2-aarch64.pkg.tar.xz --noconfirm pacman -Su --noconfirm From 8f29ffd24b58ea10f6bd2901b09814b6fa3e300e Mon Sep 17 00:00:00 2001 From: jensgrunzer1 <125598768+jensgrunzer1@users.noreply.github.com> Date: Thu, 21 Nov 2024 10:56:14 +0100 Subject: [PATCH 53/66] Update aarch64_buildscript --- aarch64_buildscript | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/aarch64_buildscript b/aarch64_buildscript index 65129d5e..7f7e0e88 100755 --- a/aarch64_buildscript +++ b/aarch64_buildscript @@ -14,10 +14,10 @@ pacman-key --init pacman-key --populate archlinuxarm pacman -Sy --noconfirm -pacman -S yarn git wget glibc gcc --noconfirm +pacman -S yarn git wget glibc gcc bzip2 expat gdbm libffi libnsl libxcrypt openssl zlib bluez-libs gdb mpdecimal--noconfirm wget https://github.com/jensgrunzer1/pyhon311-for-aarch64/raw/refs/heads/main/python311-3.11.9-2-aarch64.pkg.tar.xz pacman -U python311-3.11.9-2-aarch64.pkg.tar.xz --noconfirm -pacman -Su --noconfirm +#pacman -Su --noconfirm mkdir swingmusicbuilder cd swingmusicbuilder @@ -43,4 +43,4 @@ poetry env use /usr/bin/python3.11 poetry install # Swing gives error if this is not set. Set to version of repo you cloned. export SWINGMUSIC_APP_VERSION="1.4.8" -poetry run python manage.py --build \ No newline at end of file +poetry run python manage.py --build From 24f124444f37be82cc6d38cc3a72f0cae7267e8f Mon Sep 17 00:00:00 2001 From: jensgrunzer1 <125598768+jensgrunzer1@users.noreply.github.com> Date: Thu, 21 Nov 2024 11:42:03 +0100 Subject: [PATCH 54/66] Update aarch64_buildscript --- aarch64_buildscript | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aarch64_buildscript b/aarch64_buildscript index 7f7e0e88..e8005239 100755 --- a/aarch64_buildscript +++ b/aarch64_buildscript @@ -14,7 +14,7 @@ pacman-key --init pacman-key --populate archlinuxarm pacman -Sy --noconfirm -pacman -S yarn git wget glibc gcc bzip2 expat gdbm libffi libnsl libxcrypt openssl zlib bluez-libs gdb mpdecimal--noconfirm +pacman -S yarn git wget glibc gcc bzip2 expat gdbm libffi libnsl libxcrypt openssl zlib bluez-libs gdb mpdecimal --noconfirm wget https://github.com/jensgrunzer1/pyhon311-for-aarch64/raw/refs/heads/main/python311-3.11.9-2-aarch64.pkg.tar.xz pacman -U python311-3.11.9-2-aarch64.pkg.tar.xz --noconfirm #pacman -Su --noconfirm From fab53528d21c213fbd148898f850e2c50b03cd2b Mon Sep 17 00:00:00 2001 From: jensgrunzer1 <125598768+jensgrunzer1@users.noreply.github.com> Date: Thu, 21 Nov 2024 11:45:41 +0100 Subject: [PATCH 55/66] Update aarch64_buildscript --- aarch64_buildscript | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aarch64_buildscript b/aarch64_buildscript index e8005239..bdc6d0ef 100755 --- a/aarch64_buildscript +++ b/aarch64_buildscript @@ -14,7 +14,7 @@ pacman-key --init pacman-key --populate archlinuxarm pacman -Sy --noconfirm -pacman -S yarn git wget glibc gcc bzip2 expat gdbm libffi libnsl libxcrypt openssl zlib bluez-libs gdb mpdecimal --noconfirm +pacman -S yarn git wget glibc gcc bzip2 expat gdbm libffi libnsl libxcrypt openssl zlib bluez-libs gdb mpdecimal --noconfirm --disable-download-timeout wget https://github.com/jensgrunzer1/pyhon311-for-aarch64/raw/refs/heads/main/python311-3.11.9-2-aarch64.pkg.tar.xz pacman -U python311-3.11.9-2-aarch64.pkg.tar.xz --noconfirm #pacman -Su --noconfirm From e439178903f0801d0f97a0fb561b9dba3885987d Mon Sep 17 00:00:00 2001 From: jensgrunzer1 Date: Thu, 21 Nov 2024 15:00:07 +0100 Subject: [PATCH 56/66] Removed unecessary pacman -Su --- .github/workflows/aarch64.yml | 6 ++---- aarch64_buildscript | 2 +- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/.github/workflows/aarch64.yml b/.github/workflows/aarch64.yml index 01330eee..a3936243 100644 --- a/.github/workflows/aarch64.yml +++ b/.github/workflows/aarch64.yml @@ -15,15 +15,13 @@ jobs: run: | sudo systemctl restart systemd-binfmt sudo systemctl start systemd-resolved - - name: Downloading Arch Linux Arm Image for rpi4 aarch64 + - name: Downloading Arch Linux Arm Tarball for rpi4 aarch64 run: | wget http://os.archlinuxarm.org/os/ArchLinuxARM-rpi-aarch64-latest.tar.gz - - name: Extracting Image + - name: Extracting Tarball run: | mkdir root sudo tar xpf ArchLinuxARM-rpi-aarch64-latest.tar.gz -C root --warning=no-unknown-keyword - sudo chmod 770 root - sync - name: Building Swingmusic in qemu run: | wget https://raw.githubusercontent.com/jensgrunzer1/swingmusic/refs/heads/master/aarch64_buildscript diff --git a/aarch64_buildscript b/aarch64_buildscript index bdc6d0ef..43c080c3 100755 --- a/aarch64_buildscript +++ b/aarch64_buildscript @@ -14,7 +14,7 @@ pacman-key --init pacman-key --populate archlinuxarm pacman -Sy --noconfirm -pacman -S yarn git wget glibc gcc bzip2 expat gdbm libffi libnsl libxcrypt openssl zlib bluez-libs gdb mpdecimal --noconfirm --disable-download-timeout +pacman -S yarn git wget glibc gcc bzip2 expat gdbm libffi libnsl libxcrypt openssl zlib libnghttp2 icu --noconfirm --disable-download-timeout --needed wget https://github.com/jensgrunzer1/pyhon311-for-aarch64/raw/refs/heads/main/python311-3.11.9-2-aarch64.pkg.tar.xz pacman -U python311-3.11.9-2-aarch64.pkg.tar.xz --noconfirm #pacman -Su --noconfirm From 284822bef4dab7a9a6a7ade1b7d86f9e4e7a05ee Mon Sep 17 00:00:00 2001 From: jensgrunzer1 Date: Thu, 21 Nov 2024 15:03:09 +0100 Subject: [PATCH 57/66] removed unecessary pacman -Su --- aarch64_buildscript | 1 - 1 file changed, 1 deletion(-) diff --git a/aarch64_buildscript b/aarch64_buildscript index 43c080c3..faa1ce7d 100755 --- a/aarch64_buildscript +++ b/aarch64_buildscript @@ -17,7 +17,6 @@ pacman -Sy --noconfirm pacman -S yarn git wget glibc gcc bzip2 expat gdbm libffi libnsl libxcrypt openssl zlib libnghttp2 icu --noconfirm --disable-download-timeout --needed wget https://github.com/jensgrunzer1/pyhon311-for-aarch64/raw/refs/heads/main/python311-3.11.9-2-aarch64.pkg.tar.xz pacman -U python311-3.11.9-2-aarch64.pkg.tar.xz --noconfirm -#pacman -Su --noconfirm mkdir swingmusicbuilder cd swingmusicbuilder From 75ae9cbd0096561f305f6474e490c6fe11b02c15 Mon Sep 17 00:00:00 2001 From: jensgrunzer1 <125598768+jensgrunzer1@users.noreply.github.com> Date: Fri, 22 Nov 2024 08:12:50 +0100 Subject: [PATCH 58/66] Update aarch64.yml Removed unecessary package --- .github/workflows/aarch64.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/aarch64.yml b/.github/workflows/aarch64.yml index a3936243..0e57d764 100644 --- a/.github/workflows/aarch64.yml +++ b/.github/workflows/aarch64.yml @@ -10,7 +10,7 @@ jobs: - name: Installing Packages run: | sudo apt update -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 - name: Starting Services run: | sudo systemctl restart systemd-binfmt From 0bb23800ff4e9a94a998c1602a4418e8999e5cc4 Mon Sep 17 00:00:00 2001 From: jensgrunzer1 <125598768+jensgrunzer1@users.noreply.github.com> Date: Wed, 22 Jan 2025 16:08:26 +0100 Subject: [PATCH 59/66] Update aarch64.yml --- .github/workflows/aarch64.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/aarch64.yml b/.github/workflows/aarch64.yml index 0e57d764..63902977 100644 --- a/.github/workflows/aarch64.yml +++ b/.github/workflows/aarch64.yml @@ -2,6 +2,11 @@ name: New aarch64 Release run-name: Release v${{ github.event.inputs.tag }} on: workflow_dispatch: + inputs: + tag: + description: "Tag" + required: true + default: "1.x.x" jobs: build: runs-on: [ubuntu-20.04] @@ -26,6 +31,7 @@ jobs: run: | wget https://raw.githubusercontent.com/jensgrunzer1/swingmusic/refs/heads/master/aarch64_buildscript chmod +x aarch64_buildscript + sed -i -e '/s/TAG/${{ github.event.inputs.tag }}/g' aarch64_buildscript mv aarch64_buildscript root/ sudo systemd-nspawn --bind-ro=/etc/resolv.conf -D root ./aarch64_buildscript - name: Create Release From 38b93e78478c21d34ec6f2df0f08ddbd811d4bc4 Mon Sep 17 00:00:00 2001 From: jensgrunzer1 <125598768+jensgrunzer1@users.noreply.github.com> Date: Wed, 22 Jan 2025 16:08:59 +0100 Subject: [PATCH 60/66] Update aarch64_buildscript --- aarch64_buildscript | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aarch64_buildscript b/aarch64_buildscript index faa1ce7d..e29984a6 100755 --- a/aarch64_buildscript +++ b/aarch64_buildscript @@ -41,5 +41,5 @@ export PYTHON_KEYRING_BACKEND=keyring.backends.fail.Keyring poetry env use /usr/bin/python3.11 poetry install # Swing gives error if this is not set. Set to version of repo you cloned. -export SWINGMUSIC_APP_VERSION="1.4.8" +export SWINGMUSIC_APP_VERSION="TAG" poetry run python manage.py --build From 92b39b53ded634c27f073406c29d61ebbbcc9a32 Mon Sep 17 00:00:00 2001 From: jensgrunzer1 Date: Wed, 22 Jan 2025 16:13:05 +0100 Subject: [PATCH 61/66] Getting version from github inputs tag --- .github/workflows/aarch64.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/aarch64.yml b/.github/workflows/aarch64.yml index 63902977..e8f665f6 100644 --- a/.github/workflows/aarch64.yml +++ b/.github/workflows/aarch64.yml @@ -31,7 +31,7 @@ jobs: run: | wget https://raw.githubusercontent.com/jensgrunzer1/swingmusic/refs/heads/master/aarch64_buildscript chmod +x aarch64_buildscript - sed -i -e '/s/TAG/${{ github.event.inputs.tag }}/g' aarch64_buildscript + sed -i -e 's/TAG/${{ github.event.inputs.tag }}/g' aarch64_buildscript mv aarch64_buildscript root/ sudo systemd-nspawn --bind-ro=/etc/resolv.conf -D root ./aarch64_buildscript - name: Create Release From 286bb02e8fe490b062b6cc0dad1121b5a79b9210 Mon Sep 17 00:00:00 2001 From: jensgrunzer1 Date: Wed, 22 Jan 2025 18:02:21 +0100 Subject: [PATCH 62/66] Check --- .github/workflows/aarch64.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/aarch64.yml b/.github/workflows/aarch64.yml index e8f665f6..fddc5a69 100644 --- a/.github/workflows/aarch64.yml +++ b/.github/workflows/aarch64.yml @@ -32,6 +32,7 @@ jobs: wget https://raw.githubusercontent.com/jensgrunzer1/swingmusic/refs/heads/master/aarch64_buildscript chmod +x aarch64_buildscript sed -i -e 's/TAG/${{ github.event.inputs.tag }}/g' aarch64_buildscript + cat aarch64_buildscript mv aarch64_buildscript root/ sudo systemd-nspawn --bind-ro=/etc/resolv.conf -D root ./aarch64_buildscript - name: Create Release From def81f8f5e9bef11ddf3930efcb6afe0c4bfccf4 Mon Sep 17 00:00:00 2001 From: jensgrunzer1 Date: Thu, 23 Jan 2025 14:25:27 +0100 Subject: [PATCH 63/66] Reducing output and checking out buildscript from the repo insted of using wget --- .github/workflows/aarch64.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/aarch64.yml b/.github/workflows/aarch64.yml index fddc5a69..05cc021c 100644 --- a/.github/workflows/aarch64.yml +++ b/.github/workflows/aarch64.yml @@ -27,12 +27,16 @@ jobs: run: | mkdir root sudo tar xpf ArchLinuxARM-rpi-aarch64-latest.tar.gz -C root --warning=no-unknown-keyword + - name: Checking out buildscript + uses: actions/checkout@v4 + with: + sparse-checkout: | + aarch64_buildscript + sparse-checkout-cone-mode: false - name: Building Swingmusic in qemu run: | - wget https://raw.githubusercontent.com/jensgrunzer1/swingmusic/refs/heads/master/aarch64_buildscript chmod +x aarch64_buildscript sed -i -e 's/TAG/${{ github.event.inputs.tag }}/g' aarch64_buildscript - cat aarch64_buildscript mv aarch64_buildscript root/ sudo systemd-nspawn --bind-ro=/etc/resolv.conf -D root ./aarch64_buildscript - name: Create Release From 3773f4edadc621306dfd43ee8a4c11e70e261d64 Mon Sep 17 00:00:00 2001 From: jensgrunzer1 Date: Thu, 23 Jan 2025 14:26:04 +0100 Subject: [PATCH 64/66] Reducing output and checking buildscript out directly insted of using wget --- .github/workflows/aarch64.yml | 6 +++--- aarch64_buildscript | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/aarch64.yml b/.github/workflows/aarch64.yml index 05cc021c..8dbe10e1 100644 --- a/.github/workflows/aarch64.yml +++ b/.github/workflows/aarch64.yml @@ -14,15 +14,15 @@ jobs: steps: - name: Installing Packages run: | - sudo apt update -y - sudo apt -y install binfmt-support qemu-user-static systemd-container wget + sudo apt -qq update -y + sudo apt -y -qq install binfmt-support qemu-user-static systemd-container wget - name: Starting Services run: | sudo systemctl restart systemd-binfmt sudo systemctl start systemd-resolved - name: Downloading Arch Linux Arm Tarball for rpi4 aarch64 run: | - wget http://os.archlinuxarm.org/os/ArchLinuxARM-rpi-aarch64-latest.tar.gz + wget -q http://os.archlinuxarm.org/os/ArchLinuxARM-rpi-aarch64-latest.tar.gz - name: Extracting Tarball run: | mkdir root diff --git a/aarch64_buildscript b/aarch64_buildscript index e29984a6..8706193f 100755 --- a/aarch64_buildscript +++ b/aarch64_buildscript @@ -13,9 +13,9 @@ # Changed to bash shebang above from repo build script setting of zsh pacman-key --init pacman-key --populate archlinuxarm -pacman -Sy --noconfirm -pacman -S yarn git wget glibc gcc bzip2 expat gdbm libffi libnsl libxcrypt openssl zlib libnghttp2 icu --noconfirm --disable-download-timeout --needed -wget https://github.com/jensgrunzer1/pyhon311-for-aarch64/raw/refs/heads/main/python311-3.11.9-2-aarch64.pkg.tar.xz +pacman -Syq --noconfirm +pacman -Sq yarn git wget glibc gcc bzip2 expat gdbm libffi libnsl libxcrypt openssl zlib libnghttp2 icu --noconfirm --disable-download-timeout --needed +wget -q https://github.com/jensgrunzer1/pyhon311-for-aarch64/raw/refs/heads/main/python311-3.11.9-2-aarch64.pkg.tar.xz pacman -U python311-3.11.9-2-aarch64.pkg.tar.xz --noconfirm mkdir swingmusicbuilder cd swingmusicbuilder From 79d50c54164729ce302054341db8521d91decd6b Mon Sep 17 00:00:00 2001 From: jensgrunzer1 Date: Thu, 23 Jan 2025 14:29:46 +0100 Subject: [PATCH 65/66] fix --- .github/workflows/aarch64.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/aarch64.yml b/.github/workflows/aarch64.yml index 8dbe10e1..dcac5148 100644 --- a/.github/workflows/aarch64.yml +++ b/.github/workflows/aarch64.yml @@ -12,6 +12,12 @@ jobs: runs-on: [ubuntu-20.04] name: Building aarch64 binary steps: + - name: Checking out buildscript + uses: actions/checkout@v4 + with: + sparse-checkout: | + aarch64_buildscript + sparse-checkout-cone-mode: false - name: Installing Packages run: | sudo apt -qq update -y @@ -27,12 +33,6 @@ jobs: run: | mkdir root sudo tar xpf ArchLinuxARM-rpi-aarch64-latest.tar.gz -C root --warning=no-unknown-keyword - - name: Checking out buildscript - uses: actions/checkout@v4 - with: - sparse-checkout: | - aarch64_buildscript - sparse-checkout-cone-mode: false - name: Building Swingmusic in qemu run: | chmod +x aarch64_buildscript From fa035d367162ce6bb26568e4e288beced35dc544 Mon Sep 17 00:00:00 2001 From: jensgrunzer1 Date: Thu, 23 Jan 2025 14:36:12 +0100 Subject: [PATCH 66/66] removed more useless output --- .github/workflows/aarch64.yml | 4 ++-- aarch64_buildscript | 12 ++++++------ 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/aarch64.yml b/.github/workflows/aarch64.yml index dcac5148..4a323c95 100644 --- a/.github/workflows/aarch64.yml +++ b/.github/workflows/aarch64.yml @@ -20,8 +20,8 @@ jobs: sparse-checkout-cone-mode: false - name: Installing Packages run: | - sudo apt -qq update -y - sudo apt -y -qq install binfmt-support qemu-user-static systemd-container wget + sudo apt -qq update -y > /dev/null + sudo apt -y -qq install binfmt-support qemu-user-static systemd-container wget > /dev/null - name: Starting Services run: | sudo systemctl restart systemd-binfmt diff --git a/aarch64_buildscript b/aarch64_buildscript index 8706193f..3796b9d0 100755 --- a/aarch64_buildscript +++ b/aarch64_buildscript @@ -11,17 +11,17 @@ # Moving or renaming venv directory (comment inline below) will break that venv. # Additional poetry bug ongoing https://github.com/python-poetry/poetry/issues/5250 (comment inline below) # Changed to bash shebang above from repo build script setting of zsh -pacman-key --init -pacman-key --populate archlinuxarm -pacman -Syq --noconfirm -pacman -Sq yarn git wget glibc gcc bzip2 expat gdbm libffi libnsl libxcrypt openssl zlib libnghttp2 icu --noconfirm --disable-download-timeout --needed +pacman-key --init > /dev/null +pacman-key --populate archlinuxarm > /dev/null +pacman -Syq --noconfirm > /dev/null +pacman -Sq yarn git wget glibc gcc bzip2 expat gdbm libffi libnsl libxcrypt openssl zlib libnghttp2 icu --noconfirm --disable-download-timeout --needed > /dev/null wget -q https://github.com/jensgrunzer1/pyhon311-for-aarch64/raw/refs/heads/main/python311-3.11.9-2-aarch64.pkg.tar.xz pacman -U python311-3.11.9-2-aarch64.pkg.tar.xz --noconfirm mkdir swingmusicbuilder cd swingmusicbuilder -git clone https://github.com/swing-opensource/swingmusic-client.git -git clone https://github.com/swing-opensource/swingmusic.git +git clone --quiet https://github.com/swing-opensource/swingmusic-client.git +git clone --quiet https://github.com/swing-opensource/swingmusic.git # Manual poetry installation as installers are broken. python3.11 -m venv poetry source poetry/bin/activate