-
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.
Signed-off-by: Kevin Lefevre <[email protected]>
- Loading branch information
1 parent
b9df58e
commit a3ba5e3
Showing
1 changed file
with
29 additions
and
17 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 |
---|---|---|
|
@@ -35,7 +35,7 @@ jobs: | |
source ${HOME}/.cargo/env | ||
rustup component add rustfmt | ||
rustup update | ||
sudo apt-get -y install libssl-dev libudev-dev pkg-config zlib1g-dev llvm clang cmake make libprotobuf-dev protobuf-compiler | ||
sudo apt-get -y install jq libssl-dev libudev-dev pkg-config zlib1g-dev llvm clang cmake make libprotobuf-dev protobuf-compiler | ||
echo "${HOME}/.cargo/bin" >> $GITHUB_PATH | ||
- uses: actions/checkout@v3 | ||
|
@@ -51,13 +51,19 @@ jobs: | |
- name: Create tarball | ||
run: | | ||
tar cvzf solana-${{ github.event.release.name }}-ubuntu-2204.tgz --directory=${HOME}/.local/share/solana/install/releases/${{ github.event.release.name }}/bin ./ | ||
- uses: echapmanFromBunnings/[email protected] | ||
with: | ||
releaseTag: ${{ github.event.release.name }} | ||
githubToken: ${{ secrets.GITHUB_TOKEN }} | ||
files: | | ||
solana-${{ github.event.release.name }}-ubuntu-2204.tgz | ||
- name: Upload tarball to release | ||
run: | | ||
UPLOAD_URL=$(curl -sH "Authorization: token ${{ secrets.GITHUB_TOKEN }}" "${GITHUB_REPOSITORY}/releases/tags/${{ github.event.release.name }}" \ | ||
| jq -r '.upload_url' | cut -d'{' -f1) | ||
FILE=solana-${{ github.event.release.name }}-ubuntu-2204.tgz | ||
curl -X POST \ | ||
-H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \ | ||
-H "Accept: application/vnd.github.v3+json" \ | ||
-H "Content-Type: $(file -b --mime-type ${FILE})" \ | ||
-H "Content-Length: $(wc -c <${FILE} | xargs)" \ | ||
-T "${FILE}" \ | ||
"${UPLOAD_URL}?name=$(basename ${FILE})" | cat | ||
build-ubuntu-2004: | ||
runs-on: ubuntu-20.04-16-cores | ||
|
@@ -72,7 +78,7 @@ jobs: | |
source ${HOME}/.cargo/env | ||
rustup component add rustfmt | ||
rustup update | ||
sudo apt-get -y install libssl-dev libudev-dev pkg-config zlib1g-dev llvm clang cmake make libprotobuf-dev protobuf-compiler | ||
sudo apt-get -y install jq libssl-dev libudev-dev pkg-config zlib1g-dev llvm clang cmake make libprotobuf-dev protobuf-compiler | ||
echo "${HOME}/.cargo/bin" >> $GITHUB_PATH | ||
- uses: actions/checkout@v3 | ||
|
@@ -87,11 +93,17 @@ jobs: | |
- name: Create tarball | ||
run: | | ||
tar cvzf solana-${{ github.event.release.name }}-ubuntu-2204.tgz --directory=${HOME}/.local/share/solana/install/releases/${{ github.event.release.name }}/bin ./ | ||
- uses: echapmanFromBunnings/[email protected] | ||
with: | ||
releaseTag: ${{ github.event.release.name }} | ||
githubToken: ${{ secrets.GITHUB_TOKEN }} | ||
files: | | ||
solana-${{ github.event.release.name }}-ubuntu-2004.tgz | ||
tar cvzf solana-${{ github.event.release.name }}-ubuntu-2004.tgz --directory=${HOME}/.local/share/solana/install/releases/${{ github.event.release.name }}/bin ./ | ||
- name: Upload tarball to release | ||
run: | | ||
UPLOAD_URL=$(curl -sH "Authorization: token ${{ secrets.GITHUB_TOKEN }}" "${GITHUB_REPOSITORY}/releases/tags/${{ github.event.release.name }}" \ | ||
| jq -r '.upload_url' | cut -d'{' -f1) | ||
FILE=solana-${{ github.event.release.name }}-ubuntu-2004.tgz | ||
curl -X POST \ | ||
-H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \ | ||
-H "Accept: application/vnd.github.v3+json" \ | ||
-H "Content-Type: $(file -b --mime-type ${FILE})" \ | ||
-H "Content-Length: $(wc -c <${FILE} | xargs)" \ | ||
-T "${FILE}" \ | ||
"${UPLOAD_URL}?name=$(basename ${FILE})" | cat |