ReliabilityReleaseLinuxX64 #18
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
name: ReliabilityReleaseLinuxX64 | |
on: | |
workflow_dispatch: | |
jobs: | |
reliability-release-linux-x64: | |
runs-on: ubuntu-latest | |
container: | |
image: dockbuild/ubuntu1604:latest | |
steps: | |
- name: Install Tools | |
run: | | |
apt update | |
apt install -y jq zip | |
- name: Checkout code | |
run: git clone --depth=1 https://github.com/holochain/reliability.git | |
- name: Print Glibc Version | |
run: ldd --version ldd | |
- name: Install Rust | |
run: curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- --profile minimal -y | |
- name: Build reliability | |
run: | | |
cd reliability | |
PATH=~/.cargo/bin:$(pwd)/go/bin:$PATH cargo build --release | |
cp target/release/reliability . | |
zip ../reliability-linux-x64-v0.0.1.zip reliability | |
- name: Print reliability ldd | |
run: ldd reliability/target/release/reliability | |
- name: Create Release | |
id: create_release | |
run: | | |
curl -L -X POST -H "Accept: application/vnd.github+json" -H "Authorization: Bearer ${{ github.token }}" -H "X-GitHub-Api-Version: 2022-11-28" https://api.github.com/repos/holochain/reliability/releases -d '{"tag_name":"v0.0.1","target_commitish":"main","name":"v0.0.1","body":"Release v0.0.1","draft":false,"prerelease":false,"generate_release_notes":false}' | tee release.json | |
cat release.json | jq .id > release.id | |
echo PRINTING RELEASE ID | |
cat release.id | |
echo PRINTED RELEASE ID | |
echo "release_id=$(cat release.id)\n" >> $GITHUB_OUTPUT | |
- name: Upload Artifact | |
run: | | |
curl -L -X POST -H "Accept: application/vnd.github+json" -H "Authorization: Bearer ${{ github.token }}" -H "X-GitHub-Api-Version: 2022-11-28" -H "Content-Type: application/octet-stream" "https://uploads.github.com/repos/holochain/reliability/releases/${{ steps.create_release.outputs.release_id }}/assets?name=reliability-linux-x64-v0.0.1.zip" --data-binary "@reliability-linux-x64-v0.0.1.zip" |