Commit Graph

30 Commits

Author SHA1 Message Date
relrelb c4d013c884 ci: Cache npm dependencies
This should improve CI build times.

Done as described in:
https://github.com/actions/setup-node#caching-packages-dependencies
2022-01-12 10:30:51 -08:00
relrelb 7f4f40621b web: Migrate to npm workspaces
`lerna` is a bit stale, and as such it currently has some outdated
dependencies which Dependabot warns on.
Fortunately, npm 7 supports monorepos natively, via "workspaces". So
simply replace `lerna` with this feature. The migration is pretty
neat and requires a very little invervention.

Because Node.js 14 comes with npm 6 by default, upgrade it manually
as shown in https://github.com/bahmutov/npm-install/issues/103#issuecomment-931226602.
2022-01-11 13:17:48 -08:00
Chris Midgley 781edd0feb web: preferentially use node 16 to compile 2021-10-26 13:21:55 -07:00
Chris Midgley 7f09e751a1
dev: have required builds 'run' (#5332)
* dev: have required builds 'run'

* dev: remove unnecessary fields

* dev: do less in the no-op step
2021-09-21 21:01:51 +02:00
relrelb dd42b563ff web: Bump wasm-bindgen to 0.2.78
As usual, also bump its helper crates (`js-sys`, `wasm-bindgen-futures`)
to the latest versions, except for `web-sys` which is locked by wgpu
to 0.3.50.
2021-09-18 21:35:50 +02:00
Mike Welsh 9978eaa954 chore: Bump to wasm-bindgen 0.2.77 2021-09-10 16:32:14 -07:00
relrelb 915204b998 ci: Checkout source before paths filter
Otherwise the paths filter fails to list files using git.
2021-08-26 01:07:17 +03:00
relrelb 2ff9d93c90 ci: Cleanup quotes
Prefer single quotes over double quotes, and omit them where possible.
2021-08-26 01:07:17 +03:00
relrelb bf32a0096b ci: Formatting 2021-08-26 01:07:17 +03:00
relrelb db247f5a1a ci: Use `dorny/paths-filter` to run only if certain file paths change
The previous approach of `paths-ignore` was flawed because currently
it doesn't interact well with GitHub's "Require status checks to pass
before merging" setting. As a result, PRs that didn't trigger all
workflows couldn't be merged, because GitHub waited for the skipped
workflows to finish.

`dorny/paths-filter` is a somewhat elegant workaround proposed in
https://stackoverflow.com/questions/66751567.
2021-08-25 23:59:47 +03:00
Adrian Wielgosik cc557fd6e7 Revert "dev: run workflows only if certain file paths change (#5103)"
This reverts commit 60cf947334.
2021-08-25 21:26:39 +02:00
Chris Midgley 60cf947334
dev: run workflows only if certain file paths change (#5103)
* dev: run workflows only if certain file paths change

* fix: looks like you can't ? a /

* feat: simpler approach

Don't run Rust if only package.json, package-lock.json or anything under
web/packages has changed.

Don't run either if they only have docs changes.
2021-08-23 22:19:22 +02:00
relrelb 7be7182eb9 web: Bump wasm-bindgen to 0.2.76
As usual, also bump its helper crates (js-sys, wasm-bindgen-futures)
to the latest versions, except for web-sys which is locked by wgpu
to 0.3.50.
2021-08-21 14:59:26 +02:00
Chris Midgley 9fd4f097f8 dev: check formatting before running tests 2021-08-21 14:58:10 +02:00
relrelb 232bb26b7f web: Bump wasm-bindgen to 0.2.75
Also bump its helper crates (js-sys, wasm-bindgen-futures) to the
latest versions, except for web-sys which seems to be locked by wgpu
to 0.3.50.
2021-08-08 16:53:41 +03:00
relrelb 2ba103ac3f web: Bump wasm-bindgen to 0.2.74
Also bump its helper crates (js-sys, wasm-bindgen-futures) to the
latest versions, except for web-sys which seems to be locked by wgpu
to one version before the latest (0.3.50).
2021-07-23 22:17:51 -07:00
Mike Welsh bab2701208 web: Bump wasm-bindgen and js-sys versions 2021-04-16 23:37:23 -07:00
relrelb 26d3179afe ci: Fix web build 2021-02-03 11:10:00 -08:00
relrelb 5783021d99
ci: Publish nightly builds to the AUR
Add a new job to release_nightly.yml that updates the AUR package
https://aur.archlinux.org/packages/ruffle-nightly-bin/ on nightly
basis.
2021-02-01 14:24:17 -08:00
relrelb 6d2ad4e607
chore: Cleanup actions 2021-01-31 19:07:36 -08:00
Mike Welsh d1fb36fbe2 chore: Add wasm-bindgen-cli version to docs 2021-01-31 12:42:51 -08:00
Mike Welsh 44bfd46bf9 chore: Lock wasm-bindgen and wasm-bindgen-cli to 0.2.69 2021-01-25 12:27:21 -08:00
relrelb 3fb58580c5
web: Add stylelint 2021-01-22 09:12:48 -08:00
TÖRÖK Attila 2858faaaf2
web: Drop wasm-pack, invoke wasm-bindgen and wasm-opt directly from npm (#2482) 2021-01-15 12:59:25 -08:00
Mike Welsh 7b3112d89d ci: Disable macOS web tests for now
macOS-web has been flaky on CI, so disable it for now.
2020-12-26 14:09:41 -08:00
Luca Weiss d5cb396331 *: fix spelling mistakes 2020-09-19 16:17:58 -07:00
Nathan Adams fe53cbfb6d chore: Remove hardcoded command in github ci 2020-06-13 12:35:14 -07:00
CUB3D 22d64aabd5 chore: Fix failing tests
Add missing libraries for X11 clipboard access
2020-06-09 22:41:11 +01:00
Nathan Adams 82c1930c0f web: web doesn't need install before bootstrap now 2020-05-19 11:42:57 +02:00
Nathan Adams ec6363813c chore: Split CI into "rust" and "web" tests to speed up time 2020-05-19 11:42:57 +02:00