Skip to content

Commit aa31db7

Browse files
committed
git subrepo clone (merge) --branch=packagedslkit git@github.com:brightdigit/SyntaxKit.git Packages/SyntaxKit
subrepo: subdir: "Packages/SyntaxKit" merged: "61fb486" upstream: origin: "git@github.com:brightdigit/SyntaxKit.git" branch: "packagedslkit" commit: "61fb486" git-subrepo: version: "0.4.9" origin: "https://github.com/Homebrew/brew" commit: "6301c2d31f"
1 parent d83c77c commit aa31db7

File tree

324 files changed

+30042
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

324 files changed

+30042
-0
lines changed
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
{
2+
"name": "Swift",
3+
"image": "swiftlang/swift:nightly-6.2-noble",
4+
"features": {
5+
"ghcr.io/devcontainers/features/common-utils:2": {
6+
"installZsh": "false",
7+
"username": "vscode",
8+
"upgradePackages": "false"
9+
},
10+
"ghcr.io/devcontainers/features/git:1": {
11+
"version": "os-provided",
12+
"ppa": "false"
13+
}
14+
},
15+
"postStartCommand": "git config --global --add safe.directory ${containerWorkspaceFolder}",
16+
"runArgs": [
17+
"--cap-add=SYS_PTRACE",
18+
"--security-opt",
19+
"seccomp=unconfined"
20+
],
21+
// Configure tool-specific properties.
22+
"customizations": {
23+
// Configure properties specific to VS Code.
24+
"vscode": {
25+
// Set *default* container specific settings.json values on container create.
26+
"settings": {
27+
"lldb.library": "/usr/lib/liblldb.so"
28+
},
29+
// Add the IDs of extensions you want installed when the container is created.
30+
"extensions": [
31+
"sswg.swift-lang"
32+
]
33+
}
34+
},
35+
// Use 'forwardPorts' to make a list of ports inside the container available locally.
36+
// "forwardPorts": [],
37+
38+
// Set `remoteUser` to `root` to connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root.
39+
"remoteUser": "root"
40+
}
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
{
2+
"name": "Swift",
3+
"image": "swift:6.1",
4+
"features": {
5+
"ghcr.io/devcontainers/features/common-utils:2": {
6+
"installZsh": "false",
7+
"username": "vscode",
8+
"upgradePackages": "false"
9+
},
10+
"ghcr.io/devcontainers/features/git:1": {
11+
"version": "os-provided",
12+
"ppa": "false"
13+
}
14+
},
15+
"postStartCommand": "git config --global --add safe.directory ${containerWorkspaceFolder}",
16+
"runArgs": [
17+
"--cap-add=SYS_PTRACE",
18+
"--security-opt",
19+
"seccomp=unconfined"
20+
],
21+
// Configure tool-specific properties.
22+
"customizations": {
23+
// Configure properties specific to VS Code.
24+
"vscode": {
25+
// Set *default* container specific settings.json values on container create.
26+
"settings": {
27+
"lldb.library": "/usr/lib/liblldb.so"
28+
},
29+
// Add the IDs of extensions you want installed when the container is created.
30+
"extensions": [
31+
"sswg.swift-lang"
32+
]
33+
}
34+
},
35+
// Use 'forwardPorts' to make a list of ports inside the container available locally.
36+
// "forwardPorts": [],
37+
38+
// Set `remoteUser` to `root` to connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root.
39+
"remoteUser": "root"
40+
}
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
{
2+
"name": "Swift",
3+
"image": "swiftlang/swift:nightly-6.2-noble",
4+
"features": {
5+
"ghcr.io/devcontainers/features/common-utils:2": {
6+
"installZsh": "false",
7+
"username": "vscode",
8+
"upgradePackages": "false"
9+
},
10+
"ghcr.io/devcontainers/features/git:1": {
11+
"version": "os-provided",
12+
"ppa": "false"
13+
}
14+
},
15+
"postStartCommand": "git config --global --add safe.directory ${containerWorkspaceFolder}",
16+
"runArgs": [
17+
"--cap-add=SYS_PTRACE",
18+
"--security-opt",
19+
"seccomp=unconfined"
20+
],
21+
// Configure tool-specific properties.
22+
"customizations": {
23+
// Configure properties specific to VS Code.
24+
"vscode": {
25+
// Set *default* container specific settings.json values on container create.
26+
"settings": {
27+
"lldb.library": "/usr/lib/liblldb.so"
28+
},
29+
// Add the IDs of extensions you want installed when the container is created.
30+
"extensions": [
31+
"sswg.swift-lang"
32+
]
33+
}
34+
},
35+
// Use 'forwardPorts' to make a list of ports inside the container available locally.
36+
// "forwardPorts": [],
37+
38+
// Set `remoteUser` to `root` to connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root.
39+
"remoteUser": "root"
40+
}
Lines changed: 131 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,131 @@
1+
name: SyntaxKit
2+
on:
3+
push:
4+
branches-ignore:
5+
- '*WIP'
6+
env:
7+
PACKAGE_NAME: SyntaxKit
8+
jobs:
9+
build-ubuntu:
10+
name: Build on Ubuntu
11+
runs-on: ubuntu-latest
12+
container: swiftlang/swift:nightly-${{ matrix.swift-version }}-${{ matrix.os }}
13+
if: ${{ !contains(github.event.head_commit.message, 'ci skip') }}
14+
strategy:
15+
matrix:
16+
os: ["noble", "jammy"]
17+
swift-version: ["6.1", "6.2"]
18+
steps:
19+
- uses: actions/checkout@v4
20+
- uses: brightdigit/swift-build@v1.1.1
21+
- uses: sersoft-gmbh/swift-coverage-action@v4
22+
id: coverage-files
23+
with:
24+
fail-on-empty-output: true
25+
- name: Upload coverage to Codecov
26+
uses: codecov/codecov-action@v4
27+
with:
28+
fail_ci_if_error: true
29+
flags: swift-${{ matrix.swift-version }},ubuntu
30+
verbose: true
31+
token: ${{ secrets.CODECOV_TOKEN }}
32+
files: ${{ join(fromJSON(steps.coverage-files.outputs.files), ',') }}
33+
build-macos:
34+
name: Build on macOS
35+
env:
36+
PACKAGE_NAME: SyntaxKit
37+
runs-on: ${{ matrix.runs-on }}
38+
if: "!contains(github.event.head_commit.message, 'ci skip')"
39+
strategy:
40+
fail-fast: false
41+
matrix:
42+
include:
43+
# SPM Build Matrix
44+
- runs-on: macos-15
45+
xcode: "/Applications/Xcode_16.4.app"
46+
47+
# macOS Build Matrix
48+
- type: macos
49+
runs-on: macos-15
50+
xcode: "/Applications/Xcode_16.4.app"
51+
52+
# iOS Build Matrix
53+
- type: ios
54+
runs-on: macos-15
55+
xcode: "/Applications/Xcode_16.4.app"
56+
deviceName: "iPhone 16 Pro"
57+
osVersion: "18.5"
58+
59+
# watchOS Build Matrix
60+
- type: watchos
61+
runs-on: macos-15
62+
xcode: "/Applications/Xcode_16.4.app"
63+
deviceName: "Apple Watch Ultra 2 (49mm)"
64+
osVersion: "11.5"
65+
66+
# tvOS Build Matrix
67+
- type: tvos
68+
runs-on: macos-15
69+
xcode: "/Applications/Xcode_16.4.app"
70+
deviceName: "Apple TV"
71+
osVersion: "18.5"
72+
73+
# visionOS Build Matrix
74+
- type: visionos
75+
runs-on: macos-15
76+
xcode: "/Applications/Xcode_16.4.app"
77+
deviceName: "Apple Vision Pro"
78+
osVersion: "2.5"
79+
80+
steps:
81+
- uses: actions/checkout@v4
82+
83+
- name: Build and Test
84+
uses: brightdigit/swift-build@v1.1.1
85+
with:
86+
scheme: ${{ env.PACKAGE_NAME }}-Package
87+
type: ${{ matrix.type }}
88+
xcode: ${{ matrix.xcode }}
89+
deviceName: ${{ matrix.deviceName }}
90+
osVersion: ${{ matrix.osVersion }}
91+
92+
# Common Coverage Steps
93+
- name: Process Coverage
94+
uses: sersoft-gmbh/swift-coverage-action@v4
95+
96+
- name: Upload Coverage
97+
uses: codecov/codecov-action@v4
98+
with:
99+
token: ${{ secrets.CODECOV_TOKEN }}
100+
flags: ${{ matrix.type && format('{0}{1}', matrix.type, matrix.osVersion) || 'spm' }}
101+
102+
lint:
103+
name: Linting
104+
if: "!contains(github.event.head_commit.message, 'ci skip')"
105+
runs-on: ubuntu-latest
106+
needs: [build-ubuntu, build-macos]
107+
env:
108+
MINT_PATH: .mint/lib
109+
MINT_LINK_PATH: .mint/bin
110+
steps:
111+
- uses: actions/checkout@v4
112+
- name: Cache mint
113+
id: cache-mint
114+
uses: actions/cache@v4
115+
env:
116+
cache-name: cache
117+
with:
118+
path: |
119+
.mint
120+
Mint
121+
key: ${{ runner.os }}-mint-${{ hashFiles('**/Mintfile') }}
122+
restore-keys: |
123+
${{ runner.os }}-mint-
124+
- name: Install mint
125+
if: steps.cache-mint.outputs.cache-hit == ''
126+
run: |
127+
git clone https://github.com/yonaskolb/Mint.git
128+
cd Mint
129+
swift run mint install yonaskolb/mint
130+
- name: Lint
131+
run: ./Scripts/lint.sh

