diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5efff76..16cdaa4 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 }} diff --git a/.github/workflows/release-tailwindcss-cli.yml b/.github/workflows/release-tailwindcss-cli.yml index 130cee9..f273eb3 100644 --- a/.github/workflows/release-tailwindcss-cli.yml +++ b/.github/workflows/release-tailwindcss-cli.yml @@ -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 diff --git a/Package.resolved b/Package.resolved index e8c11be..97ab3f8 100644 --- a/Package.resolved +++ b/Package.resolved @@ -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" } } ], diff --git a/Package.swift b/Package.swift index ea0e1a8..0297c30 100644 --- a/Package.swift +++ b/Package.swift @@ -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( diff --git a/Sources/TailwindCSSCLIArtifactBundler/ArtifactBundleBuilder+File Operations.swift b/Sources/TailwindCSSCLIArtifactBundler/ArtifactBundleBuilder+File Operations.swift index 19f43fd..ac45cd4 100644 --- a/Sources/TailwindCSSCLIArtifactBundler/ArtifactBundleBuilder+File Operations.swift +++ b/Sources/TailwindCSSCLIArtifactBundler/ArtifactBundleBuilder+File Operations.swift @@ -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()