Skip to content

Commit

Permalink
hack way to bump up version (#803)
Browse files Browse the repository at this point in the history
follow up to #801
  • Loading branch information
yokofly authored Jul 12, 2024
1 parent 45fe9c5 commit 342729f
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions .github/workflows/release_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,7 @@ jobs:
DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }}

Build_Native_Darwin_arm64:
needs: Build_Linux_X86_64
runs-on: [self-hosted, macOS, ARM64]
env:
build_directory: ${{ github.workspace }}/build
Expand All @@ -248,9 +249,18 @@ jobs:
uses: actions/[email protected]
with:
token: ${{ secrets.GH_PERSONAL_ACCESS_TOKEN }}
fetch-depth: 1
fetch-depth: 0 # Fetch all history including all tags
submodules: true

# Checkout the latest tag
- name: Checkout latest tag
run: |
git fetch --all --tags
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"
# Setup build environment and configure CMake
- name: Create and Configure Build
run: |
Expand All @@ -264,13 +274,6 @@ jobs:
- name: Build with Ninja
run: cmake --build ${{ env.build_directory }}

# Extract the version tag from the cmake configuration
- name: Determine Proton Tag
id: determine_tag
run: |
PROTON_TAG=$(grep "SET(VERSION_DESCRIBE" $GITHUB_WORKSPACE/cmake/autogenerated_versions.txt | sed 's/^.*VERSION_DESCRIBE \(.*\)$/\1/' | sed 's/[) ].*//')
echo "::set-output name=tag_name::$PROTON_TAG"
# Strip the binary to reduce its size and rename it
- name: Strip and Rename binary
run: |
Expand Down

0 comments on commit 342729f

Please sign in to comment.