From 193722e4fd6ec29913c88f25575e7f42295dfcae Mon Sep 17 00:00:00 2001 From: omochimetaru Date: Tue, 11 Jun 2024 12:58:57 +0800 Subject: [PATCH] Add Swift 6.0 CI for Linux (#482) * adaptive default toolchain with buidler of carton * add Linux CI * --enable-sign-ext * elseif --- .github/workflows/swift.yml | 3 +++ .../CartonFrontend/Commands/CartonFrontendBundleCommand.swift | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/swift.yml b/.github/workflows/swift.yml index c83a0753..10159b41 100644 --- a/.github/workflows/swift.yml +++ b/.github/workflows/swift.yml @@ -62,6 +62,9 @@ jobs: strategy: matrix: include: + - swift: + dir: "swift-6.0-branch/ubuntu2204" + version: "swift-6.0-DEVELOPMENT-SNAPSHOT-2024-06-08-a" - swift: dir: "swift-5.10-release/ubuntu2204" version: "swift-5.10-RELEASE" diff --git a/Sources/CartonFrontend/Commands/CartonFrontendBundleCommand.swift b/Sources/CartonFrontend/Commands/CartonFrontendBundleCommand.swift index 0c790f78..73899d9a 100644 --- a/Sources/CartonFrontend/Commands/CartonFrontendBundleCommand.swift +++ b/Sources/CartonFrontend/Commands/CartonFrontendBundleCommand.swift @@ -142,7 +142,8 @@ struct CartonFrontendBundleCommand: AsyncParsableCommand { async throws { var wasmOptArgs = [ - "wasm-opt", "-Os", "--enable-bulk-memory", inputPath.pathString, "-o", outputPath.pathString, + "wasm-opt", "-Os", "--enable-bulk-memory", "--enable-sign-ext", + inputPath.pathString, "-o", outputPath.pathString, ] if debugInfo { wasmOptArgs.append("--debuginfo")