Commit Graph

476 Commits

Author SHA1 Message Date
Dustin Collins e1bd1edde0
Update Build Action (#409) 2023-09-30 05:35:28 -04:00
Dustin Collins c7aba09d55
Update CI Action (#403) 2023-08-15 18:58:55 -04:00
Yuta Saito 8c45b80387
Update README.md 2023-07-23 10:14:13 +09:00
Yuta Saito e93778a77c
Update README.md 2023-07-21 10:04:48 +09:00
Yuta Saito e795bb5a43 Bump version to 0.19.1, update `CHANGELOG.md` 2023-05-09 04:43:08 +00:00
Yuta Saito 61827db99e Fix docker base image to be 5.8 2023-05-09 04:41:21 +00:00
Yuta Saito d2864bee74 Bump version to 0.19.0, update `CHANGELOG.md` 2023-05-08 12:39:36 +00:00
Yuta Saito a19e1ac541
Update default toolchain version to 5.8 channel snapshot (#398) 2023-05-08 21:00:19 +09:00
Yuta Saito 44b7dbd2ee
Support jammy and amazonlinux2 for toolchain install (#397)
* Support Ubuntu 22.04 for toolchain download

* Support amazonlinux2 for toolchain install
2023-05-05 00:30:34 +09:00
Yuta Saito fc64e872de
Fix the default docker command arguments (#396)
Close https://github.com/swiftwasm/carton/issues/393
2023-05-04 19:32:43 +09:00
Yuta Saito b79fe9a260
Update SwiftPM branch to 5.8 and fix build errors (#395)
* Update SwiftPM branch to 5.8 and fix build errors

* Make swift-format 5.8 happy :)

* Make swift-format 5.8 happy for Tests

* Fix wrong formatting

* Resolve AbsolutePath(validating:) rename warnings

* Fix wrong formatting

* Resolve remaining deprecation warnings

* Fix Linux build failure
2023-05-04 18:40:16 +09:00
Yuta Saito f2a83a28bb Bump version to 0.18.0, update `CHANGELOG.md` 2023-04-03 12:01:20 +00:00
Yuta Saito 8b73e3d4fc
Strip autolink custom section (#390) 2023-03-31 01:10:19 +09:00
Peter Stöckli 9c2ac5f756
Fix typo in container registry domain (#389) 2023-02-09 22:59:51 +09:00
Yuta Saito 254a0e03d6
Add note for branch rename for tap repository 2023-01-10 19:22:07 +09:00
Tatsuyuki Kobayashi 74b8ca6e1d
Fix carton sdk install on linux(aarch64) (#386)
Fix linux aarch64 install path
2022-10-16 13:46:21 +00:00
Tatsuyuki Kobayashi db91a617e9
Allow to save .swift-version even .swift-version is missing (#385)
Allow to save .swift-version even for the first time
2022-10-08 19:38:17 +09:00
Tatsuyuki Kobayashi 94691a349b
Fix SwiftPM dependency warning for template project (#384)
Fix not to use deprecated method
2022-10-03 15:23:26 +09:00
Yuta Saito 8227edf5aa Remove outdated GitHub Actions job 2022-09-30 14:30:18 +00:00
Yuta Saito 3a00a0d79b Bump version to 0.17.0, update `CHANGELOG.md` 2022-09-30 14:17:39 +00:00
Yuta Saito 2fe7118e51
Update default toolchain version to 5.7.1 (#383) 2022-09-29 23:31:48 +08:00
Yuta Saito daf152d93d
Update SwiftPM library version to 5.7 (#381) 2022-09-25 20:52:39 +09:00
Yuta Saito 734e333a43
Add 5.7 host toolchain matrix (#380) 2022-09-21 13:06:11 +09:00
noppefoxwolf bdb5d5944a
Use @main attributes (#378) 2022-09-14 19:38:59 +09:00
noppefoxwolf 2f462a4693
Ignore force_try swift-lint rule where in defer. (#379)
Update BrowserTestRunner.swift
2022-09-14 04:01:19 +00:00
Max Desiatov 04d757bfba
Remove `swiftlint` from `Brewfile`
`swiftlint` from Homebrew now requires macOS 12, but I'd prefer our CI to still support macOS 11 for as long as possible.
2022-09-04 13:15:17 +01:00
Max Desiatov c55e56c18f
Delete update-deps.yml 2022-09-04 12:59:19 +01:00
Yuta Saito c7d6586ccd
Update SwiftPM dependencies (#374) 2022-08-28 09:37:53 +01:00
Yuta Saito f3bb6ecab7
Update SwiftPM dependencies (#373)
Co-authored-by: MaxDesiatov <MaxDesiatov@users.noreply.github.com>
2022-08-21 12:30:26 +08:00
Yuta Saito 3eb847b6a0
Update SwiftPM dependencies (#372)
Co-authored-by: MaxDesiatov <MaxDesiatov@users.noreply.github.com>
2022-08-18 20:03:00 +09:00
Yuta Saito 1d48528554
Update SwiftPM dependencies (#371)
Co-authored-by: MaxDesiatov <MaxDesiatov@users.noreply.github.com>
2022-08-07 10:49:46 +09:00
Yuta Saito b8cac7dc8e Revert "Use GITHUB_TOKEN instead of PAT to upload image to ghcr"
This reverts commit ddefd139a0.
2022-07-22 14:33:23 +00:00
Yuta Saito ddefd139a0 Use GITHUB_TOKEN instead of PAT to upload image to ghcr 2022-07-22 14:24:08 +00:00
Yuta Saito 9c0abbf013 Bump version to 0.16.1, update `CHANGELOG.md` 2022-07-22 14:21:51 +00:00
Yuta Saito 2fa2568a16
Exit non-zero status when test fail on browser (#370)
* Add crash test case

* Exit non-zero status when test fail

also handle JS exception
2022-07-19 01:28:40 +09:00
Max Desiatov 2c5cf34e0c
Update SwiftPM dependencies (#368) 2022-06-26 13:45:03 +02:00
Max Desiatov 097b99290a
Update SwiftPM dependencies (#366) 2022-06-19 12:30:37 +02:00
Yuta Saito 1de809e223 Update carton compatibility matrix 2022-06-15 23:08:43 +09:00
Yuta Saito 29a9b587b2 Bump version to 0.16.0, update `CHANGELOG.md` 2022-06-15 23:03:41 +09:00
Max Desiatov c92f85c543
Revert "Use `--static-swift-stdlib` for easier distribution on Linux" (#365)
Revert "Use `--static-swift-stdlib` for easier distribution on Linux (#343)"

This reverts commit 78d023587c.

As reported previously:

> after adding --static-swift-stdlib, carton init and other commands started hanging.
> It seems something wrong in Foundation or global executor. The min repro for the hang is here
> https://gist.github.com/kateinoigakukun/a3ee55fa2480a46959211c53de862131
2022-06-15 10:02:07 +02:00
Max Desiatov 0db2416c1b
Update SwiftPM dependencies (#363) 2022-06-12 14:41:34 +01:00
Yuta Saito 646f1aef85
Headless test runner (#362)
* Add WebDriverClient for headless testing

* Launch new session with headless arg by default

* Add --headless option in carton test

* Improve logging message

* Apply formatter for WebDriverClient module

* Support MS Edge

* Add headless testing test

* Explicitly depend on NIOFoundationCompat

* Avoid public actor field as a 5.5 compiler crash workaround

* Add --headless description in README.md

* Update Sources/CartonCLI/Commands/Test.swift

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

* Apply suggestions from code review for wording

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

* Rename failedToFindDriver -> failedToFindWebDriver

* Rephrase diagnostic message

* Omit explicit internal keyword

* Remove unused goto.Response struct

* Add license header to Tests/WebDriverClientTests/WebDriverClientTests.swift

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

Co-authored-by: Max Desiatov <max@desiatov.com>
2022-06-10 16:42:20 +00:00
Max Desiatov 48c9179fa0
Update SwiftPM dependencies (#360)
- Dependency updates

Auto-generated by [create-pull-request][1]

[1]: https://github.com/peter-evans/create-pull-request
2022-06-05 13:45:58 +02:00
Geordie J eef2825f78
Add option to disable wasm optimizations (#359)
I am trying to implement an `esbuild` plugin that calls into `carton`. My plan was to call `carton bundle --debug` to get a quick development build and then extract that command's output for use in our esbuild project.

Unfortunately, `carton bundle` still runs `wasm-opt` even on a debug build, which takes 5-10s for our project. The only alternative I can see is `carton dev`, but that runs the dev server / watcher, which we don't want either for a one-off build.

Since changing the behaviour of `carton bundle --debug` to _not_ run `wasm-opt` may cause issues with backwards compatibility, @MaxDesiatov suggested we add a command line option `--wasm-optimizations {size, none}` instead, allowing users to specifically opt out of this behaviour.
2022-06-02 18:40:00 +01:00
Max Desiatov 78d023587c
Use `--static-swift-stdlib` for easier distribution on Linux (#343)
In theory, this should allow us to distribute self-contained binaries on Linux. These wouldn't be statically linked completely, but at least they should no longer depend on a separate dynamic library file with Swift stdlib.

Related to https://github.com/swiftwasm/carton/issues/336.
2022-05-31 11:29:41 +01:00
Yuta Saito 70b06afad8 Add short description for --prebuilt-test-bundle-path 2022-05-31 01:59:14 +09:00
Yuta Saito 820c2afab7
Add --bundle-path option to `carton test` (#358)
* Add --skip-build option to carton test to delegate building to users

* Add test case for --skip-build

* Rename --skip-build to --bundle-path to allow specifying binary path

* Update Sources/CartonCLI/Commands/Test.swift

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

* Rename --bundle-path to --prebuilt-test-bundle-path

* Update Sources/CartonCLI/Commands/Test.swift

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

Co-authored-by: Max Desiatov <max@desiatov.com>
2022-05-30 16:04:03 +00:00
Max Desiatov 75fc15266f
Update SwiftPM dependencies (#357)
- Dependency updates

Auto-generated by [create-pull-request][1]

[1]: https://github.com/peter-evans/create-pull-request
2022-05-29 11:58:36 +01:00
Max Desiatov 7ef43954cc
Fix linter error in `Builder.swift` (#356) 2022-05-28 20:27:06 +09:00
Yuta Saito 154149b6ea
Clean up integration tests and fixtures (#355) 2022-05-28 09:33:27 +00:00