Skip to content

ci: test pkg-config file#3267

Merged
Cyan4973 merged 1 commit intofacebook:devfrom
Tachi107:pkg-config-ci
Sep 22, 2022
Merged

ci: test pkg-config file#3267
Cyan4973 merged 1 commit intofacebook:devfrom
Tachi107:pkg-config-ci

Conversation

@Tachi107
Copy link
Copy Markdown
Contributor

As mentioned in #3252 (comment), this patch adds a CI job that builds and installs libzstd on the job runner, and then compiles a sample binary linking against the installed library; the needed build flags are passed by invoking pkg-config.

As mentioned in
facebook#3252 (comment) ,
this patch adds a CI job that builds and installs libzstd on the job
runner, and then compiles a sample binary linking against the installed
library; the needed build flags are passed by invoking pkg-config.
- name: Install dependencies
run: |
apt -y update
apt -y install --no-install-recommends gcc libc6-dev make pkg-config
Copy link
Copy Markdown
Contributor Author

@Tachi107 Tachi107 Sep 20, 2022

Choose a reason for hiding this comment

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

I've added --no-install-recommends just to speed up the job by a few seconds.
It skips the installation of things like manpages that are not needed on a headless build server.

@Cyan4973
Copy link
Copy Markdown
Contributor

Cyan4973 commented Sep 22, 2022

Thanks for adding this useful CI test @Tachi107 !

The lone CI error is unrelated to this PR, and was recently fixed by @yoniko in #3272

@Cyan4973 Cyan4973 merged commit 43962d7 into facebook:dev Sep 22, 2022
@Tachi107 Tachi107 deleted the pkg-config-ci branch September 22, 2022 19:33
@Tachi107
Copy link
Copy Markdown
Contributor Author

Glad to help!

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.

3 participants