Skip to content

Commit

Permalink
#26918 Sign the QEMU binary to fix colima starting issue. +5.
Browse files Browse the repository at this point in the history
  • Loading branch information
dcolina authored Dec 26, 2023
1 parent e6c8ee8 commit 942fb49
Showing 1 changed file with 50 additions and 48 deletions.
98 changes: 50 additions & 48 deletions .github/workflows/cli-release-process.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -95,6 +95,8 @@ jobs:
- name: 'Sign the QEMU binary locally'
run: |
brew install qemu
whereis qemu
cat >entitlements.xml <<EOF
<?xml version="1.0" encoding="UTF-8"?>
Expand Down

0 comments on commit 942fb49

Please sign in to comment.