Skip to content

Commit

Permalink
Multi-plotter support
Browse files Browse the repository at this point in the history
MadMax and BladeBit plotters added
  • Loading branch information
Salvia-Network committed Nov 8, 2021
1 parent 321d2ee commit bab302c
Show file tree
Hide file tree
Showing 4 changed files with 148 additions and 4 deletions.
47 changes: 46 additions & 1 deletion .github/workflows/build-linux-installer-deb.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,47 @@ jobs:
env:
SECRET: "${{ secrets.INSTALLER_UPLOAD_SECRET }}"

# Get the most recent release from chia-plotter-madmax
- uses: actions/github-script@v4
id: 'latest-madmax'
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
result-encoding: string
script: |
const releases = await github.repos.listReleases({
owner: 'Chia-Network',
repo: 'chia-plotter-madmax',
});
return releases.data[0].tag_name;
- name: Get latest madmax plotter
run: |
mkdir "$GITHUB_WORKSPACE/madmax"
wget -O "$GITHUB_WORKSPACE/madmax/salvia_plot" https://github.com/Chia-Network/chia-plotter-madmax/releases/download/${{ steps.latest-madmax.outputs.result }}/chia_plot-${{ steps.latest-madmax.outputs.result }}-x86-64
wget -O "$GITHUB_WORKSPACE/madmax/salvia_plot_k34" https://github.com/Chia-Network/chia-plotter-madmax/releases/download/${{ steps.latest-madmax.outputs.result }}/chia_plot_k34-${{ steps.latest-madmax.outputs.result }}-x86-64
chmod +x "$GITHUB_WORKSPACE/madmax/salvia_plot"
chmod +x "$GITHUB_WORKSPACE/madmax/salvia_plot_k34"
# Get the most recent release from bladebit
- uses: actions/github-script@v4
id: 'latest-bladebit'
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
result-encoding: string
script: |
const releases = await github.repos.listReleases({
owner: 'Chia-Network',
repo: 'bladebit',
});
return releases.data[0].tag_name;
- name: Get latest bladebit plotter
run: |
mkdir "$GITHUB_WORKSPACE/bladebit"
wget -O /tmp/bladebit.tar.gz https://github.com/Chia-Network/bladebit/releases/download/${{ steps.latest-bladebit.outputs.result }}/bladebit-${{ steps.latest-bladebit.outputs.result }}-ubuntu-x86-64.tar.gz
tar -xvzf /tmp/bladebit.tar.gz -C $GITHUB_WORKSPACE/bladebit
chmod +x "$GITHUB_WORKSPACE/bladebit/bladebit"
- name: Run install script
env:
INSTALL_PYTHON_VERSION: ${{ matrix.python-version }}
Expand All @@ -94,10 +135,14 @@ jobs:
sh install.sh
- name: Setup Node 12.x
uses: actions/setup-node@v2.4.0
uses: actions/setup-node@v2.4.1
with:
node-version: '12.x'

- name: Add jq
run: |
sudo apt-get install -y jq
- name: Build .deb package
run: |
. ./activate
Expand Down
43 changes: 42 additions & 1 deletion .github/workflows/build-linux-installer-rpm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,48 @@ jobs:
echo ::set-output name=HAS_SECRET::${HAS_SECRET}
env:
SECRET: "${{ secrets.INSTALLER_UPLOAD_SECRET }}"


# Get the most recent release from chia-plotter-madmax
- uses: actions/github-script@v4
id: 'latest-madmax'
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
result-encoding: string
script: |
const releases = await github.repos.listReleases({
owner: 'Chia-Network',
repo: 'chia-plotter-madmax',
});
return releases.data[0].tag_name;
- name: Get latest madmax plotter
run: |
mkdir "$GITHUB_WORKSPACE/madmax"
wget -O "$GITHUB_WORKSPACE/madmax/salvia_plot" https://github.com/Chia-Network/chia-plotter-madmax/releases/download/${{ steps.latest-madmax.outputs.result }}/chia_plot-${{ steps.latest-madmax.outputs.result }}-x86-64
wget -O "$GITHUB_WORKSPACE/madmax/salvia_plot_k34" https://github.com/Chia-Network/chia-plotter-madmax/releases/download/${{ steps.latest-madmax.outputs.result }}/chia_plot_k34-${{ steps.latest-madmax.outputs.result }}-x86-64
chmod +x "$GITHUB_WORKSPACE/madmax/salvia_plot"
chmod +x "$GITHUB_WORKSPACE/madmax/salvia_plot_k34"
# Get the most recent release from bladebit
- uses: actions/github-script@v4
id: 'latest-bladebit'
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
result-encoding: string
script: |
const releases = await github.repos.listReleases({
owner: 'Chia-Network',
repo: 'bladebit',
});
return releases.data[0].tag_name;
- name: Get latest bladebit plotter
run: |
mkdir "$GITHUB_WORKSPACE/bladebit"
wget -O /tmp/bladebit.tar.gz https://github.com/Chia-Network/bladebit/releases/download/${{ steps.latest-bladebit.outputs.result }}/bladebit-${{ steps.latest-bladebit.outputs.result }}-centos-x86-64.tar.gz
tar -xvzf /tmp/bladebit.tar.gz -C $GITHUB_WORKSPACE/bladebit
chmod +x "$GITHUB_WORKSPACE/bladebit/bladebit"
- name: Run install script
env:
INSTALL_PYTHON_VERSION: ${{ matrix.python-version }}
Expand Down
23 changes: 22 additions & 1 deletion .github/workflows/build-macos-installer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,27 @@ jobs:
p12-file-base64: ${{ secrets.APPLE_DEV_ID_APP }}
p12-password: ${{ secrets.APPLE_DEV_ID_APP_PASS }}