Packages/SyntaxKit/.gitignore

Lines changed: 140 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,140 @@
1+
# Created by https://www.toptal.com/developers/gitignore/api/xcode,macos,swift
2+
# Edit at https://www.toptal.com/developers/gitignore?templates=xcode,macos,swift
3+
4+
### macOS ###
5+
# General
6+
.DS_Store
7+
.AppleDouble
8+
.LSOverride
9+
10+
# Icon must end with two \r
11+
Icon
12+
13+
14+
# Thumbnails
15+
._*
16+
17+
# Files that might appear in the root of a volume
18+
.DocumentRevisions-V100
19+
.fseventsd
20+
.Spotlight-V100
21+
.TemporaryItems
22+
.Trashes
23+
.VolumeIcon.icns
24+
.com.apple.timemachine.donotpresent
25+
26+
# Directories potentially created on remote AFP share
27+
.AppleDB
28+
.AppleDesktop
29+
Network Trash Folder
30+
Temporary Items
31+
.apdisk
32+
33+
### Swift ###
34+
# Xcode
35+
#
36+
# gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore
37+
38+
## User settings
39+
xcuserdata/
40+
41+
## compatibility with Xcode 8 and earlier (ignoring not required starting Xcode 9)
42+
*.xcscmblueprint
43+
*.xccheckout
44+
45+
## compatibility with Xcode 3 and earlier (ignoring not required starting Xcode 4)
46+
build/
47+
DerivedData/
48+
*.moved-aside
49+
*.pbxuser
50+
!default.pbxuser
51+
*.mode1v3
52+
!default.mode1v3
53+
*.mode2v3
54+
!default.mode2v3
55+
*.perspectivev3
56+
!default.perspectivev3
57+
58+
## Obj-C/Swift specific
59+
*.hmap
60+
61+
## App packaging
62+
*.ipa
63+
*.dSYM.zip
64+
*.dSYM
65+
66+
## Playgrounds
67+
timeline.xctimeline
68+
playground.xcworkspace
69+
70+
# Swift Package Manager
71+
# Add this line if you want to avoid checking in source code from Swift Package Manager dependencies.
72+
# Packages/
73+
# Package.pins
74+
# Package.resolved
75+
*.xcodeproj
76+
# Xcode automatically generates this directory with a .xcworkspacedata file and xcuserdata
77+
# hence it is not needed unless you have added a package configuration file to your project
78+
.swiftpm
79+
80+
.build/
81+
82+
# CocoaPods
83+
# We recommend against adding the Pods directory to your .gitignore. However
84+
# you should judge for yourself, the pros and cons are mentioned at:
85+
# https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control
86+
# Pods/
87+
# Add this line if you want to avoid checking in source code from the Xcode workspace
88+
# *.xcworkspace
89+
90+
# Carthage
91+
# Add this line if you want to avoid checking in source code from Carthage dependencies.
92+
# Carthage/Checkouts
93+
94+
Carthage/Build/
95+
96+
# fastlane
97+
# It is recommended to not store the screenshots in the git repo.
98+
# Instead, use fastlane to re-generate the screenshots whenever they are needed.
99+
# For more information about the recommended setup visit:
100+
# https://docs.fastlane.tools/best-practices/source-control/#source-control
101+
102+
fastlane/report.xml
103+
fastlane/Preview.html
104+
fastlane/screenshots/**/*.png
105+
fastlane/test_output
106+
fastlane/reviews.csv
107+
108+
# Code Injection
109+
# After new code Injection tools there's a generated folder /iOSInjectionProject
110+
# https://github.com/johnno1962/injectionforxcode
111+
112+
iOSInjectionProject/
113+
114+
### Xcode ###
115+
# Xcode
116+
# gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore
117+
118+
119+
120+
121+
## Gcc Patch
122+
/*.gcno
123+
124+
### Xcode Patch ###
125+
*.xcodeproj/*
126+
#!*.xcodeproj/project.pbxproj
127+
#!*.xcodeproj/xcshareddata/
128+
#!*.xcworkspace/contents.xcworkspacedata
129+
**/xcshareddata/WorkspaceSettings.xcsettings
130+
131+
# End of https://www.toptal.com/developers/gitignore/api/xcode,macos,swift
132+
133+
Support/*/Info.plist
134+
Support/*/macOS.entitlements
135+
136+
vendor/ruby
137+
public
138+
.mint
139+
*.lcov
140+
.docc-build

0 commit comments

Comments
 (0)