Commit Graph

9 Commits

Author SHA1 Message Date
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 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 70081be442
Add --debug-info flag to carton bundle (#301) 2022-03-30 19:31:57 +09:00
Joe Cardenas 27e5e3eb08
Add libsqlite3-dev dependency (#288)
Fixes #287.

Not installed by default on all Ubuntu-based distributions.
2022-01-23 19:43:54 +00:00
Francisco Javier Trujillo Mata 4834b7afc4
Upgrade binaryen version to 105 (#286)
Also creating a variable for making upgrades easily in the future.

* Upgrade binaryen binary version

* Add trailing newline to `install_ubuntu_deps.sh`

Co-authored-by: Max Desiatov <max@desiatov.com>
2022-01-17 19:12:32 +00:00
Max Desiatov 10c21db4bf
Fix Ubuntu deps, clarify Linux support in README (#242)
Resolves #237.

* Fix Ubuntu deps, clarify Linux support in README

* Avoid using `sudo` if it's not installed
2021-05-28 22:00:38 +01:00
Yuta Saito b9702ea285
Remove wabt dependency (#156)
* Use WasmTransformer.stripCustomSections

* Remove wabt dependency
2020-11-06 23:51:10 +09:00
Max Desiatov 19883a503c
Remove sudo usage from `install_ubuntu_deps.sh` (#135)
* Remove sudo usage from `install_ubuntu_deps.sh`

`sudo` is not always available in Docker containers, so we should assume users will run the script itself with `sudo` when needed.

* Update swift.yml
2020-10-21 08:49:16 +01:00
Max Desiatov cd660a8d86
Use raw stdout if TerminalController is unavailable (#113)
TTY terminal output is unavailable on CI, or when users redirect output to a file or a pipe. In those cases `TerminalController` initializer returns `nil`. SwiftPM has a wrapper `InteractiveWriter` class for it, which writes output to stdout directly in that case. I've copied that, and replaced all uses of `TerminalController` with it. A VSCode task is added to test that.

In my testing it looks like download progress reporting is quite spammy, so it now has `removeDuplicates` Combine operator added to make it output only when values differ significantly from each other.

Additionally, SDK installs can hit GitHub API rate limit on CI nodes, so `carton` now reads `GITHUB_TOKEN` environment variable, which gives much higher limits to authenticated API users.

We can now also run various `carton` commands on CI for basic end-to-end testing.

Resolves #112.
2020-09-28 20:14:18 +01:00