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

fix: update workflow to create MbedtlsSizeOf.kt file #57

Merged
merged 2 commits into from
Apr 18, 2024

Conversation

JuhaPekkaa
Copy link
Collaborator

@JuhaPekkaa JuhaPekkaa commented Apr 17, 2024

Problem:
Workflow for updating mbedtls is missing MbedtlsSizeOf.kt

Why?
The compileMbedtlst.sh script to create the file is never executed in the instance where the PR is created, since the downloaded artifacts only contain the binaries.

Solution:
Run the compile script to create the MbedtlsSizeOf.kt file and then remove the binaries
Create a new artifact inside compileMbedtlst.sh and pass the file from there

@JuhaPekkaa JuhaPekkaa requested review from akolosov-n and szysas April 17, 2024 10:01
@JuhaPekkaa JuhaPekkaa requested a review from akolosov-n April 17, 2024 11:18
@@ -37,6 +37,11 @@ jobs:
pull-requests: write
steps:
- uses: actions/checkout@v4
- name: Compile mbedtls
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm. But then this step makes compile-mbedtls job redundant. Can we somehow reuse the outcome of the compile-mbedtls job?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think its redundant since the different platforms require unique configurations for running, maybe pass the .kt from the linux compiler as a separate artifact?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, let's better try this way.

@JuhaPekkaa JuhaPekkaa requested a review from akolosov-n April 18, 2024 08:01
@szysas
Copy link
Contributor

szysas commented Apr 18, 2024

Looks good, still lets test it

@JuhaPekkaa JuhaPekkaa force-pushed the fix-update-workflow branch from 08730b7 to 369dd6f Compare April 18, 2024 08:23
Copy link
Contributor

@szysas szysas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👌

@JuhaPekkaa JuhaPekkaa merged commit 0e6eae4 into master Apr 18, 2024
15 checks passed
@JuhaPekkaa JuhaPekkaa deleted the fix-update-workflow branch April 18, 2024 11:07
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.

3 participants