This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2024-07-22 07:19:36.471 | |
2024-07-22 07:19:36.737 | |
2024-07-22 07:21:12.021 | |
*** Signal 4: Backtracing from 0x563b13828f50... done *** | |
2024-07-22 07:21:12.021 | |
2024-07-22 07:21:12.021 | |
*** Program crashed: Illegal instruction at 0x0000563b13828f50 *** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mkdir SwiftPackageIndex-Server && cd SwiftPackageIndex-Server | |
git init . | |
git remote add origin https://github.com/SwiftPackageIndex/SwiftPackageIndex-Server | |
git fetch origin --depth=1 89cbad3846eaef877ec33925eca5867922cf391a | |
git reset --hard FETCH_HEAD | |
mkdir .stats | |
time env DEVELOPER_DIR=/Applications/Xcode-16.0.0-Beta.3.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
❯ git rev-parse @ | |
903d9ec992451cf80bf80cf82b82992fb331ccfb | |
~/P/S/spi-server on swift-6-prep | |
❯ swift package clean | |
~/P/S/spi-server on swift-6-prep | |
❯ swift build --build-tests | |
Building for debugging... | |
/Users/sas/Projects/SPI/spi-server/.build/checkouts/swift-certificates/Sources/X509/Signature.swift:16:1: remark: add '@preconcurrency' to suppress 'Sendable'-related warnings from module '_CryptoExtras' | |
import _CryptoExtras | |
^ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env swift | |
import Foundation | |
let toolchainsDir = URL(fileURLWithPath: "/Library/Developer/Toolchains") | |
struct ToolchainInfoPlist: Codable { | |
var bundleIdentifier: String | |
var createdDate: Date | |
var displayName: String |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM swift:5.9-slim | |
RUN apt-get update && apt-get -y install curl fish | |
ARG PKL_VERSION=0.25.1 | |
RUN curl -L -o /usr/local/bin/pkl https://github.com/apple/pkl/releases/download/${PKL_VERSION}/pkl-linux-aarch64 && chmod +x /usr/local/bin/pkl | |
# requires Swift runtime libraries, that's why the base image is swift:5.9-slim | |
ARG PKL_GEN_SWIFT_VERSION=0.2.1 | |
RUN curl -L -o /usr/local/bin/pkl-gen-swift https://github.com/apple/pkl-swift/releases/download/${PKL_GEN_SWIFT_VERSION}/pkl-gen-swift-linux-aarch64.bin && chmod +x /usr/local/bin/pkl-gen-swift |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
workflow_dispatch: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
``` | |
❯ ./.build/debug/daws server | |
starting server... | |
running. | |
2023-12-08T13:09:21+0100 info WebSocketActors : channel=[IPv6]::1/::1:57175 op=handleWebsocketChannel(_:remoteNodeID:) [WebSocketActors] new client connection | |
``` | |
``` | |
❯ ./.build/debug/daws client | |
starting client... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
set -euo pipefail | |
# Set the paths to your Old/New Xcodes | |
OLD_XCODE="/Applications/Xcode-14.3.1.app" | |
NEW_XCODE="/Applications/Xcode-15.0.0.app" # To get build number | |
# Get New Xcode build number | |
OLD_XCODE_BUILD=$(/usr/libexec/PlistBuddy -c "Print CFBundleVersion" ${OLD_XCODE}/Contents/Info.plist) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@discardableResult | |
func run<T>(_ operation: () async throws -> T, | |
defer deferredOperation: () async throws -> Void) async throws -> T { | |
do { | |
let result = try await operation() | |
try await deferredOperation() | |
return result | |
} catch { | |
try await deferredOperation() | |
throw error |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import SwiftUI | |
import Charts | |
import PlaygroundSupport | |
let spiData: [(package: String, fileCount: Int, mbSize: Int)] = [ | |
(package: "swift-markdown-ui", fileCount: 3796, mbSize: 44), | |
(package: "Microya", fileCount: 414, mbSize: 4), | |
(package: "swift-url-routing", fileCount: 9430, mbSize: 101), |
NewerOlder