-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
61 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
name: build | ||
|
||
on: | ||
push: | ||
pull_request: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
linux-wayland: | ||
runs-on: ubuntu-24.04 | ||
container: swift:6.0 | ||
env: | ||
FLUTTER_SWIFT_BACKEND: wayland | ||
steps: | ||
- name: Packages | ||
run: | | ||
apt-get update | ||
apt-get install -y unzip curl cmake pkg-config liburing-dev libavahi-compat-libdnssd-dev libavahi-client-dev libwayland-dev wayland-protocols libegl1-mesa-dev libgles2-mesa-dev libxkbcommon-dev libuv1-dev libinput-dev libdrm-dev libudev-dev libgbm-dev | ||
# - name: Set paths | ||
# run: echo "/opt/flutter-elinux/bin" >> $GITHUB_PATH | ||
- name: Checkout FlutterSwiftOCA | ||
uses: actions/checkout@v4 | ||
- name: Fix permissions | ||
run: chown -R $(id -u):$(id -g) $PWD | ||
- name: CoreFoundation header breakage workaround | ||
run: sed -i '/__CFAllocatorRespectsHintZeroWhenAllocating/d' /usr/lib/swift/CoreFoundation/*Only.h | ||
# - name: Fetch tags and checkout submodules | ||
# run: | | ||
# git fetch --prune --unshallow --tags | ||
# git submodule init | ||
# git submodule update | ||
# - name: Checkout Flutter | ||
# run: | | ||
# FLUTTER_REVISION=`git describe --tags --abbrev=0` | ||
# FLUTTER_ROOT=/opt/flutter-elinux | ||
# git clone --depth 1 --branch $FLUTTER_REVISION https://github.com/sony/flutter-elinux $FLUTTER_ROOT | ||
# (cd $FLUTTER_ROOT; git switch -c $FLUTTER_REVISION) | ||
# $FLUTTER_ROOT/bin/flutter-elinux 2>&1 | ||
- name: Version | ||
run: swift --version | ||
- name: Build FlutterSwift | ||
run: swift build --build-tests | ||
- name: Test FlutterSwift | ||
run: swift test --skip-build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters