Skip to content

Commit 98fd056

Browse files
Fix Fedora 43 RPM workflow Flutter setup
1 parent deb4e87 commit 98fd056

3 files changed

Lines changed: 16 additions & 2 deletions

File tree

.github/workflows/rpm-fedora43.yml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,11 @@ jobs:
4040
gawk \
4141
sed \
4242
grep \
43-
flutter \
43+
xz \
44+
unzip \
45+
which \
46+
curl \
47+
ca-certificates \
4448
clang \
4549
cmake \
4650
ninja-build \
@@ -49,6 +53,13 @@ jobs:
4953
python3 \
5054
ripgrep
5155
56+
- name: Install Flutter SDK
57+
run: |
58+
git clone --depth 1 --branch stable https://github.com/flutter/flutter.git /opt/flutter
59+
echo "/opt/flutter/bin" >> "$GITHUB_PATH"
60+
/opt/flutter/bin/flutter --version
61+
/opt/flutter/bin/flutter config --enable-linux-desktop
62+
5263
- name: Check out repository
5364
uses: actions/checkout@v4
5465
with:

ro-installer.spec

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ URL: https://github.com/Project-Ro-ASD/ro-Installer
77
Source0: %{name}-%{version}.tar.gz
88
BuildArch: x86_64
99

10-
BuildRequires: flutter
10+
# Flutter SDK is provided by the build wrapper or CI because Fedora 43 does not
11+
# ship a supported flutter RPM in the base repositories.
1112
BuildRequires: clang
1213
BuildRequires: cmake
1314
BuildRequires: ninja-build

scripts/check-stable.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,8 @@ require_github_rpm_ci_policy() {
191191
local workflow=".github/workflows/rpm-fedora43.yml"
192192
[[ -f "${workflow}" ]]
193193
rg -q 'fedora:43' "${workflow}"
194+
rg -q '/opt/flutter/bin' "${workflow}"
195+
! rg -q '^[[:space:]]+flutter[[:space:]]*\\$' "${workflow}"
194196
rg -q 'scripts/01-build-rpm.sh --no-chain --source-mode git --require-clean-git' "${workflow}"
195197
rg -q 'actions/upload-artifact@v4' "${workflow}"
196198
rg -q 'softprops/action-gh-release@v2' "${workflow}"

0 commit comments

Comments
 (0)