Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

speed up github action compile #18

Merged
merged 12 commits into from
Feb 10, 2023
Merged

speed up github action compile #18

merged 12 commits into from
Feb 10, 2023

Conversation

Tlntin
Copy link
Contributor

@Tlntin Tlntin commented Feb 9, 2023

Support manual release test in github actions

  1. Change the Docker compilation of aarch64 to cross-platform compilation to speed up compilation.
  2. It supports cargo cache and target folder compilation process cache to speed up compilation.

How to use test action ?

  • click Acions
  • click Test App With Cache
  • click Run workflow.
    image

Note:

  • The first compilation takes about 7 minutes. After successful compilation, a cache based on the master branch will be generated, so it only takes about 1-3 minutes to compile again.
  • When you compile success, go to Releases, you will see a tag Continuous with pre-release type.
  • After you test the compiled product, it is recommended that you delete the test tag, otherwise the compiled result will not be uploaded due to the duplicate name in the next test。
 git push origin :refs/tags/continuous
  • Publish.yaml will automatically use the cache stored in the master branch by test.yaml.
    However, it can only use cache instead of generating cache. Because the cache cannot be shared when the tag is different, but the tag branch can use the cache of the master branch.

Log

Current bugs

Windows cannot read the tag version number, so after you release the official version, rename the binary file of Windows manually and add a version number to it.

@solidiquis solidiquis merged commit 6b0d84d into solidiquis:master Feb 10, 2023
@solidiquis
Copy link
Owner

Fantastic, thanks again @Tlntin for so kindly putting this together <3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants