-
Notifications
You must be signed in to change notification settings - Fork 60
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[CI][test] pin ec2 instance type (#795)
* pin ec2 instance type * fix leftover in release build: Issue 1: Using shasum -a 256 instead of sha256sum Issue 2: Output tag_name not being displayed
- Loading branch information
Showing
2 changed files
with
17 additions
and
15 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -128,7 +128,7 @@ jobs: | |
needs: [Build_Linux_X86_64, Build_Linux_Arm64] | ||
uses: timeplus-io/proton/.github/workflows/run_command.yml@develop | ||
with: | ||
ec2-instance-type: c5.4xlarge | ||
ec2-instance-type: c5.large | ||
ec2-image-id: ami-042a37e33a285c22b | ||
submodules: 'false' | ||
command: | | ||
|
@@ -239,6 +239,7 @@ jobs: | |
DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }} | ||
|
||
Build_Darwin_Arm64: | ||
if: false | ||
uses: timeplus-io/proton/.github/workflows/run_command.yml@develop | ||
with: | ||
ec2-instance-type: c6g.4xlarge | ||
|
@@ -312,7 +313,7 @@ jobs: | |
LATEST_TAG=$(git describe --tags `git rev-list --tags --max-count=1`) | ||
echo "Checking out tag $LATEST_TAG" | ||
git checkout $LATEST_TAG | ||
echo "::set-output name=tag_name::$LATEST_TAG" | ||
echo "LATEST_TAG=$LATEST_TAG" >> $GITHUB_ENV | ||
# Setup build environment and configure CMake | ||
- name: Create and Configure Build | ||
|
@@ -331,7 +332,7 @@ jobs: | |
- name: Strip and Rename binary | ||
run: | | ||
ORIGINAL_BINARY=${{ env.build_directory }}/programs/proton | ||
STRIPPED_BINARY=${{ env.build_directory }}/programs/proton-${{ steps.determine_tag.outputs.tag_name }}-Darwin-arm64-native | ||
STRIPPED_BINARY=${{ env.build_directory }}/programs/proton-${{ env.LATEST_TAG }}-Darwin-arm64 | ||
/opt/homebrew/opt/llvm@17/bin/llvm-strip $ORIGINAL_BINARY -o $STRIPPED_BINARY | ||
# Set up AWS credentials for S3 upload | ||
|
@@ -345,19 +346,20 @@ jobs: | |
# Upload the stripped binary to an AWS S3 bucket | ||
- name: Upload Artifact To S3 | ||
run: | | ||
STRIPPED_BINARY=${{ env.build_directory }}/programs/proton-${{ steps.determine_tag.outputs.tag_name }}-Darwin-arm64-native | ||
STRIPPED_BINARY=${{ env.build_directory }}/programs/proton-${{ env.LATEST_TAG }}-Darwin-arm64 | ||
aws s3 cp --no-progress $STRIPPED_BINARY s3://tp-internal/proton/native_build_macOS/ | ||
# Sha256 for homebrew binary | ||
# Print SHA256 Checksum | ||
- name: Print SHA256 Checksum | ||
run: | | ||
STRIPPED_BINARY=${{ env.build_directory }}/programs/proton-${{ steps.determine_tag.outputs.tag_name }}-Darwin-arm64-native | ||
sha256sum $STRIPPED_BINARY | ||
STRIPPED_BINARY=${{ env.build_directory }}/programs/proton-${{ env.LATEST_TAG }}-Darwin-arm64 | ||
shasum -a 256 $STRIPPED_BINARY | ||
# Release the binary on GitHub Releases with automatic release notes | ||
- name: Release binary | ||
uses: softprops/[email protected] | ||
with: | ||
files: ${{ env.build_directory }}/programs/proton-${{ steps.determine_tag.outputs.tag_name }}-Darwin-arm64-native | ||
files: ${{ env.build_directory }}/programs/proton-${{ env.LATEST_TAG }}-Darwin-arm64 | ||
token: ${{ secrets.GH_PERSONAL_ACCESS_TOKEN }} | ||
generate_release_notes: true | ||
tag_name: ${{ steps.determine_tag.outputs.tag_name }} | ||
tag_name: ${{ env.LATEST_TAG }} |