diff --git a/.github/workflows/swift.yml b/.github/workflows/swift.yml new file mode 100644 index 0000000..41c5f24 --- /dev/null +++ b/.github/workflows/swift.yml @@ -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 diff --git a/Package.resolved b/Package.resolved index c8a91fc..75cc94e 100644 --- a/Package.resolved +++ b/Package.resolved @@ -14,8 +14,8 @@ "kind" : "remoteSourceControl", "location" : "https://github.com/lhoward/AsyncExtensions", "state" : { - "branch" : "linux", - "revision" : "20a10267cd48c09ba3b31ba4da9e83cea124d356" + "revision" : "dabc2282009f0b223975f468d4e12bba31f3271f", + "version" : "0.9.0" } }, { @@ -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" } }, { @@ -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", @@ -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" } } ],