remove duplicate linux-arm64 build
This commit is contained in:
1 parent
c7847f0d9e
commit
35161603a5
1 file changed
-52
@@ -83,58 +83,6 @@ jobs:
|
|||||||
build/appimage-runtime/
|
build/appimage-runtime/
|
||||||
if-no-files-found: warn
|
if-no-files-found: warn
|
||||||
|
|
||||||
linux-arm64:
|
|
||||||
runs-on: ubuntu-24.04-arm
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v4
|
|
||||||
- name: Read Flutter source pin
|
|
||||||
id: flutter-arm
|
|
||||||
run: echo "revision=$(jq -r '.flutter.source_revision' scripts/appimage-tools.json)" >> "$GITHUB_OUTPUT"
|
|
||||||
- uses: subosito/flutter-action@v2
|
|
||||||
with:
|
|
||||||
channel: main
|
|
||||||
flutter-version: ${{ steps.flutter-arm.outputs.revision }}
|
|
||||||
architecture: arm64
|
|
||||||
git-source: https://github.com/flutter/flutter.git
|
|
||||||
cache: true
|
|
||||||
- name: Verify native ARM64 toolchain
|
|
||||||
run: |
|
|
||||||
test "$(uname -m)" = aarch64
|
|
||||||
mkdir -p build
|
|
||||||
flutter --version --machine > build/flutter-version.json
|
|
||||||
jq -e --arg revision "${{ steps.flutter-arm.outputs.revision }}" '.frameworkVersion == "3.47.4" and .frameworkRevision == $revision' build/flutter-version.json
|
|
||||||
- name: Install Linux build deps
|
|
||||||
run: |
|
|
||||||
sudo apt-get update
|
|
||||||
sudo apt-get install -y clang cmake ninja-build pkg-config jq libgtk-3-dev librsvg2-dev libgirepository1.0-dev libgtk-3-bin libgdk-pixbuf2.0-bin libgdk-pixbuf-2.0-dev dpkg-dev patchelf file desktop-file-utils xdg-user-dirs shellcheck libssl-dev libunwind-dev libvulkan-dev libgl1-mesa-dev libasound2-dev libsecret-1-dev
|
|
||||||
- uses: actions/cache@v4
|
|
||||||
with:
|
|
||||||
path: ~/.cache/meshcore-open/appimage
|
|
||||||
key: linux-appimage-aarch64-${{ hashFiles('scripts/appimage-tools.json') }}
|
|
||||||
- name: Test packaging contracts
|
|
||||||
run: |
|
|
||||||
shellcheck scripts/build_appimage.sh scripts/appimage/*.sh scripts/appimage/AppRun
|
|
||||||
bash scripts/appimage/test_packaging.sh
|
|
||||||
- run: flutter pub get
|
|
||||||
- run: flutter test --reporter expanded
|
|
||||||
- run: flutter build linux --release --no-pub
|
|
||||||
- name: Test ARM64 AppImage in clean Ubuntu
|
|
||||||
run: |
|
|
||||||
docker build --platform linux/arm64 --target runtime-test --build-arg "BASE_IMAGE=$(jq -r '.ubuntu' scripts/appimage-tools.json)" -f scripts/appimage/Dockerfile -t meshcore-appimage-runtime-arm64 scripts
|
|
||||||
mkdir -p build/appimage-runtime
|
|
||||||
docker run --rm --platform linux/arm64 --user "$(id -u):$(id -g)" --mount "type=bind,source=$PWD/build/linux/arm64/release/meshcore-open-aarch64.AppImage,target=/artifact.AppImage,readonly" --mount "type=bind,source=$PWD/scripts/appimage/test_runtime.sh,target=/test_runtime.sh,readonly" --mount "type=bind,source=$PWD/build/appimage-runtime,target=/results" meshcore-appimage-runtime-arm64 xvfb-run -a bash /test_runtime.sh /artifact.AppImage /results
|
|
||||||
- uses: actions/upload-artifact@v4
|
|
||||||
if: always()
|
|
||||||
with:
|
|
||||||
name: linux-arm64-appimage
|
|
||||||
path: |
|
|
||||||
build/linux/arm64/release/meshcore-open-aarch64.AppImage
|
|
||||||
build/linux/arm64/release/appimage-audit.txt
|
|
||||||
build/linux/arm64/release/appimage-tools.json
|
|
||||||
build/flutter-version.json
|
|
||||||
build/appimage-runtime/
|
|
||||||
if-no-files-found: warn
|
|
||||||
|
|
||||||
linux-arm64:
|
linux-arm64:
|
||||||
runs-on: ubuntu-24.04-arm
|
runs-on: ubuntu-24.04-arm
|
||||||
steps:
|
steps:
|
||||||
|
|||||||
Reference in new issue
Block a user