Skip to content

Commit

Permalink
fix: add CXXFLAGS to allow git-crypt to build on ubuntu-22.04
Browse files Browse the repository at this point in the history
See: AGWA/git-crypt#232

Signed-off-by: Markus Maga <markus@maga.se>
  • Loading branch information
Flydiverny committed Dec 5, 2022
1 parent 1811132 commit c2fdf2a
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
3 changes: 2 additions & 1 deletion dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

6 changes: 5 additions & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,11 @@ async function run(): Promise<void> {
core.info(`Extracted ${downloaded} to ${extractedPath}`)

await exec.getExecOutput('make', ['install', `PREFIX=${extractedPath}`], {
cwd: workspace
cwd: workspace,
env: {
...process.env,
CXXFLAGS: '-DOPENSSL_API_COMPAT=0x30000000L'
}
})

toolPath = await tc.cacheDir(
Expand Down

0 comments on commit c2fdf2a

Please sign in to comment.