Compare commits

..

No commits in common. "b2f310dd203cab101125e816ce1dfa144a65eb64" and "37194f5d29105c5c95d45360ae1b2b75c7f51859" have entirely different histories.

5 changed files with 16 additions and 17 deletions

View file

@ -13,15 +13,12 @@ jobs:
strategy:
matrix:
swift-version: ["6.1", "6.2"]
container:
image: swift:${{ matrix.swift-version }}
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Swift ${{ matrix.swift-version }}
uses: swift-actions/setup-swift@v3
with:
swift-version: ${{ matrix.swift-version }}
- name: Cache Swift packages
uses: actions/cache@v4
with:
@ -48,7 +45,7 @@ jobs:
uses: actions/checkout@v4
- name: Setup Swift ${{ matrix.swift-version }}
uses: swift-actions/setup-swift@v3
uses: swift-actions/setup-swift@v2
with:
swift-version: ${{ matrix.swift-version }}

View file

@ -20,9 +20,9 @@ jobs:
uses: actions/checkout@v4
- name: Setup Swift
uses: swift-actions/setup-swift@v3
uses: swift-actions/setup-swift@v2
with:
swift-version: "6.2"
swift-version: "6.1"
- name: Cache Swift packages
uses: actions/cache@v4

View file

@ -1,13 +1,13 @@
{
"originHash" : "7c7cefeea2d5b6b41e4e4c63355216005204668d5b71b766db2eaeb0414dc0b8",
"originHash" : "8e39da950f9cbe4c8126b1fabf0d3d6945ab547f7564fd7bb0921701f3269c14",
"pins" : [
{
"identity" : "swift-argument-parser",
"kind" : "remoteSourceControl",
"location" : "https://github.com/apple/swift-argument-parser.git",
"state" : {
"revision" : "c5d11a805e765f52ba34ec7284bd4fcd6ba68615",
"version" : "1.7.0"
"revision" : "309a47b2b1d9b5e991f36961c983ecec72275be3",
"version" : "1.6.1"
}
},
{
@ -15,8 +15,8 @@
"kind" : "remoteSourceControl",
"location" : "https://github.com/apple/swift-asn1.git",
"state" : {
"revision" : "810496cf121e525d660cd0ea89a758740476b85f",
"version" : "1.5.1"
"revision" : "f70225981241859eb4aa1a18a75531d26637c8cc",
"version" : "1.4.0"
}
},
{
@ -24,8 +24,8 @@
"kind" : "remoteSourceControl",
"location" : "https://github.com/apple/swift-crypto.git",
"state" : {
"revision" : "6f70fa9eab24c1fd982af18c281c4525d05e3095",
"version" : "4.2.0"
"revision" : "95ba0316a9b733e92bb6b071255ff46263bbe7dc",
"version" : "3.15.1"
}
}
],

View file

@ -10,8 +10,8 @@ let package = Package(
.executable(name: "TailwindCSSCLIArtifactBundler", targets: ["TailwindCSSCLIArtifactBundler"]),
],
dependencies: [
.package(url: "https://github.com/apple/swift-argument-parser.git", from: "1.7.0"),
.package(url: "https://github.com/apple/swift-crypto.git", "1.0.0"..<"5.0.0"),
.package(url: "https://github.com/apple/swift-argument-parser.git", from: "1.0.0"),
.package(url: "https://github.com/apple/swift-crypto.git", from: "3.0.0"),
],
targets: [
.executableTarget(

View file

@ -22,11 +22,13 @@ extension ArtifactBundleBuilder {
}
let bundleDirURL = URL(fileURLWithPath: bundleDir)
let workDirURL = bundleDirURL.deletingLastPathComponent()
let bundleName = bundleDirURL.lastPathComponent
let process = Process()
process.executableURL = URL(fileURLWithPath: "/usr/bin/zip")
process.arguments = ["-r", zipPath, bundleName]
process.currentDirectoryURL = workDirURL
try process.run()
process.waitUntilExit()