Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions .github/workflows/swift-lint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: SwiftLint

on:
pull_request:
paths:
- '.github/workflows/swift-lint.yaml'
- '.swiftlint.yml'
- '**/*.swift'

jobs:
SwiftLint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: GitHub Action for SwiftLint
uses: norio-nomura/action-swiftlint@3.2.1
with:
args: --strict
3 changes: 3 additions & 0 deletions .swiftlint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# somethimes yes, sometimes no, so disable it
disabled_rules:
- trailing_comma
67 changes: 33 additions & 34 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -3,38 +3,37 @@
import PackageDescription

let package = Package(
name: "szq",
// other/older might be possible, but not tested
platforms: [
.macOS(.v14),
.iOS(.v17),
.watchOS(.v10),
.tvOS(.v16)
],
products: [
// Products define the executables and libraries a package produces, making them visible to other packages.
.library(
name: "szq",
targets: ["szq"]),
],
targets: [
.binaryTarget(
name: "zmq",
url: "https://github.com/a4z/libzmq-xcf/releases/download/v4.3.5-250103_1/libzmq.xcframework.zip",
checksum: "34bf6c91c7151bfd9e0bea70fdea3b375246520677e0b6aa9b36184315aa0ec9"
),
.target(
name: "szq",
dependencies: ["zmq"],
cxxSettings: [
],
linkerSettings: [
.linkedLibrary("c++")
]
),
.testTarget(
name: "szqTests",
dependencies: ["szq"]
),
]
name: "szq",
// other/older might be possible, but not tested
platforms: [
.macOS(.v14),
.iOS(.v17),
.watchOS(.v10),
.tvOS(.v16),
],
products: [
.library(
name: "szq",
targets: ["szq"])
],
targets: [
.binaryTarget(
name: "zmq",
url:
"https://github.com/a4z/libzmq-xcf/releases/download/v4.3.5-250103_1/libzmq.xcframework.zip",
checksum: "34bf6c91c7151bfd9e0bea70fdea3b375246520677e0b6aa9b36184315aa0ec9"
),
.target(
name: "szq",
dependencies: ["zmq"],
cxxSettings: [],
linkerSettings: [
.linkedLibrary("c++")
]
),
.testTarget(
name: "szqTests",
dependencies: ["szq"]
),
]
)
8 changes: 3 additions & 5 deletions Sources/quickcheck/main.swift
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
// playground for quickly testing some code,
// will be removed in the future,

import szq

let ctx = Context()