-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* feat: upload `chainflip-engine` shared libraries to S3 💾 * fix: wait for all build jobs and use correct artifact name 🐛 * chore: use dev bucket 👮 * fix: AWS IAM role ARN 🐛 * chore: set version dynamically * fix: binary path * chore: add dylib files to mainnet pre-release * fix: use `bash` as shell * fix: skip docker * fix: be more precise about versions * chore: use `lib` as S3 path * fix: 🤦♂️ * fix: 🤦♂️ * fix: 🤦♂️ * chore: output raw version cos why not? * fix: 🤦♂️ * fix: AAAAAAAH! 😭 * fix: AAAAAAAH! 😭 * chore: remove debugging statements 🚀 * chore: output raw version cos why not? * chore: remove test step 🧹 * fix: dev apt publish version * Update .github/workflows/_61_upload_engine_shared_libs.yml * Update ci/scripts/extract_version.sh * chore: address PR review comment 👮♂️ * chore: address PR review comment * fix: s3 path 🐛 --------- Co-authored-by: kylezs <kyle@chainflip.io>
- Loading branch information
Showing
7 changed files
with
82 additions
and
3 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
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 |
---|---|---|
@@ -0,0 +1,49 @@ | ||
on: | ||
workflow_call: | ||
|
||
permissions: | ||
id-token: write | ||
contents: read | ||
jobs: | ||
upload: | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- name: Checkout 🛒 | ||
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 | ||
|
||
- name: Download Artifacts 📥 | ||
uses: actions/download-artifact@9bc31d5ccc31df68ecc42ccf4149144866c47d8a | ||
with: | ||
name: chainflip-backend-bin | ||
path: chainflip-backend-bin | ||
|
||
- name: Download M2 binaries 📥 | ||
uses: actions/download-artifact@9bc31d5ccc31df68ecc42ccf4149144866c47d8a | ||
with: | ||
name: chainflip-backend-bin-mac-m2 | ||
path: chainflip-backend-bin-mac-m2 | ||
|
||
- name: Set Version 🔦 | ||
id: version | ||
shell: bash | ||
run: | | ||
chmod +x chainflip-backend-bin/chainflip-node | ||
VERSION=$(./ci/scripts/extract_version.sh "$(./chainflip-backend-bin/chainflip-node --version)" full) | ||
echo "Version: $VERSION" | ||
echo "url_friendly_version=$(echo $VERSION | tr . _)" >> $GITHUB_OUTPUT | ||
- name: Move shared library files 📂 | ||
run: | | ||
mkdir -p /tmp/chainflip-engine-shared-libs/ | ||
mv chainflip-backend-bin/libchainflip_engine_v${{ steps.version.outputs.url_friendly_version }}.so /tmp/chainflip-engine-shared-libs/ | ||
mv chainflip-backend-bin-mac-m2/libchainflip_engine_v${{ steps.version.outputs.url_friendly_version }}.dylib /tmp/chainflip-engine-shared-libs/ | ||
- name: Configure AWS credentials using OIDC 🪪 | ||
uses: aws-actions/configure-aws-credentials@010d0da01d0b5a38af31e9c3470dbfdabdecca3a | ||
with: | ||
aws-region: eu-central-1 | ||
role-to-assume: arn:aws:iam::962042992619:role/chainflip-github-bot | ||
|
||
- name: Upload engine shared libraries S3 🚀 | ||
run: | | ||
aws s3 cp /tmp/chainflip-engine-shared-libs/ s3://repo.chainflip.io/lib/${{ steps.version.outputs.url_friendly_version }}/ --recursive |
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