Skip to content

build(deps): bump dev.chrisbanes.haze:haze from 0.9.0-alpha08 to 0.9.0-beta01 #58

build(deps): bump dev.chrisbanes.haze:haze from 0.9.0-alpha08 to 0.9.0-beta01

build(deps): bump dev.chrisbanes.haze:haze from 0.9.0-alpha08 to 0.9.0-beta01 #58

Workflow file for this run

name: Java CI with Gradle
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
workflow_call:
permissions:
contents: read
jobs:
build:
strategy:
matrix:
include:
- target: iosSimulatorArm64Test
os: macos-latest
- target: desktopTest
os: ubuntu-latest
- target: assembleAndroidTest
os: ubuntu-latest
- target: testDebugUnitTest
os: ubuntu-latest
- target: testReleaseUnitTest
os: ubuntu-latest
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up JDK
uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: '17'
- name: Build with Gradle
uses: gradle/actions/setup-gradle@v4
- name: Run the Test
run: ./gradlew ${{ matrix.target }}
simple:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up JDK
uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: '17'
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v4
- name: Build example app
run: |
echo ${{ secrets.SIGNING_KEY }} | base64 -d > keystore.jks
./gradlew :composeApp:assembleRelease
./gradlew :composeApp:assemble
env:
KEYSTORE_PATH: "../keystore.jks"
KEYSTORE_PASS: ${{ secrets.KEY_STORE_PASSWORD }}
KEY_ALIAS: ${{ secrets.ALIAS }}
KEY_PASSWORD: ${{ secrets.KEY_PASSWORD }}
- name: Upload android artifact
uses: actions/upload-artifact@v4
with:
name: AndroidExampleApp
path: composeApp/build/outputs/apk/release
- name: Find apk
run: |
echo "RELEASE=$(find 'composeApp/build/outputs/apk/release' -name '*.apk')" >> $GITHUB_ENV
echo "DEBUG=$(find 'composeApp/build/outputs/apk/debug' -name '*.apk')" >> $GITHUB_ENV
- name: Post to Telegram ci channel
if: ${{ success() && github.event_name != 'pull_request' && github.ref == 'refs/heads/main' && github.ref_type != 'tag' }}
env:
CHANNEL_ID: ${{ secrets.CHANNEL_ID }}
BOT_TOKEN: ${{ secrets.BOT_TOKEN }}
RELEASE: ${{ env.RELEASE }}
DEBUG: ${{ env.DEBUG }}
run: |
if [ ! -z "${{ secrets.BOT_TOKEN }}" ]; then
event_path=$GITHUB_EVENT_PATH
commit_count=$(jq -r '.commits | length' $event_path)
{ echo -e 'New CI from miuix-kotlin-multiplatform\n'; git log -$commit_count --pretty=format:"%h %s"; } > ${{ github.workspace }}/git_log
ESCAPED="$(cat ${{ github.workspace }}/git_log | gawk '{gsub(/[_*[\]()~`>#+=\|{}.!-]/,"\\\\\\\\&")}1' | sed -e 's|"|\\"|g' -e 's|^[0-9a-z]\+|__&__|' | hexdump -v -e '/1 "%02X"' | sed 's/\(..\)/%\1/g')"
cd ${{ github.workspace }}
curl -v "https://api.telegram.org/bot${BOT_TOKEN}/sendMediaGroup?chat_id=${CHANNEL_ID}&media=%5B%7B%22type%22%3A%22document%22%2C%22media%22%3A%22attach%3A%2F%2Frelease%22%7D%2C%7B%22type%22%3A%22document%22%2C%22media%22%3A%22attach%3A%2F%2Fdebug%22%2C%22caption%22%3A%22${ESCAPED}%22%2C%22parse_mode%22%3A%22MarkdownV2%22%7D%5D" -F release="@$RELEASE" -F debug="@$DEBUG"
fi