Skip to content

Commit

Permalink
Move before script before sccache setup (#264)
Browse files Browse the repository at this point in the history
  • Loading branch information
orf authored May 10, 2024
1 parent 52b28ab commit b49dce4
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -590,15 +590,6 @@ async function dockerBuild(
'echo "::endgroup::"'
)
}
if (sccache) {
commands.push(
'echo "::group::Install sccache"',
'python3 -m pip install "sccache>=0.4.0"',
'sccache --version',
'echo "::endgroup::"'
)
setupSccacheEnv()
}

const beforeScript = getBeforeScript()
if (beforeScript.length > 0) {
Expand All @@ -609,6 +600,16 @@ async function dockerBuild(
)
}

if (sccache) {
commands.push(
'echo "::group::Install sccache"',
'python3 -m pip install "sccache>=0.4.0"',
'sccache --version',
'echo "::endgroup::"'
)
setupSccacheEnv()
}

commands.push(`maturin ${args.join(' ')}`)
if (sccache) {
commands.push(
Expand Down

0 comments on commit b49dce4

Please sign in to comment.