mirror of
https://github.com/laosb/SwiftTailwind.git
synced 2026-03-01 16:48:22 +00:00
Compare commits
3 commits
37194f5d29
...
b2f310dd20
| Author | SHA1 | Date | |
|---|---|---|---|
| b2f310dd20 | |||
| 01dbb546de | |||
| fe2fd639b0 |
5 changed files with 17 additions and 16 deletions
9
.github/workflows/ci.yml
vendored
9
.github/workflows/ci.yml
vendored
|
|
@ -13,12 +13,15 @@ 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:
|
||||
|
|
@ -45,7 +48,7 @@ jobs:
|
|||
uses: actions/checkout@v4
|
||||
|
||||
- name: Setup Swift ${{ matrix.swift-version }}
|
||||
uses: swift-actions/setup-swift@v2
|
||||
uses: swift-actions/setup-swift@v3
|
||||
with:
|
||||
swift-version: ${{ matrix.swift-version }}
|
||||
|
||||
|
|
|
|||
|
|
@ -20,9 +20,9 @@ jobs:
|
|||
uses: actions/checkout@v4
|
||||
|
||||
- name: Setup Swift
|
||||
uses: swift-actions/setup-swift@v2
|
||||
uses: swift-actions/setup-swift@v3
|
||||
with:
|
||||
swift-version: "6.1"
|
||||
swift-version: "6.2"
|
||||
|
||||
- name: Cache Swift packages
|
||||
uses: actions/cache@v4
|
||||
|
|
|
|||
|
|
@ -1,13 +1,13 @@
|
|||
{
|
||||
"originHash" : "8e39da950f9cbe4c8126b1fabf0d3d6945ab547f7564fd7bb0921701f3269c14",
|
||||
"originHash" : "7c7cefeea2d5b6b41e4e4c63355216005204668d5b71b766db2eaeb0414dc0b8",
|
||||
"pins" : [
|
||||
{
|
||||
"identity" : "swift-argument-parser",
|
||||
"kind" : "remoteSourceControl",
|
||||
"location" : "https://github.com/apple/swift-argument-parser.git",
|
||||
"state" : {
|
||||
"revision" : "309a47b2b1d9b5e991f36961c983ecec72275be3",
|
||||
"version" : "1.6.1"
|
||||
"revision" : "c5d11a805e765f52ba34ec7284bd4fcd6ba68615",
|
||||
"version" : "1.7.0"
|
||||
}
|
||||
},
|
||||
{
|
||||
|
|
@ -15,8 +15,8 @@
|
|||
"kind" : "remoteSourceControl",
|
||||
"location" : "https://github.com/apple/swift-asn1.git",
|
||||
"state" : {
|
||||
"revision" : "f70225981241859eb4aa1a18a75531d26637c8cc",
|
||||
"version" : "1.4.0"
|
||||
"revision" : "810496cf121e525d660cd0ea89a758740476b85f",
|
||||
"version" : "1.5.1"
|
||||
}
|
||||
},
|
||||
{
|
||||
|
|
@ -24,8 +24,8 @@
|
|||
"kind" : "remoteSourceControl",
|
||||
"location" : "https://github.com/apple/swift-crypto.git",
|
||||
"state" : {
|
||||
"revision" : "95ba0316a9b733e92bb6b071255ff46263bbe7dc",
|
||||
"version" : "3.15.1"
|
||||
"revision" : "6f70fa9eab24c1fd982af18c281c4525d05e3095",
|
||||
"version" : "4.2.0"
|
||||
}
|
||||
}
|
||||
],
|
||||
|
|
|
|||
|
|
@ -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.0.0"),
|
||||
.package(url: "https://github.com/apple/swift-crypto.git", from: "3.0.0"),
|
||||
.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"),
|
||||
],
|
||||
targets: [
|
||||
.executableTarget(
|
||||
|
|
|
|||
|
|
@ -22,13 +22,11 @@ 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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue