mirror of
https://github.com/Dvorinka/swingmusic-extended.git
synced 2026-06-03 20:13:02 +00:00
272caf6bfe
- Update actions/setup-node@v3 to @v4 - Update actions/setup-python@v2 to @v5 - Update actions/checkout@v3 to @v4 - Replace deprecated create-release/upload-release-asset with action-gh-release - Eliminate deprecation warnings and improve reliability
53 lines
2.0 KiB
YAML
53 lines
2.0 KiB
YAML
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]
|
|
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 > /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
|
|
sudo systemctl start systemd-resolved
|
|
- name: Downloading Arch Linux Arm Tarball for rpi4 aarch64
|
|
run: |
|
|
wget -q http://os.archlinuxarm.org/os/ArchLinuxARM-rpi-aarch64-latest.tar.gz
|
|
- name: Extracting Tarball
|
|
run: |
|
|
mkdir root
|
|
sudo tar xpf ArchLinuxARM-rpi-aarch64-latest.tar.gz -C root --warning=no-unknown-keyword
|
|
- name: Building Swingmusic in qemu
|
|
run: |
|
|
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
|
|
id: create_release
|
|
uses: softprops/action-gh-release@v1
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
with:
|
|
tag_name: ${{ github.run_number }}
|
|
release_name: Release ${{ github.run_number }}
|
|
draft: false
|
|
prerelease: false
|
|
files: ./root/swingmusicbuilder/swingmusic/dist/swingmusic
|