update checkout action and change release name
to include git log depth for better sorting in the release page
This commit is contained in:
		
							
								
								
									
										29
									
								
								.github/workflows/cd.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										29
									
								
								.github/workflows/cd.yml
									
									
									
									
										vendored
									
									
								
							@@ -17,7 +17,7 @@ jobs:
 | 
			
		||||
    runs-on: ubuntu-24.04
 | 
			
		||||
 | 
			
		||||
    steps:
 | 
			
		||||
    - uses: actions/checkout@v4
 | 
			
		||||
    - uses: actions/checkout@v5
 | 
			
		||||
      with:
 | 
			
		||||
        submodules: recursive
 | 
			
		||||
        fetch-depth: 0
 | 
			
		||||
@@ -37,8 +37,9 @@ jobs:
 | 
			
		||||
      # taken from llama.cpp
 | 
			
		||||
      run: |
 | 
			
		||||
        SHORT_HASH="$(git rev-parse --short=7 HEAD)"
 | 
			
		||||
        DEPTH="$(git rev-list --count HEAD)"
 | 
			
		||||
        if [[ "${{ env.BRANCH_NAME }}" == "master" ]]; then
 | 
			
		||||
          echo "name=dev-${SHORT_HASH}" >> $GITHUB_OUTPUT
 | 
			
		||||
          echo "name=dev-${DEPTH}-${SHORT_HASH}" >> $GITHUB_OUTPUT
 | 
			
		||||
        else
 | 
			
		||||
          SAFE_NAME=$(echo "${{ env.BRANCH_NAME }}" | tr '/' '-')
 | 
			
		||||
          echo "name=dev-${SAFE_NAME}-${SHORT_HASH}" >> $GITHUB_OUTPUT
 | 
			
		||||
@@ -78,12 +79,12 @@ jobs:
 | 
			
		||||
            ndk_abi: x86_64
 | 
			
		||||
 | 
			
		||||
    steps:
 | 
			
		||||
    - uses: actions/checkout@v4
 | 
			
		||||
    - uses: actions/checkout@v5
 | 
			
		||||
      with:
 | 
			
		||||
        submodules: recursive
 | 
			
		||||
        fetch-depth: 0
 | 
			
		||||
 | 
			
		||||
    - uses: actions/checkout@v4
 | 
			
		||||
    - uses: actions/checkout@v5
 | 
			
		||||
      with:
 | 
			
		||||
        repository: 'Green-Sky/vcpkg_android_triplets'
 | 
			
		||||
        path: 'vcpkg_android_triplets'
 | 
			
		||||
@@ -144,8 +145,9 @@ jobs:
 | 
			
		||||
      # taken from llama.cpp
 | 
			
		||||
      run: |
 | 
			
		||||
        SHORT_HASH="$(git rev-parse --short=7 HEAD)"
 | 
			
		||||
        DEPTH="$(git rev-list --count HEAD)"
 | 
			
		||||
        if [[ "${{ env.BRANCH_NAME }}" == "master" ]]; then
 | 
			
		||||
          echo "name=dev-${SHORT_HASH}" >> $GITHUB_OUTPUT
 | 
			
		||||
          echo "name=dev-${DEPTH}-${SHORT_HASH}" >> $GITHUB_OUTPUT
 | 
			
		||||
        else
 | 
			
		||||
          SAFE_NAME=$(echo "${{ env.BRANCH_NAME }}" | tr '/' '-')
 | 
			
		||||
          echo "name=dev-${SAFE_NAME}-${SHORT_HASH}" >> $GITHUB_OUTPUT
 | 
			
		||||
@@ -178,7 +180,7 @@ jobs:
 | 
			
		||||
      contents: read
 | 
			
		||||
 | 
			
		||||
    steps:
 | 
			
		||||
    - uses: actions/checkout@v4
 | 
			
		||||
    - uses: actions/checkout@v5
 | 
			
		||||
      with:
 | 
			
		||||
        submodules: recursive
 | 
			
		||||
        fetch-depth: 0
 | 
			
		||||
