Commit Graph

13 Commits

Author SHA1 Message Date
Max Desiatov dd6439700f
Bump version to 0.11.0, update dependencies (#251)
* Bump version to 0.11.0, update dependencies

* Test on Big Sur with Xcode 12.5

* Update test fixture dependencies

* Remove `LinuxMain.swift` expectations

* Test with `wasm-5.4-SNAPSHOT-2021-08-26-a`

* Remove expectations for `XCTestManifests.swift`

* Enable debugging output

* Try the latest 5.4 toolchain

* print debug output

* More debug output

* Test on macOS 11 with Xcode 13

* Pipe errors to stdout

* Update DefaultToolchain.swift

* Revert "Update DefaultToolchain.swift"

This reverts commit 4ff15f938a.

* Remove Xcode 13 from the CI matrix

* Update DefaultToolchain.swift

* Reduce the diff
2021-09-01 15:07:00 +01:00
Max Desiatov 64da926cea
Bump `defaultToolchainVersion` to 5.3.1 (#178)
* Bump defaultToolchainVersion to 5.3.1

* Bump version in Dockerfile
2020-11-28 11:25:17 +00:00
Yuta Saito 501274a72d
Use ghcr.io/swiftwasm/swift as base image (#154)
* Use ghcr.io/swiftwasm/swift as base image

* Drop swift- prefix for toolchain name

* Update default toolchain version
2020-11-06 22:14:10 +09:00
Max Desiatov ac97210433
Fix handling of test bundles with .wasm extension (#153)
After https://github.com/apple/swift-package-manager/pull/3013 was merged and cherry-picked for our 5.3 snapshots (starting with `wasm-5.3-SNAPSHOT-2020-11-02-a`), `carton test` needs to handle the `.wasm` extension in test products.
2020-11-05 21:34:59 +00:00
Max Desiatov b1f01a437b
Fix handling of binaries with `.wasm` extension (#148)
Latest toolchains produce binaries with the `.wasm` extension which `carton` can't handle yet.
2020-10-30 16:50:59 +00:00
Yuta Saito 88a8e956f4
Stop using destination.json (#141)
* Remove unnecessary linker flags

* Remove destination json

* Import CoreFoundation explicitly to link it

* Remove Destination.swift model file

* Restore triple option

* Update default toolchain

* Workaround until https://github.com/swiftwasm/swift/pull/2097

* Revert "Workaround until https://github.com/swiftwasm/swift/pull/2097"

This reverts commit 285d2ae7aa.

* Update toolchain version

* Warn use of --destination

* Apply suggestions from code review

Co-authored-by: Max Desiatov <max@desiatov.com>

Co-authored-by: Max Desiatov <max@desiatov.com>
2020-10-28 19:57:28 +09:00
Max Desiatov 55013181aa
Add support for signed `.pkg` archives on macOS (#137)
`carton` can't install toolchains from `.pkg` archives at the moment, and the latest toolchain snapshots are distributed exclusively as signed `.pkg` for macOS.

Parts of `ToolchainManagement.swift` related to toolchain installation were moved to `ToolchainInstallation.swift`.

* Add support for signed `.pkg` archives on macOS

* Bump toolchain version to `2020-10-21`
2020-10-22 15:48:56 +01:00
Max Desiatov 703078dd83
Bump toolchain, use `--enable-test-discovery` (#130)
In the latest 5.3 toolchain all known issues with IndexStoreDB and SwiftPM support were resolved.

Resolves the second point of #42.

Thanks to this you no longer need to maintain `LinuxMain.swift` and `XCTestManifests.swift` files in your test suites, so these are deleted from the test app `Tests` directory.
2020-10-20 09:29:25 +01:00
Max Desiatov 567baac2d5
Bump default toolchain, make i64 bug reproducible (#128)
`TestApp/.swift-version` is removed as it was mostly duplicating the default toolchain version. Downloads of recent toolchains is fixed now with the new `macos` tarball suffix that replaces `osx`. `TestApp/main.swift` is updated to make #127 easily reproducible.
2020-10-14 22:00:42 +01:00
Max Desiatov 4eb18d2f04
Bump dependencies and default toolchain snapshot (#111)
The latest SwiftWasm 5.3 snapshot requires users to use `import WASILibc` instead of `import Glibc`. This makes differences between platforms more explicit.
2020-09-26 19:53:39 +01:00
Max Desiatov c051ab77b5
Bump default toolchain version, fix release builds (#106)
The latest 5.3 toolchain snapshot fixes release builds of Tokamak. 

We no longer need `carton bundle` to produce debug builds by default, so it closes #103 as outdated.

Formatting of a `carton bundle` message is fixed as it didn't have a required trailing newline.
2020-09-10 10:42:23 +01:00
Max Desiatov c51f6176a0
Update default toolchain version (#87)
The latest 5.3 snapshot should be more stable and also supports specifying dependency on JavaScriptKit with a version range.
2020-08-18 18:02:34 +01:00
Max Desiatov 5c590230ec
Add separate CartonHelpers/SwiftToolchain modules (#35)
This also adds a separate `Toolchain` type that abstracts a lot of the common operations. The giant toolchain-related `FileSystem` extension is now hidden in the separate `SwiftToolchain` module that also contains the new `Toolchain` type.

New `Destination` model type is added to facilitate automatic creation of destination files in a future PR.
2020-07-08 22:16:11 +01:00