deep-foundation / deep-memo-app

The Unlicense
11 stars 8 forks source link

Fix OS Builds github workflow #138

Closed FreePhoenix888 closed 11 months ago

FreePhoenix888 commented 1 year ago
Description [OS Builds github workflow falls with error](https://github.com/deep-foundation/deep-memo-app/actions/runs/7206567841/job/19631658968)
Questions
Why is `build-electron` script not used before `cd electron` to generate fresh electron folder? `build-electron` script: https://github.com/deep-foundation/deep-memo-app/blob/4552d5a7a712b260a8329a59f22634d1f281fbd4/package.json#L25 Step with `cd electron`: https://github.com/deep-foundation/deep-memo-app/blob/f4228339fcc1310a8c6957b88c9d23ac92f79ad1/.github/workflows/os-builds.yaml#L55-L56
Why `--force` option is used for `npm ci`? https://github.com/deep-foundation/deep-memo-app/blob/f4228339fcc1310a8c6957b88c9d23ac92f79ad1/.github/workflows/os-builds.yaml#L53-L54
FreePhoenix888 commented 11 months ago

Commits I have done:

New error: https://github.com/deep-foundation/deep-memo-app/actions/runs/7206827139/job/19632419281

We have electron-unhandled dependency in both package.json and package-lock.json: https://github.com/deep-foundation/deep-memo-app/blob/52e31e68bceda89f21f29001716a272eefdc87fb/electron/package.json#L33 https://github.com/deep-foundation/deep-memo-app/blob/52e31e68bceda89f21f29001716a272eefdc87fb/electron/package-lock.json#L1834-L1845 But npm ci is executed afteer build-electron. If we move it before build-electron we will get the previous error that tells that package.json and package-lock.json are not syncronized.

Question: What should syncronize package.json and package-lock.json by calling npm install? Developer manually? build-electron script? Should we use npm install instead of npm clean-install in github actions?

FreePhoenix888 commented 11 months ago

Error: https://github.com/deep-foundation/deep-memo-app/actions/runs/7219140330/job/19669641858 Why do we need to pull latest deeplinks from repo? https://github.com/deep-foundation/deep-memo-app/blob/d87b125e92be85c7f9796761f065e1cde35d00d4/.github/workflows/os-builds.yaml#L57-L58

FreePhoenix888 commented 11 months ago

https://github.com/deep-foundation/deep-memo-app/actions/runs/7220293841/job/19672925219

FreePhoenix888 commented 11 months ago

I have fixed linux build: https://github.com/deep-foundation/deep-memo-app/actions/runs/7220828439/job/19674532971

ivansglazunov commented 11 months ago
Description [OS Builds github workflow falls with error](https://github.com/deep-foundation/deep-memo-app/actions/runs/7206567841/job/19631658968)
Questions
Why is `build-electron` script not used before `cd electron` to generate fresh electron folder? `build-electron` script: https://github.com/deep-foundation/deep-memo-app/blob/4552d5a7a712b260a8329a59f22634d1f281fbd4/package.json#L25 Step with `cd electron`: https://github.com/deep-foundation/deep-memo-app/blob/f4228339fcc1310a8c6957b88c9d23ac92f79ad1/.github/workflows/os-builds.yaml#L55-L56
Why `--force` option is used for `npm ci`? https://github.com/deep-foundation/deep-memo-app/blob/f4228339fcc1310a8c6957b88c9d23ac92f79ad1/.github/workflows/os-builds.yaml#L53-L54

Force need for ignore not critical versions conflict

FreePhoenix888 commented 11 months ago

I have fixed mac build: https://github.com/deep-foundation/deep-memo-app/actions/runs/7230652016/job/19702947915

FreePhoenix888 commented 11 months ago

I have fixed windows build: https://github.com/deep-foundation/deep-memo-app/actions/runs/7230860631/job/19703403317

FreePhoenix888 commented 11 months ago

The first release is executed successfully: https://github.com/deep-foundation/deep-memo-app/actions/runs/7230898644 https://github.com/deep-foundation/deep-memo-app/releases/tag/0.0.1-dev.0

FreePhoenix888 commented 11 months ago

There are some hardcoded versions in github workflow, I need to fix that

FreePhoenix888 commented 11 months ago

https://github.com/deep-foundation/deep-memo-app/actions/runs/7231467323 https://github.com/deep-foundation/deep-memo-app/releases/tag/0.0.1-dev.1