# Get the most recent release from chia-plotter-madmax
- uses: actions/github-script@v4
id: 'latest-madmax'
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
result-encoding: string
script: |
const releases = await github.repos.listReleases({
owner: 'Chia-Network',
repo: 'chia-plotter-madmax',
});
return releases.data[0].tag_name;
- name: Get latest madmax plotter
run: |
mkdir "$GITHUB_WORKSPACE/madmax"
wget -O "$GITHUB_WORKSPACE/madmax/salvia_plot" https://github.com/Chia-Network/chia-plotter-madmax/releases/download/${{ steps.latest-madmax.outputs.result }}/chia_plot-${{ steps.latest-madmax.outputs.result }}-macos-intel
wget -O "$GITHUB_WORKSPACE/madmax/salvia_plot_k34" https://github.com/Chia-Network/chia-plotter-madmax/releases/download/${{ steps.latest-madmax.outputs.result }}/chia_plot_k34-${{ steps.latest-madmax.outputs.result }}-macos-intel
chmod +x "$GITHUB_WORKSPACE/madmax/salvia_plot"
chmod +x "$GITHUB_WORKSPACE/madmax/salvia_plot_k34"
- name: Run install script
id: run_and_export_version
env:
Expand All @@ -94,7 +115,7 @@ jobs:
echo "::set-output name=SALVIA_INSTALLER_VERSION::$(python ./build_scripts/installer-version.py)"
- name: Setup Node 14.x
uses: actions/setup-node@v2.4.0
uses: actions/setup-node@v2.4.1
with:
node-version: '14.x'

Expand Down
39 changes: 38 additions & 1 deletion .github/workflows/build-windows-installer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,44 @@ jobs:
echo "$env:SALVIA_INSTALLER_VERSION"
echo "::set-output name=SALVIA_INSTALLER_VERSION::$env:SALVIA_INSTALLER_VERSION"
deactivate
# Get the most recent release from chia-plotter-madmax
- uses: actions/github-script@v4
id: 'latest-madmax'
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
result-encoding: string
script: |
const releases = await github.repos.listReleases({
owner: 'Chia-Network',
repo: 'chia-plotter-madmax',
});
return releases.data[0].tag_name;
- name: Get latest madmax plotter
run: |
mkdir "$env:GITHUB_WORKSPACE\madmax"
Invoke-WebRequest https://github.com/Chia-Network/chia-plotter-madmax/releases/download/${{ steps.latest-madmax.outputs.result }}/chia_plot-${{ steps.latest-madmax.outputs.result }}.exe -OutFile "$env:GITHUB_WORKSPACE\madmax\salvia_plot.exe"
Invoke-WebRequest https://github.com/Chia-Network/chia-plotter-madmax/releases/download/${{ steps.latest-madmax.outputs.result }}/chia_plot_k34-${{ steps.latest-madmax.outputs.result }}.exe -OutFile "$env:GITHUB_WORKSPACE\madmax\salvia_plot_k34.exe"
# Get the most recent release from bladebit
- uses: actions/github-script@v4
id: 'latest-bladebit'
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
result-encoding: string
script: |
const releases = await github.repos.listReleases({
owner: 'Chia-Network',
repo: 'bladebit',
});
return releases.data[0].tag_name;
- name: Get latest bladebit plotter
run: |
mkdir "$env:GITHUB_WORKSPACE\bladebit"
Invoke-WebRequest https://github.com/Chia-Network/bladebit/releases/download/${{ steps.latest-bladebit.outputs.result }}/bladebit-${{ steps.latest-bladebit.outputs.result }}-windows-x86-64.zip -OutFile "$env:GITHUB_WORKSPACE\bladebit\bladebit.zip"
Expand-Archive -Path "$env:GITHUB_WORKSPACE\bladebit\bladebit.zip" -DestinationPath "$env:GITHUB_WORKSPACE\bladebit\"
rm "$env:GITHUB_WORKSPACE\bladebit\bladebit.zip"
- name: Build Windows installer with build_scripts\build_windows.ps1
env:
WIN_CODE_SIGN_PASS: ${{ secrets.WIN_CODE_SIGN_PASS }}
Expand Down

0 comments on commit bab302c

Please sign in to comment.