-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: support custom solc version (#6)
* Custom `solc` support for `era-solidity` testing * Add a flag to save `ccache` * Remove `required` from some arguments that have default values
- Loading branch information
1 parent
ad4e310
commit 183ec1f
Showing
3 changed files
with
56 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -44,6 +44,12 @@ inputs: | |
description: 'Type of ccache key: `static` - rotate each month, or `dynamic` - rotate with each update of `LLVM.lock`.' | ||
required: false | ||
default: 'dynamic' | ||
save-ccache: | ||
description: 'Whether to save ccache after the build.' | ||
required: false | ||
default: 'false' | ||
|
||
|
||
runs: | ||
using: "composite" | ||
steps: | ||
|
@@ -85,6 +91,16 @@ runs: | |
shell: 'bash' | ||
run: apt update | ||
|
||
- name: Define ccache save key | ||
id: ccache-save | ||
shell: ${{ runner.os == 'Windows' && 'msys2 {0}' || 'bash' }} | ||
run: | | ||
if [ '${{ inputs.save-ccache }}' = 'true' ]; then | ||
echo "save=true" | tee -a "${GITHUB_OUTPUT}" | ||
else | ||
echo "save=${{ github.event_name == 'push' && !startsWith(github.ref, 'refs/tags/') }}" | tee -a "${GITHUB_OUTPUT}" | ||
fi | ||
- name: Set up compiler cache | ||
uses: hendrikmuhs/[email protected] | ||
env: | ||
|
@@ -97,7 +113,7 @@ runs: | |
append-timestamp: false | ||
max-size: "2G" | ||
verbose: 2 | ||
save: ${{ github.event_name == 'push' && !startsWith(github.ref, 'refs/tags/') }} | ||
save: ${{ steps.ccache-save.outputs.save }} | ||
|
||
# CCACHE_BASEDIR, CCACHE_NOHASHDIR, and CCACHE_COMPILERCHECK | ||
# are allowing to cache compiler output across different | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters