File tree Expand file tree Collapse file tree 11 files changed +209
-0
lines changed Expand file tree Collapse file tree 11 files changed +209
-0
lines changed Original file line number Diff line number Diff line change 6161 path = ./template/lua ;
6262 description = "Setup Lua Project" ;
6363 } ;
64+ swift = {
65+ path = ./template/swift ;
66+ description = "Setup Swift Project" ;
67+ } ;
6468 zig = {
6569 path = ./template/zig ;
6670 description = "Setup Zig Project" ;
Original file line number Diff line number Diff line change 1+ ; https://editorconfig.org
2+ root = true
3+
4+ ; default configuration
5+ [* ]
6+ charset = utf-8
7+ end_of_line = lf
8+ trim_trailing_whitespace = true
9+ insert_final_newline = true
10+ indent_style = unset
11+
12+ [{* .nix,flake.lock} ]
13+ indent_style = space
14+ indent_size = 2
15+
16+ [* .{yml,yaml} ]
17+ indent_style = space
18+ indent_size = 2
19+
20+ [* .md ]
21+ indent_style = space
22+ indent_size = 2
23+
24+ [* .go,go.mod,go.sum ]
25+ indent_style = tab
Original file line number Diff line number Diff line change 1+ use flake
Original file line number Diff line number Diff line change 1+ name : main
2+ on :
3+ pull_request :
4+ branches : [main]
5+ push :
6+ branches : [main]
7+ env :
8+ CI_NIX_FLAKE : .#default
9+ jobs :
10+ lint :
11+ runs-on : ubuntu-latest
12+ steps :
13+ - name : Checkout
14+ uses : actions/checkout@v4
15+ - name : Setup Nix
16+ uses : DeterminateSystems/nix-installer-action@main
17+ - name : Cache Nix
18+ uses : DeterminateSystems/flakehub-cache-action@main
19+ - name : Lint
20+ run : |
21+ nix develop ${{ env.CI_NIX_FLAKE }} --command \
22+ editorconfig-checker && echo "ok"
Original file line number Diff line number Diff line change 1+ # https://github.com/github/gitignore/blob/main/Swift.gitignore
2+
3+ # Xcode
4+ #
5+ # gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore
6+
7+ # # User settings
8+ xcuserdata /
9+
10+ # # Obj-C/Swift specific
11+ * .hmap
12+
13+ # # App packaging
14+ * .ipa
15+ * .dSYM.zip
16+ * .dSYM
17+
18+ # # Playgrounds
19+ timeline.xctimeline
20+ playground.xcworkspace
21+
22+ # Swift Package Manager
23+ #
24+ # Add this line if you want to avoid checking in source code from Swift Package Manager dependencies.
25+ # Packages/
26+ # Package.pins
27+ # Package.resolved
28+ # *.xcodeproj
29+ #
30+ # Xcode automatically generates this directory with a .xcworkspacedata file and xcuserdata
31+ # hence it is not needed unless you have added a package configuration file to your project
32+ # .swiftpm
33+
34+ .build /
35+
36+ # CocoaPods
37+ #
38+ # We recommend against adding the Pods directory to your .gitignore. However
39+ # you should judge for yourself, the pros and cons are mentioned at:
40+ # https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control
41+ #
42+ # Pods/
43+ #
44+ # Add this line if you want to avoid checking in source code from the Xcode workspace
45+ # *.xcworkspace
46+
47+ # Carthage
48+ #
49+ # Add this line if you want to avoid checking in source code from Carthage dependencies.
50+ # Carthage/Checkouts
51+
52+ Carthage /Build /
53+
54+ # fastlane
55+ #
56+ # It is recommended to not store the screenshots in the git repo.
57+ # Instead, use fastlane to re-generate the screenshots whenever they are needed.
58+ # For more information about the recommended setup visit:
59+ # https://docs.fastlane.tools/best-practices/source-control/#source-control
60+
61+ fastlane /report.xml
62+ fastlane /Preview.html
63+ fastlane /screenshots /** /* .png
64+ fastlane /test_output
Original file line number Diff line number Diff line change 1+ nixpkgs/update :
2+ @nix flake lock --override-input nixpkgs github:NixOS/nixpkgs/$(rev )
3+
4+ .PHONY : build test run clean
5+
6+ run :
7+ @swift run
Original file line number Diff line number Diff line change 1+ // swift-tools-version: 5.8
2+ // The swift-tools-version declares the minimum version of Swift required to build this package.
3+
4+ import PackageDescription
5+
6+ let package = Package (
7+ name: " swift-project " ,
8+ products: [
9+ . executable(
10+ name: " SwiftProject " ,
11+ targets: [ " SwiftProject " ] ) ,
12+ ] ,
13+ targets: [
14+ . executableTarget(
15+ name: " SwiftProject " ) ,
16+ ]
17+ )
Original file line number Diff line number Diff line change 1+ # Swift Project
Original file line number Diff line number Diff line change 1+ // The Swift Programming Language
2+ // https://docs.swift.org/swift-book
3+
4+ print ( " Hello, World! " )
You can’t perform that action at this time.
0 commit comments