mirror of https://github.com/xemu-project/xemu.git
ci: Build AppImage for aarch64
This commit is contained in:
parent
a730f078e5
commit
9f97cdc027
|
@ -163,28 +163,44 @@ jobs:
|
|||
path: dist
|
||||
|
||||
Ubuntu:
|
||||
name: Build for Ubuntu (${{ matrix.configuration }})
|
||||
runs-on: ubuntu-latest
|
||||
name: Build for Ubuntu (${{matrix.arch}}, ${{ matrix.configuration }})
|
||||
runs-on: ${{ matrix.runs-on }}
|
||||
needs: Init
|
||||
strategy:
|
||||
matrix:
|
||||
include:
|
||||
- configuration: Debug
|
||||
- arch: x86_64
|
||||
configuration: Debug
|
||||
build_param: --debug
|
||||
artifact_name: xemu-ubuntu-debug
|
||||
artifact_filename: xemu-ubuntu-debug.tgz
|
||||
- configuration: Release
|
||||
artifact_name: xemu-ubuntu-x86_64-debug
|
||||
artifact_filename: xemu-ubuntu-x86_64-debug.tgz
|
||||
runs-on: ubuntu-24.04
|
||||
- arch: x86_64
|
||||
configuration: Release
|
||||
build_param:
|
||||
artifact_name: xemu-ubuntu-release
|
||||
artifact_filename: xemu-ubuntu-release.tgz
|
||||
artifact_name: xemu-ubuntu-x86_64-release
|
||||
artifact_filename: xemu-ubuntu-x86_64-release.tgz
|
||||
runs-on: ubuntu-22.04
|
||||
- arch: aarch64
|
||||
configuration: Debug
|
||||
build_param: --debug
|
||||
artifact_name: xemu-ubuntu-aarch64-debug
|
||||
artifact_filename: xemu-ubuntu-aarch64-debug.tgz
|
||||
runs-on: ubuntu-24.04-arm
|
||||
- arch: aarch64
|
||||
configuration: Release
|
||||
build_param:
|
||||
artifact_name: xemu-ubuntu-aarch64-release
|
||||
artifact_filename: xemu-ubuntu-aarch64-release.tgz
|
||||
runs-on: ubuntu-24.04-arm
|
||||
steps:
|
||||
- name: Initialize compiler cache
|
||||
id: cache
|
||||
uses: actions/cache@v4
|
||||
with:
|
||||
path: /tmp/xemu-ccache
|
||||
key: cache-${{ runner.os }}-${{ matrix.configuration }}-${{ github.sha }}
|
||||
restore-keys: cache-${{ runner.os }}-${{ matrix.configuration }}-
|
||||
key: cache-${{ runner.os }}-${{ matrix.arch }}-${{ matrix.configuration }}-${{ github.sha }}
|
||||
restore-keys: cache-${{ runner.os }}-${{ matrix.arch }}-${{ matrix.configuration }}-
|
||||
- name: Download source package
|
||||
uses: actions/download-artifact@v4
|
||||
with:
|
||||
|
@ -231,8 +247,8 @@ jobs:
|
|||
ccache -s
|
||||
- name: Generate AppImage
|
||||
run: |
|
||||
wget --no-verbose https://github.com/linuxdeploy/linuxdeploy/releases/latest/download/linuxdeploy-x86_64.AppImage
|
||||
chmod +x linuxdeploy-x86_64.AppImage
|
||||
wget --no-verbose https://github.com/linuxdeploy/linuxdeploy/releases/latest/download/linuxdeploy-${{ matrix.arch }}.AppImage
|
||||
chmod +x linuxdeploy-${{ matrix.arch }}.AppImage
|
||||
|
||||
ar x dist/*.deb
|
||||
mkdir appimage
|
||||
|
@ -244,7 +260,7 @@ jobs:
|
|||
export VERSION=$VERSION-dbg
|
||||
fi
|
||||
|
||||
./linuxdeploy-x86_64.AppImage --output appimage --appdir appimage
|
||||
./linuxdeploy-${{ matrix.arch }}.AppImage --output appimage --appdir appimage
|
||||
mv xemu-*.AppImage dist
|
||||
- name: Bundle artifacts
|
||||
run: |
|
||||
|
@ -419,8 +435,10 @@ jobs:
|
|||
dist/xemu-win-x86_64-release-pdb/xemu-win-release.zip
|
||||
dist/xemu-macos-universal-release/xemu-macos-universal-release.zip
|
||||
dist/xemu-macos-universal-debug/xemu-macos-universal-debug.zip
|
||||
dist/xemu-ubuntu-release/xemu/xemu-v${{ env.XEMU_VERSION }}-x86_64.AppImage
|
||||
dist/xemu-ubuntu-debug/xemu/xemu-v${{ env.XEMU_VERSION }}-dbg-x86_64.AppImage
|
||||
dist/xemu-ubuntu-x86_64-debug/xemu/xemu-v${{ env.XEMU_VERSION }}-dbg-x86_64.AppImage
|
||||
dist/xemu-ubuntu-x86_64-release/xemu/xemu-v${{ env.XEMU_VERSION }}-x86_64.AppImage
|
||||
dist/xemu-ubuntu-aarch64-debug/xemu/xemu-v${{ env.XEMU_VERSION }}-dbg-aarch64.AppImage
|
||||
dist/xemu-ubuntu-aarch64-release/xemu/xemu-v${{ env.XEMU_VERSION }}-aarch64.AppImage
|
||||
- name: Trigger website update
|
||||
uses: benc-uk/workflow-dispatch@v1.2.2
|
||||
with:
|
||||
|
|
Loading…
Reference in New Issue