@@ -226,8 +228,9 @@ jobs:
 | 
			
		||||
      # taken from llama.cpp
 | 
			
		||||
      run: |
 | 
			
		||||
        SHORT_HASH="$(git rev-parse --short=7 HEAD)"
 | 
			
		||||
        DEPTH="$(git rev-list --count HEAD)"
 | 
			
		||||
        if [[ "${{ env.BRANCH_NAME }}" == "master" ]]; then
 | 
			
		||||
          echo "name=dev-${SHORT_HASH}" >> $GITHUB_OUTPUT
 | 
			
		||||
          echo "name=dev-${DEPTH}-${SHORT_HASH}" >> $GITHUB_OUTPUT
 | 
			
		||||
        else
 | 
			
		||||
          SAFE_NAME=$(echo "${{ env.BRANCH_NAME }}" | tr '/' '-')
 | 
			
		||||
          echo "name=dev-${SAFE_NAME}-${SHORT_HASH}" >> $GITHUB_OUTPUT
 | 
			
		||||
@@ -275,9 +278,10 @@ jobs:
 | 
			
		||||
      contents: write
 | 
			
		||||
 | 
			
		||||
    steps:
 | 
			
		||||
    - uses: actions/checkout@v4
 | 
			
		||||
    - uses: actions/checkout@v5
 | 
			
		||||
      with:
 | 
			
		||||
        submodules: recursive
 | 
			
		||||
        fetch-depth: 0
 | 
			
		||||
 | 
			
		||||
    - name: Determine tag name
 | 
			
		||||
      id: tag
 | 
			
		||||
@@ -285,8 +289,9 @@ jobs:
 | 
			
		||||
      # taken from llama.cpp
 | 
			
		||||
      run: |
 | 
			
		||||
        SHORT_HASH="$(git rev-parse --short=7 HEAD)"
 | 
			
		||||
        DEPTH="$(git rev-list --count HEAD)"
 | 
			
		||||
        if [[ "${{ env.BRANCH_NAME }}" == "master" ]]; then
 | 
			
		||||
          echo "name=dev-${SHORT_HASH}" >> $GITHUB_OUTPUT
 | 
			
		||||
          echo "name=dev-${DEPTH}-${SHORT_HASH}" >> $GITHUB_OUTPUT
 | 
			
		||||
        else
 | 
			
		||||
          SAFE_NAME=$(echo "${{ env.BRANCH_NAME }}" | tr '/' '-')
 | 
			
		||||
          echo "name=dev-${SAFE_NAME}-${SHORT_HASH}" >> $GITHUB_OUTPUT
 | 
			
		||||
@@ -347,9 +352,10 @@ jobs:
 | 
			
		||||
      contents: write
 | 
			
		||||
 | 
			
		||||
    steps:
 | 
			
		||||
    - uses: actions/checkout@v4
 | 
			
		||||
    - uses: actions/checkout@v5
 | 
			
		||||
      with:
 | 
			
		||||
        submodules: recursive
 | 
			
		||||
        fetch-depth: 0
 | 
			
		||||
 | 
			
		||||
    - name: Determine tag name
 | 
			
		||||
      id: tag
 | 
			
		||||
@@ -357,8 +363,9 @@ jobs:
 | 
			
		||||
      # taken from llama.cpp
 | 
			
		||||
      run: |
 | 
			
		||||
        SHORT_HASH="$(git rev-parse --short=7 HEAD)"
 | 
			
		||||
        DEPTH="$(git rev-list --count HEAD)"
 | 
			
		||||
        if [[ "${{ env.BRANCH_NAME }}" == "master" ]]; then
 | 
			
		||||
          echo "name=dev-${SHORT_HASH}" >> $GITHUB_OUTPUT
 | 
			
		||||
          echo "name=dev-${DEPTH}-${SHORT_HASH}" >> $GITHUB_OUTPUT
 | 
			
		||||
        else
 | 
			
		||||
          SAFE_NAME=$(echo "${{ env.BRANCH_NAME }}" | tr '/' '-')
 | 
			
		||||
          echo "name=dev-${SAFE_NAME}-${SHORT_HASH}" >> $GITHUB_OUTPUT
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user