From 942fb495533b0183718c4d0b41c1285b849816a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Enrique=20Colina=20Rodr=C3=ADguez?= Date: Tue, 26 Dec 2023 10:21:11 +0100 Subject: [PATCH] #26918 Sign the QEMU binary to fix colima starting issue. +5. --- .github/workflows/cli-release-process.yml | 98 ++++++++++++----------- 1 file changed, 50 insertions(+), 48 deletions(-) diff --git a/.github/workflows/cli-release-process.yml b/.github/workflows/cli-release-process.yml index be8a3f2179de..e89bffed5773 100644 --- a/.github/workflows/cli-release-process.yml +++ b/.github/workflows/cli-release-process.yml @@ -25,66 +25,66 @@ env: GRAALVM_VERSION: '22.1.0' jobs: - precheck: - name: 'Pre-check' - runs-on: ubuntu-latest - outputs: - RELEASE_VERSION: ${{ steps.version.outputs.RELEASE_VERSION }} - NEXT_VERSION: ${{ steps.version.outputs.NEXT_VERSION }} - HEAD: ${{ steps.version.outputs.HEAD }} - steps: - - name: 'Log GitHub context' - env: - GITHUB_CONTEXT: ${{ toJson(github) }} - run: echo "$GITHUB_CONTEXT" + # precheck: + # name: 'Pre-check' + # runs-on: ubuntu-latest + # outputs: + # RELEASE_VERSION: ${{ steps.version.outputs.RELEASE_VERSION }} + # NEXT_VERSION: ${{ steps.version.outputs.NEXT_VERSION }} + # HEAD: ${{ steps.version.outputs.HEAD }} + # steps: + # - name: 'Log GitHub context' + # env: + # GITHUB_CONTEXT: ${{ toJson(github) }} + # run: echo "$GITHUB_CONTEXT" - - name: 'Checkout' - uses: actions/checkout@v4 + # - name: 'Checkout' + # uses: actions/checkout@v4 - - name: 'Setup Java' - uses: actions/setup-java@v4 - with: - java-version: ${{ env.JAVA_VERSION }} - distribution: ${{ env.JAVA_DISTRO }} + # - name: 'Setup Java' + # uses: actions/setup-java@v4 + # with: + # java-version: ${{ env.JAVA_VERSION }} + # distribution: ${{ env.JAVA_DISTRO }} - - name: 'Get Date' - id: get-date - run: | - echo "date=$(/bin/date -u "+%Y-%m")" >> $GITHUB_OUTPUT - shell: bash + # - name: 'Get Date' + # id: get-date + # run: | + # echo "date=$(/bin/date -u "+%Y-%m")" >> $GITHUB_OUTPUT + # shell: bash - - name: 'Restore Maven Repository' - id: cache-maven - uses: actions/cache@v3 - with: - path: ~/.m2/repository - key: mavencore-${{ steps.get-date.outputs.date }}-${{ github.run_id }} + # - name: 'Restore Maven Repository' + # id: cache-maven + # uses: actions/cache@v3 + # with: + # path: ~/.m2/repository + # key: mavencore-${{ steps.get-date.outputs.date }}-${{ github.run_id }} - - name: 'Setup git config' - run: | - git config user.name "GitHub Actions" - git config user.email "actions@github.com" + # - name: 'Setup git config' + # run: | + # git config user.name "GitHub Actions" + # git config user.email "actions@github.com" - - name: 'Set release version' - id: version - working-directory: ${{ github.workspace }}/tools/dotcms-cli - run: | - RELEASE_VERSION=${{ github.event.inputs.version }} - NEXT_VERSION=${{ env.NEXT_VERSION }} - HEAD=${{ github.ref_name }} + # - name: 'Set release version' + # id: version + # working-directory: ${{ github.workspace }}/tools/dotcms-cli + # run: | + # RELEASE_VERSION=${{ github.event.inputs.version }} + # NEXT_VERSION=${{ env.NEXT_VERSION }} + # HEAD=${{ github.ref_name }} - ./mvnw -B -ntp versions:set versions:commit -DnewVersion=$RELEASE_VERSION + # ./mvnw -B -ntp versions:set versions:commit -DnewVersion=$RELEASE_VERSION - git commit --allow-empty -a -m "🏁 Releasing version $RELEASE_VERSION" - git push origin "$HEAD" + # git commit --allow-empty -a -m "🏁 Releasing version $RELEASE_VERSION" + # git push origin "$HEAD" - echo "RELEASE_VERSION=$RELEASE_VERSION" >> "$GITHUB_OUTPUT" - echo "NEXT_VERSION=$NEXT_VERSION" >> "$GITHUB_OUTPUT" - echo "HEAD=$HEAD" >> "$GITHUB_OUTPUT" + # echo "RELEASE_VERSION=$RELEASE_VERSION" >> "$GITHUB_OUTPUT" + # echo "NEXT_VERSION=$NEXT_VERSION" >> "$GITHUB_OUTPUT" + # echo "HEAD=$HEAD" >> "$GITHUB_OUTPUT" # Build native executable per runner build: - needs: [ precheck ] + # needs: [ precheck ] name: 'Build native image on ${{ matrix.os }}' strategy: fail-fast: true @@ -95,6 +95,8 @@ jobs: - name: 'Sign the QEMU binary locally' run: | brew install qemu + + whereis qemu cat >entitlements.xml <