add arm64

This commit is contained in:
zhaarey
2024-12-01 18:50:44 +08:00
parent ca1f26a950
commit b19efdd267
108 changed files with 978 additions and 315 deletions

61
.github/workflows/build-for-arm64.yml vendored Normal file
View File

@@ -0,0 +1,61 @@
name: Build for arm64
on:
push:
branches: [ "arm64" ]
pull_request:
branches: [ "arm64" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install aria2
run: sudo apt install aria2 -y
- name: Install LLVM
run: sudo bash -c "$(wget -O - https://apt.llvm.org/llvm.sh)"
- name: Install cross complier
run: sudo apt install gcc-aarch64-linux-gnu -y
- name: Set up Android NDK r23b
run: |
aria2c -o android-ndk-r23b-linux.zip https://dl.google.com/android/repository/android-ndk-r23b-linux.zip
unzip -q -d ~ android-ndk-r23b-linux.zip
- name: Build
run: |
mkdir build
cd build
cmake ..
make
- name: Set outputs
id: vars
run: echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: Wrapper.arm64.${{ steps.vars.outputs.sha_short }}
include-hidden-files: true
path: |
rootfs
wrapper
- name: Create Release Zip File
run: zip -r Wrapper.arm64.${{ steps.vars.outputs.sha_short }}.zip rootfs/ wrapper
- name: Create Release
uses: softprops/action-gh-release@v2
with:
files: Wrapper.arm64.${{ steps.vars.outputs.sha_short }}.zip
body: ${{ github.event.head_commit.message }}
prerelease: true
name: Wrapper.arm64.${{ steps.vars.outputs.sha_short }}
tag_name: arm64

View File

@@ -27,6 +27,9 @@ jobs:
- name: Build
run: |
mkdir build
cd build
cmake ..
make
- name: Set outputs

View File

@@ -13,7 +13,7 @@ jobs:
- uses: actions/checkout@v4
- name: Download wrapper-qemu basic image
run: wget https://github.com/zhaarey/wrapper/releases/download/wrapper-qemu/wrapper.qcow2
run: wget https://github.com/WorldObservationLog/wrapper/releases/download/wrapper-qemu/wrapper.qcow2
- name: Mount image
run: |