File tree Expand file tree Collapse file tree 6 files changed +53
-10
lines changed Expand file tree Collapse file tree 6 files changed +53
-10
lines changed Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+ set -e
3
+
4
+ # Find the path to swift binary
5
+ SWIFT_PATH=$( which swift)
6
+ echo " Swift binary found at: $SWIFT_PATH "
7
+
8
+ # Extract the toolchain path from swift binary path
9
+ # Remove /usr/bin/swift from the path to get the toolchain root
10
+ TOOLCHAIN_ROOT=$( dirname $( dirname " $SWIFT_PATH " ) )
11
+ echo " Toolchain root: $TOOLCHAIN_ROOT "
12
+
13
+ # Construct the path to CFBase.h
14
+ CFBASE_PATH=" $TOOLCHAIN_ROOT /lib/swift/CoreFoundation/CFBase.h"
15
+ echo " Looking for CFBase.h at: $CFBASE_PATH "
16
+
17
+ # Check if the file exists
18
+ if [ -f " $CFBASE_PATH " ]; then
19
+ echo " Found CFBase.h, applying patch..."
20
+
21
+ # Create a backup of the original file
22
+ cp " $CFBASE_PATH " " $CFBASE_PATH .bak"
23
+
24
+ # Replace the include line
25
+ sed -i ' s/#include <ptrauth.h>/\/\/ #include <ptrauth.h>/g' " $CFBASE_PATH "
26
+
27
+ echo " Patch applied successfully."
28
+ echo " Original file backed up at $CFBASE_PATH .bak"
29
+ else
30
+ echo " ERROR: Could not find CFBase.h in expected location."
31
+ echo " Toolchain structure may be different than expected."
32
+ exit 1
33
+ fi
Original file line number Diff line number Diff line change 14
14
matrix :
15
15
include :
16
16
- os : macos-15
17
- xcode-version : " 16.0 " # Swift 6.0
17
+ xcode-version : " 16.3 " # Swift 6.1
18
18
runs-on : ${{ matrix.os }}
19
19
env :
20
20
OPENBOX_WERROR : 1
Original file line number Diff line number Diff line change 13
13
fail-fast : false
14
14
matrix :
15
15
os : [macos-15]
16
- xcode-version : ["16.0 "] # Swift 6.0
16
+ xcode-version : ["16.3 "] # Swift 6.1
17
17
ios-version : ["18.0"]
18
18
include :
19
19
- ios-version : " 18.0"
Original file line number Diff line number Diff line change 13
13
fail-fast : false
14
14
matrix :
15
15
os : [macos-15]
16
- xcode-version : [16.0 ] # Swift 6.0
16
+ xcode-version : [16.3 ] # Swift 6.1
17
17
runs-on : ${{ matrix.os }}
18
18
env :
19
19
OPENBOX_WERROR : 1
Original file line number Diff line number Diff line change 12
12
strategy :
13
13
fail-fast : false
14
14
matrix :
15
- swift_version : ["6.0 "]
15
+ swift_version : ["6.1 "]
16
16
runs-on : ubuntu-22.04
17
17
env :
18
18
OPENBOX_WERROR : 1
24
24
- name : Swift version
25
25
run : |
26
26
which swift && swift --version
27
+ - name : Toolchain fix patch
28
+ run : |
29
+ # Fix swift-corelibs-foundation#5211
30
+ .github/scripts/fix-toolchain.sh
27
31
- name : Building and running tests in debug mode with coverage
28
32
run : |
29
33
swift test \
Original file line number Diff line number Diff line change @@ -12,19 +12,25 @@ RenderBox is a high performance rendering engine written in C++.
12
12
13
13
And it powers the underlying rendering of SwiftUI.
14
14
15
+ The project is for the following purposes:
16
+ - Add RB support for non-Apple platform (eg. Linux, WASI and Windows)
17
+ - Diagnose and debug RB issues on Apple platform
18
+
19
+ Currently, this project is in early development.
20
+
21
+ ## Build
22
+
23
+ The current suggested toolchain to build the project is Swift 6.1 / Xcode 16.3.
24
+
25
+ ## Supported platforms
26
+
15
27
| ** CI Status** |
16
28
| ---|
17
29
| [ ![ Compatibility tests] ( https://github.com/OpenSwiftUIProject/OpenBox/actions/workflows/compatibility_tests.yml/badge.svg )] ( https://github.com/OpenSwiftUIProject/OpenBox/actions/workflows/compatibility_tests.yml ) |
18
30
| [ ![ macOS] ( https://github.com/OpenSwiftUIProject/OpenBox/actions/workflows/macos.yml/badge.svg )] ( https://github.com/OpenSwiftUIProject/OpenBox/actions/workflows/macos.yml ) |
19
31
| [ ![ iOS] ( https://github.com/OpenSwiftUIProject/OpenBox/actions/workflows/ios.yml/badge.svg )] ( https://github.com/OpenSwiftUIProject/OpenBox/actions/workflows/ios.yml ) |
20
32
| [ ![ Ubuntu] ( https://github.com/OpenSwiftUIProject/OpenBox/actions/workflows/ubuntu.yml/badge.svg )] ( https://github.com/OpenSwiftUIProject/OpenBox/actions/workflows/ubuntu.yml ) |
21
33
22
- The project is for the following purposes:
23
- - Add OB support for non-Apple platform (eg. Linux, WASI and Windows)
24
- - Diagnose and debug RB issues on Apple platform
25
-
26
- Currently, this project is in early development.
27
-
28
34
## License
29
35
30
36
See LICENSE file - MIT
You can’t perform that action at this time.
0 commit comments