Commit Graph

50 Commits

Author SHA1 Message Date
David Wendt cc3d4f7638 build: Since our app package now works, clean up the bare executable. 2022-03-28 16:30:58 -06:00
David Wendt 1c308551ae chore: App bundle also needs a Resources directory. 2022-03-18 15:55:11 -06:00
David Wendt f7af4af818 Since we are building an app bundle now, the macOS packager needs to clone the repo, too 2022-03-17 19:48:17 -06:00
David Wendt 4e0253ebf0 Package the nightly builds as a MacOS app bundle. 2022-03-17 17:15:14 -06:00
Daniel Jacobs 31446785f9 ci: Use windows-latest again 2022-03-03 16:55:13 -07:00
Chris Midgley b2af0667fb build: add libgtk-3-dev 2022-02-23 22:45:26 +02:00
relrelb 4037707ce5 ci: Migrate to Windows Server 2022
Per https://github.com/actions/virtual-environments/issues/4856,
`windows-latest` will default to `windows-2022` soon (not later than
March, 6). Since it seems like we still run on `windows-2019`, force the
migration by specifying `windows-2022` explicitly.

Since https://github.com/actions/virtual-environments/pull/5050 is
merged, this should fix the failing Web tests on mismatched Chrome and
chromedriver versions.

TODO: Once `windows-latest` defaults to `windows-2022` (again, March, 6),
change back to `windows-latest`.
2022-02-16 22:11:35 -07:00
relrelb 2132f3c9cd ci: Skip `publish-aur-package` job on forks
Move the `if` condition that tests for the Ruffle official repository
to the job-level, so all steps of that job are skipped, rather than
only the publish step itself. This should have a very little effect,
but I just randomly noticed it.
2022-01-24 12:30:03 -08:00
Mike Welsh cad76ad4fa ci: Fix publishing of Firefox extension
Supply FIREFOX_EXTENSION_ID var to the web build step to ensure
this gets correctly populated in the manifest.json.
2022-01-22 18:38:18 -08:00
Mike Welsh 95ddc06e71 ci: Use macos-11 runner 2022-01-21 18:21:33 -08:00
Mike Welsh 6bffef2550 ci: Publish Chrome and Firefox extensions nightly 2022-01-21 16:19:49 -08:00
relrelb eb52cbd770 ci: Publish npm package before packaging selfhosted
Otherwise `release.zip` is included in the package files.
2022-01-15 11:15:47 -08:00
Mike Welsh 31443cc9e7 chore: Publish npm package publicly 2022-01-14 16:01:23 -08:00
relrelb 38549fdbdf web: Publish NPM package
Publish nightly releases as part of the CI, so Ruffle can be easily
integrated into a website using a CDN (such as jsDelivr). It would
also be easier for websites to keep up-to-date, as NPM auto-updates
the `latest` tag to refer to the latest release.

A dedicated `package.json` is used for the published NPM package,
because `ruffle-selfhosted` depends on the private `ruffle-core`
package, which shouldn't be published.

Also, the `version` field must monotonically increase. So Webpack
auto-fills it to be `0.1.0-nightly.YYYY.MM.DD`. This format satisfies
a couple of needs:
* Newer nightly releases should take precedence over older ones.
* Stable releases (e.g. `1.0.0`) should take precedence over nightly
ones.
2022-01-12 21:24:19 -08:00
TÖRÖK Attila 44e59a0012 web,ci: Only build the vanilla module by default, use it as stand-in for the other
And enable the module that really uses WebAssembly extensions for the
releases by running the new "npm run build:dual-wasm" command, which
sets the ENABLE_WASM_EXTENSIONS=true environment variable.
2022-01-12 11:29:16 -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 755e5456da chore: use node 16 in nightly release as well 2021-10-26 13:21:55 -07:00
Mike Welsh d58ecf0bcf ci: Enable WebGPU support in demo
ruffle.rs should be part of the Chrome WebGPU origin trial, so we
can enable wgpu feature to try it out.

It should gracefully fall back to WebGL when WebGPU is not
available.
2021-10-25 14:00:37 -07:00
Chris Midgley ed5d909026 dev: use '' over "" 2021-10-22 11:11:08 +03:00
Chris Midgley a9b9d04ec3 dev: use env var over secret 2021-10-21 01:06:04 -07:00
Chris Midgley 4a99dbccba
ci: stop trying to sign Firefox extension again
Skip signing step if extension id secret is unset
2021-10-20 11:15:08 -07:00
Chris Midgley e0b2288005
dev: Set Firefox min version to try to help with signing
* dev: set min Firefox version to 91.1.0
* Revert "dev: don't even try to sign firefox ext"
2021-10-17 11:31:03 -07:00
Chris Midgley f37730153a dev: only try to push demo, docs and aur on base repo 2021-10-12 17:22:34 -07:00
Chris Midgley b0fec2c2cb dev: don't even try to sign firefox ext 2021-10-09 18:06:47 +02:00
relrelb eb51e9b59a ci: Bump KSXGitHub/github-actions-deploy-aur 2021-09-25 13:40:59 +03:00
Chris Midgley 898d8df9a8 fix: firefox_unsigned, not firefox-unsigned 2021-09-21 20:57:40 +02:00
Chris Midgley dd58bbf17b fix: correct working directory for firefox signing 2021-09-21 20:10:20 +02:00
Chris Midgley 5ee34ef1ed chore: remove extraneous brackets in if 2021-09-21 20:10:20 +02:00
Chris Midgley 29111db9f3 dev: correct names of steps 2021-09-21 20:10:20 +02:00
Chris Midgley f276712c2c dev: allow for failure of firefox signing in build nightly 2021-09-21 20:10:20 +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 2ff9d93c90 ci: Cleanup quotes
Prefer single quotes over double quotes, and omit them where possible.
2021-08-26 01:07:17 +03: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
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 66b144e49b ci: Run apt-get update
GitHub Actions runners updated to Ubuntu 20.04, so run apt-get
update to ensure we can install our Linux dependencies (namely
libasound2).
2021-05-07 20:05:17 -07:00
Mike Welsh f2256a661b ci: Bump github-actions-deploy-aur
Hopefully fix AUR packaging because archlinux Docker image has
moved.
2021-05-02 15:29:31 -07:00
Mathew Hodson e4fd376c22 ci: Fix typo in macOS build step name 2021-04-26 00:01:42 -07:00
Mike Welsh 3708520952 ci: Refactor nightly release script 2021-04-25 11:47:58 -07:00
Mike Welsh bab2701208 web: Bump wasm-bindgen and js-sys versions 2021-04-16 23:37:23 -07:00
Mike Welsh 7171628b44 ci: Append GitHub build ID instead to extension version
Appending the build date doesn't work (the Mozilla verison format
requires each numeric to be <65536). Use GITHUB_RUN_NUMBER instead,
which increases each time the workflow runs.
2021-04-16 22:17:01 -07:00
Mike Welsh 7e338335bf ci: Allow manual dispatch of release_nightly workflow
Ignore activity check when release_nightly is manually dispatched.
2021-04-16 19:09:18 -07:00
Mike Welsh 0ff9d7d3f5 ci: Add Mozilla add-on secrets to CI environment 2021-04-16 19:09:18 -07:00
Mike Welsh 959bd97e17 ci: Upload signed Firefox add-on to GitHub releases 2021-04-16 12:31:14 -07:00
Mike Welsh 09c6def7f0 docs: Clarify license 2021-02-10 03:16:08 -08:00
relrelb 26d3179afe ci: Fix web build 2021-02-03 11:10:00 -08:00
relrelb 59966348c6 ci: Fix publish AUR package job 2021-02-02 10:58:25 -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