-
Notifications
You must be signed in to change notification settings - Fork 74
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
follow up to #801
- Loading branch information
Showing
1 changed file
with
11 additions
and
8 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 |
---|---|---|
|
@@ -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 | ||
|
@@ -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: | | ||
|
@@ -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: | | ||
|