Skip to content

Commit

Permalink
add GitHub worker action
Browse files Browse the repository at this point in the history
  • Loading branch information
lhoward committed Nov 24, 2024
1 parent da5cef4 commit cd3ef3b
Show file tree
Hide file tree
Showing 2 changed files with 61 additions and 17 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/swift.yml
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
34 changes: 17 additions & 17 deletions Package.resolved
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
"kind" : "remoteSourceControl",
"location" : "https://github.com/lhoward/AsyncExtensions",
"state" : {
"branch" : "linux",
"revision" : "20a10267cd48c09ba3b31ba4da9e83cea124d356"
"revision" : "dabc2282009f0b223975f468d4e12bba31f3271f",
"version" : "0.9.0"
}
},
{
Expand All @@ -24,16 +24,16 @@
"location" : "https://github.com/PADL/FlutterSwift",
"state" : {
"branch" : "main",
"revision" : "22a4c492b7d9de83dfb8d5a4d4c6a5da50ee6019"
"revision" : "6085417a06af9e9d604091a48ca7957f8875dc7e"
}
},
{
"identity" : "flyingfox",
"identity" : "ioringswift",
"kind" : "remoteSourceControl",
"location" : "https://github.com/swhitty/FlyingFox",
"location" : "https://github.com/PADL/IORingSwift",
"state" : {
"branch" : "main",
"revision" : "5a20fdcba3f56cb015ce93d9a7e96956cf82bba9"
"revision" : "8499ae79bae19850773e655a37964802358f07df",
"version" : "0.1.2"
}
},
{
Expand All @@ -54,6 +54,15 @@
"version" : "1.0.2"
}
},
{
"identity" : "swift-async-queue",
"kind" : "remoteSourceControl",
"location" : "https://github.com/dfed/swift-async-queue",
"state" : {
"revision" : "b51448d3347a3aedd828c491de3e78035f18759c",
"version" : "0.6.1"
}
},
{
"identity" : "swift-atomics",
"kind" : "remoteSourceControl",
Expand Down Expand Up @@ -96,16 +105,7 @@
"location" : "https://github.com/PADL/SwiftOCA",
"state" : {
"branch" : "main",
"revision" : "21afd17ed7e73de38d034d03b8c02120977f9ed5"
}
},
{
"identity" : "swiftui-sliders",
"kind" : "remoteSourceControl",
"location" : "https://github.com/spacenation/swiftui-sliders.git",
"state" : {
"revision" : "d5a7d856655d5c91f891c2b69d982c30fd5c7bdf",
"version" : "2.1.0"
"revision" : "5a10e9b5220be4398eb7c1d4daa5f675868dd3ef"
}
}
],
Expand Down

0 comments on commit cd3ef3b

Please sign in to comment.