forked from Chia-Network/chia-blockchain
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add install action (Chia-Network#12075)
* add install action * add the actual action file * update pre-commit to use the install action * add prefix for arch -arm64 use * typo * outputs: * copy paste correction * false * hmm * there * if ("$env:INSTALL_PYTHON_VERSION" -ne "")
- Loading branch information
Showing
11 changed files
with
98 additions
and
68 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 |
---|---|---|
@@ -0,0 +1,36 @@ | ||
name: "Install chia-blockchain" | ||
|
||
description: "Run the platform appropriate installer script." | ||
|
||
inputs: | ||
python-version: | ||
description: "Value to be set for INSTALL_PYTHON_VERSION." | ||
required: false | ||
default: "" | ||
development: | ||
description: "Install development dependencies." | ||
required: false | ||
default: "" | ||
command-prefix: | ||
description: "Text to place before the command such as `arch -arm64` for non-native macOS runners." | ||
required: false | ||
default: "" | ||
|
||
runs: | ||
using: "composite" | ||
steps: | ||
- name: Run install script (macOS, Ubuntu) | ||
if: runner.os == 'macos' || runner.os == 'linux' | ||
shell: bash | ||
env: | ||
INSTALL_PYTHON_VERSION: ${{ inputs.python-version }} | ||
run: | | ||
${{ inputs.command-prefix }} sh install.sh ${{ inputs.development && '-d' || '' }} | ||
- name: Run install script (Windows) | ||
if: runner.os == 'windows' | ||
shell: pwsh | ||
env: | ||
INSTALL_PYTHON_VERSION: ${{ inputs.python-version }} | ||
run: | | ||
${{ inputs.command-prefix }} ./Install.ps1 ${{ inputs.development && '-d' || '' }} |
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
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
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
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 |
---|---|---|
|
@@ -19,8 +19,11 @@ jobs: | |
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- uses: actions/setup-python@v3 | ||
- name: Run install script | ||
run: | | ||
sh install.sh -d | ||
|
||
- uses: ./.github/actions/install | ||
with: | ||
development: true | ||
|
||
- uses: pre-commit/[email protected] |
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
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