LongYinan
e5f8a58330
ci: refactor workflow ( #5139 )
...
Merge tests job into single one, reuse job as much as possible
2023-12-06 08:03:05 +00:00
LongYinan
6fca1b43f0
chore: add rust-toolchain file ( #5129 )
2023-11-29 10:11:38 +00:00
LongYinan
feddfdc5c9
ci: upgrade setup-node action ( #5125 )
2023-11-29 10:11:32 +00:00
LongYinan
42f4045ad6
chore: adjust the request memory size and replica count ( #5046 )
2023-11-24 06:19:38 +00:00
LongYinan
3499dbbb7f
feat: upgrade dependencies and lockfile ( #5016 )
...
- Close https://github.com/toeverything/AFFiNE/security/dependabot/47
2023-11-23 05:18:05 +00:00
Peng Xiao
3839a9bd15
build(electron): asar ( #4965 )
...
Due to restrictions on how Electron package works, the `node_modules` should not be hoisted and not to use s/h-links at all. This is why we need to have two separate installs for electron and non-electron packages in the build.
Tested via the following script
```bash
#!/bin/bash
echo "step 1: clean up"
find . -name "node_modules" -prune -exec rm -rf '{}' +
# git clean -dfX
build_type=canary
echo "step 2: install web dependencies"
# firstly, build web static
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD=1 SENTRYCLI_SKIP_DOWNLOAD=1 PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD=1 HUSKY=1 yarn
echo "step 3: generate assets"
BUILD_TYPE="$build_type" yarn workspace @affine/electron generate-assets
# cleanup node_modules
find . -name "node_modules" -prune -exec rm -rf '{}' +
echo "step 4: install electron dependencies"
# install electron deps
yarn config set nmHoistingLimits workspaces
yarn config set enableScripts false
yarn config set nmMode classic
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD=1 HUSKY=0 yarn workspaces focus @affine/electron @affine/monorepo
echo "step 5: build native"
# build native
yarn workspace @affine/native build
yarn workspace @affine/storage build
echo "step 6: build electron"
# build electron
yarn workspace @affine/electron build
echo "step 7: package electron"
# package
SKIP_GENERATE_ASSETS=1 BUILD_TYPE="$build_type" HOIST_NODE_MODULES=1 yarn workspace @affine/electron package
```
2023-11-21 17:44:30 +00:00
LongYinan
703fad6a0d
ci: prevent error if rust build is cached by nx ( #4951 )
...
If Rust build was cached by nx, only the output file will be presented. The chmod command will be failed in this case like: https://github.com/toeverything/AFFiNE/actions/runs/6874496337/job/18697360212
2023-11-16 21:57:22 +08:00
LongYinan
927a6489f9
ci: adjust the beta cluster configuration
2023-11-10 00:22:45 +08:00
LongYinan
839f500979
ci: disable postinstall on macOS build ( #4885 )
2023-11-09 11:58:55 +00:00
Joooye_34
a8bff81a7e
ci: use resolutions to resolve building error in mac-os ( #4878 )
2023-11-09 02:43:47 +00:00
Joooye_34
6fcdb05925
chore(server): add stripe env
2023-10-31 00:12:17 +08:00
LongYinan
b13705ba3d
ci: remove setup-maker to reduce release duration ( #4710 )
2023-10-24 10:09:40 +00:00
DarkSky
63ca9671be
feat: add captcha support for sign in/up ( #4582 )
2023-10-18 08:06:07 +00:00
LongYinan
e831f612e8
fix(electron): release desktop app workflow ( #4594 )
2023-10-17 06:15:55 +00:00
LongYinan
dd94ea5b45
ci: speedup ci by reduce installation packages in certain job ( #4457 )
2023-09-29 03:02:26 +00:00
LongYinan
e76cdf4d71
fix(server): set right AFFINE_SERVER_HOST env variable ( #4108 )
2023-09-01 18:37:48 +08:00
Peng Xiao
3ef0db7512
fix: add arch key to setup-node cached files ( #4016 )
2023-08-29 16:36:21 +00:00
LongYinan
54574e5cc3
fix(server): signup/signin logic ( #4008 )
2023-08-29 19:22:56 +08:00
Alex Yang
2f6c4e3696
feat!: affine cloud support ( #3813 )
...
Co-authored-by: Hongtao Lye <codert.sn@gmail.com >
Co-authored-by: liuyi <forehalo@gmail.com >
Co-authored-by: LongYinan <lynweklm@gmail.com >
Co-authored-by: X1a0t <405028157@qq.com >
Co-authored-by: JimmFly <yangjinfei001@gmail.com >
Co-authored-by: Peng Xiao <pengxiao@outlook.com >
Co-authored-by: xiaodong zuo <53252747+zuoxiaodong0815@users.noreply.github.com >
Co-authored-by: DarkSky <25152247+darkskygit@users.noreply.github.com >
Co-authored-by: Qi <474021214@qq.com >
Co-authored-by: danielchim <kahungchim@gmail.com >
2023-08-29 05:07:05 -05:00
Alex Yang
dd60106b5d
Revert "ci: retry install three times ( #3924 )"
...
This reverts commit 4a003878e2 .
2023-08-23 16:52:34 -05:00
Alex Yang
4a003878e2
ci: retry install three times ( #3924 )
2023-08-23 13:22:04 -05:00
Alex Yang
bf00299bc7
ci: do not build core in e2e test ( #3882 )
2023-08-21 18:36:39 -05:00
Alex Yang
4bb874756d
refactor: lazy download macos maker ( #3564 )
2023-08-03 17:58:42 -07:00
Alex Yang
47ff376195
ci: improve download @sentry/cli ( #3560 )
2023-08-03 17:26:30 +00:00
Alex Yang
f007e2cecb
ci: fix setup maker ( #3519 )
2023-08-02 05:03:05 +00:00
Alex Yang
1b17743ed3
feat: custom maker dmg ( #3501 )
2023-08-01 19:20:29 +00:00
Alex Yang
dfbec46ded
feat(electron): move preload to infra ( #3011 )
2023-07-04 16:43:30 +00:00
LongYinan
bacd00655d
ci: reduce yarn cache ( #2983 )
2023-07-03 11:09:17 +00:00
Alex Yang
9fda82564b
ci: chmod 777 on output directory
2023-06-30 17:39:11 +08:00
liuyi
2c95bfcc3d
feat(storage): binding jwst storage to node ( #2808 )
2023-06-29 01:45:45 +00:00
Alex Yang
20fd9b6574
feat: upload 0.7.0-canary.18 static output ( #2883 )
2023-06-28 03:10:08 +08:00
LongYinan
dd58b1bbf6
build: docker images ( #2860 )
2023-06-27 17:23:19 +08:00
DarkSky
cd7892b7ed
chore: update nx cloud read only token ( #2821 )
2023-06-19 17:38:26 +08:00
Alex Yang
0e01094ffd
ci: use nx on rust build ( #2811 )
2023-06-17 17:49:07 +08:00
Himself65
eeb536d460
feat: use nx to manage monorepo ( #2748 )
2023-06-10 00:46:24 +08:00
Himself65
f2ac2e5b84
feat: isolated plugin system ( #2742 )
2023-06-09 16:43:46 +08:00
LongYinan
d28c887237
feat(native): move sqlite operation into Rust ( #2497 )
...
Co-authored-by: Peng Xiao <pengxiao@outlook.com >
2023-06-07 14:52:19 +08:00
LongYinan
93116c24f2
feat(electron): use affine native ( #2329 )
2023-05-17 12:36:51 +08:00
LongYinan
768e55072d
ci: rust build config
2023-05-11 14:41:51 +08:00
Himself65
18223c22ef
test(server): migrate to node internal test ( #2000 )
2023-04-18 00:07:03 -05:00
hehe
54a30bbf20
chore: remove absolete module-resolve ( #1991 )
2023-04-17 15:02:22 +00:00
Himself65
dbbc05e5f0
test: improve coverage on affine api ( #1727 )
2023-03-28 12:42:40 -05:00
Peng Xiao
5a508b1fe4
fix: windows rust cache ( #1710 )
2023-03-28 05:25:16 +00:00
Himself65
f478c9ce9e
ci: disable playwright install by default ( #1715 )
2023-03-27 23:21:51 -05:00
Himself65
7fb5b1f65b
ci: disable electron workspace by default ( #1713 )
2023-03-28 04:02:57 +00:00
himself65
f00eda2568
ci: fix working-directory
2023-03-27 22:31:36 -05:00
himself65
bf85db1952
feat: move electron a single package
2023-03-27 22:30:03 -05:00
himself65
2fba1fa7c8
ci: speed up yarn install
2023-03-27 19:28:05 -05:00
himself65
93fd8aedb3
ci: setup cache for yarn
2023-03-27 18:09:48 -05:00
Himself65
66dec34209
ci: reduce unused steps ( #1696 )
2023-03-27 00:15:04 -05:00