mirror of
https://github.com/zhaarey/wrapper.git
synced 2025-10-23 15:11:05 +00:00
add arm64
This commit is contained in:
61
.github/workflows/build-for-arm64.yml
vendored
Normal file
61
.github/workflows/build-for-arm64.yml
vendored
Normal 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
|
||||
3
.github/workflows/build.yml
vendored
3
.github/workflows/build.yml
vendored
@@ -27,6 +27,9 @@ jobs:
|
||||
|
||||
- name: Build
|
||||
run: |
|
||||
mkdir build
|
||||
cd build
|
||||
cmake ..
|
||||
make
|
||||
|
||||
- name: Set outputs
|
||||
|
||||
2
.github/workflows/wrapper-qemu.yml
vendored
2
.github/workflows/wrapper-qemu.yml
vendored
@@ -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: |
|
||||
|
||||
Reference in New Issue
Block a user