From 6da10eeb091640a21bd286b489549d06d492c0a1 Mon Sep 17 00:00:00 2001 From: xiaohei Date: Wed, 22 Apr 2026 13:48:49 +0800 Subject: [PATCH] ci: add jq installation before flutter-action to fix build failures --- .github/workflows/ci.yml | 18 ++++++++++++++---- .github/workflows/ios-only.yml | 5 +++-- 2 files changed, 17 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e771337..03fd2c6 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,5 +1,3 @@ -# CI Pipeline - retry 2026-04-14T09:42:16Z -# CI Pipeline - updated 2026-04-14T09:34:41Z name: Build & Test on: @@ -13,6 +11,8 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 + - name: Install jq + run: apt-get update && apt-get install -y jq - name: Setup Flutter uses: subosito/flutter-action@v2 with: @@ -29,6 +29,8 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 + - name: Install jq + run: apt-get update && apt-get install -y jq - name: Setup Flutter uses: subosito/flutter-action@v2 with: @@ -53,14 +55,16 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 + - name: Install jq + run: apt-get update && apt-get install -y jq - name: Setup Flutter uses: subosito/flutter-action@v2 with: flutter-version: '3.35.7' - name: Install Linux deps run: | - sudo apt-get update - sudo apt-get install -y ninja-build clang cmake pkg-config libgtk-3-dev libblkid-dev liblzma-dev libasound2-dev + apt-get update + apt-get install -y ninja-build clang cmake pkg-config libgtk-3-dev libblkid-dev liblzma-dev libasound2-dev - name: Get dependencies run: flutter pub get - name: Build @@ -76,6 +80,8 @@ jobs: runs-on: mac-runner steps: - uses: actions/checkout@v4 + - name: Install jq + run: brew install jq - name: Setup Flutter uses: subosito/flutter-action@v2 with: @@ -102,6 +108,8 @@ jobs: runs-on: mac-runner steps: - uses: actions/checkout@v4 + - name: Install jq + run: brew install jq - name: Setup Flutter uses: subosito/flutter-action@v2 with: @@ -129,6 +137,8 @@ jobs: runs-on: windows-runner steps: - uses: actions/checkout@v4 + - name: Install jq + run: choco install jq -y - name: Setup Flutter uses: subosito/flutter-action@v2 with: diff --git a/.github/workflows/ios-only.yml b/.github/workflows/ios-only.yml index 5d0faa2..94c70d3 100644 --- a/.github/workflows/ios-only.yml +++ b/.github/workflows/ios-only.yml @@ -1,5 +1,4 @@ name: Build iOS -# retry 2 on: push: @@ -8,9 +7,11 @@ on: jobs: build-ios: - runs-on: macos-latest + runs-on: mac-runner steps: - uses: actions/checkout@v4 + - name: Install jq + run: brew install jq - name: Setup Flutter uses: subosito/flutter-action@v2 with: