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

Build Docker image using pre-built executables #2686

Merged
merged 2 commits into from
Jul 10, 2023

Conversation

itchyny
Copy link
Contributor

@itchyny itchyny commented Jul 10, 2023

As suggested by @userdocs in #2665, I fixed the Docker build job to use the pre-built executables. Also I cleaned up the workflow syntax. The entire workflow was tested here and published here. The docker job runs within 30 seconds (compared to 40 minutes with entire emulation in #2652). BTW, I noticed ld: warning: option -s is obsolete and being ignored in macOS build steps. Do we explicitly use the strip or just drop the option? Related PRs: #2665, #2652.

CC: "riscv64-linux-gnu"
CC: riscv64-linux-gnu
- arch: s390x
CC: s390x-linux-gnu
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sorts alphabetically.

- powerpc
- ppc64el
- riscv64
- s390x
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Preference of YAML array.

@@ -97,7 +95,7 @@ jobs:
--with-oniguruma=builtin \
--enable-static \
--enable-all-static
make -j$(nproc)
make -j"$(nproc)"
Copy link
Contributor Author

Choose a reason for hiding this comment

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

For actionlint (shellcheck).

uses: actions/upload-artifact@v3
with:
name: jq-${{ env.SUFFIX }}
name: jq-linux
Copy link
Contributor Author

@itchyny itchyny Jul 10, 2023

Choose a reason for hiding this comment

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

No need to create artifacts separately.

Copy link
Member

@owenthereal owenthereal left a comment

Choose a reason for hiding this comment

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

:shipit:

@owenthereal
Copy link
Member

BTW, I noticed ld: warning: option -s is obsolete and being ignored in macOS build steps. Do we explicitly use the strip or just drop the option?

Hmm...I think we may need an explicit strip for MacOS if that's the case.

@itchyny
Copy link
Contributor Author

itchyny commented Jul 10, 2023

Thank you!

@itchyny itchyny merged commit 841445e into jqlang:master Jul 10, 2023
24 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants