Skip to content

Commit

Permalink
3.1.0-beta05 - Performance Benchmarks (#115)
Browse files Browse the repository at this point in the history
  • Loading branch information
Nek-12 authored Dec 8, 2024
2 parents d694dbd + e3aad21 commit cde594a
Show file tree
Hide file tree
Showing 98 changed files with 1,531 additions and 489 deletions.
45 changes: 0 additions & 45 deletions .github/ISSUE_TEMPLATE/bug_report.md

This file was deleted.

41 changes: 41 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Bug report
description: Report a bug or an issue with existing features
title: "🐞: "
labels: [ triage ]
assignees: [ Nek-12 ]
type: 'bug'
body:
- type: input
attributes:
label: FlowMVI Version
validations:
required: true
- type: input
attributes:
label: Kotlin Version
validations:
required: true
- type: checkboxes
attributes:
label: Platforms
description: If not sure, select the platform where you reproduced this issue on
options:
- label: 'Android'
- label: 'iOS'
- label: 'macOS'
- label: 'Linux'
- label: 'Windows'
- label: 'JS'
- label: 'Wasm'
- type: checkboxes
attributes:
label: Before you submit
validations:
required: true
options:
- label: 'I have read the FAQ and documentation'
- label: 'I have used search to find similar issues already reported'
- type: textarea
description: Provide more details about what happened. Reproducers or examples will greatly speed up the resolution.
validations:
required: true
27 changes: 0 additions & 27 deletions .github/ISSUE_TEMPLATE/feature_request.md

This file was deleted.

11 changes: 11 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
name: Feature request
description: Request a new feature
title: "🚀: "
labels: [ triage ]
assignees: [ Nek-12 ]
type: 'feature'
body:
- type: textarea
description: What do you want to see being implemented? Code examples will be greatly appreciated.
validations:
required: true
19 changes: 19 additions & 0 deletions .github/ISSUE_TEMPLATE/question.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Ask a question
title: "❔: "
description: Ask a question, request documentation, or something else
labels: [ triage ]
assignees: [ Nek-12 ]
type: 'task'
body:
- type: textarea
description: What do you want to know?
validations:
required: true
- type: checkboxes
attributes:
label: Before you submit
validations:
required: true
options:
- label: 'I have read the FAQ and documentation'
- label: 'I have used search to see if this question has already been answered'
13 changes: 0 additions & 13 deletions .github/ISSUE_TEMPLATE/something-else.md

This file was deleted.

42 changes: 42 additions & 0 deletions .github/workflows/benchmarks.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: CI

on:
push:
branches: [ master ]

jobs:
benchmark:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Copy CI gradle.properties
run: mkdir -p ~/.gradle ; cp .github/ci-gradle.properties ~/.gradle/gradle.properties

- name: set up JDK
uses: actions/setup-java@v4
with:
distribution: 'zulu'
check-latest: true
java-version: 22
cache: 'gradle'

- name: Validate gradle wrapper
uses: gradle/actions/wrapper-validation@v4

- name: Create local properties
env:
LOCAL_PROPERTIES: ${{ secrets.LOCAL_PROPERTIES }}
run: echo "$LOCAL_PROPERTIES" | base64 --decode > local.properties

- name: Cache konan directory
uses: actions/cache@v4
with:
path: ~/.konan
key: ${{ runner.os }}-konan-${{ hashFiles('*.gradle.kts', 'buildSrc/*') }}
restore-keys: |
${{ runner.os }}-konan-
- name: Run benchmarks
run: ./gradlew benchmarks:benchmark
17 changes: 14 additions & 3 deletions .github/workflows/desktop-linux.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,24 @@
name: debugger-linux

on:
push:
branches: [ master ]
workflow_call:
outputs:
debugger:
value: ${{ jobs.publish.outputs.debugger-url }}
sample:
value: ${{ jobs.publish.outputs.sample-url }}

concurrency:
group: "publish-linux"
cancel-in-progress: true

jobs:
publish-windows:
publish:
runs-on: ubuntu-latest
environment: publishing
outputs:
debugger-url: ${{ steps.upload-debugger.outputs.artifact-url }}
sample-url: ${{ steps.upload-sample.outputs.artifact-url }}
steps:
- uses: actions/checkout@v4

Expand Down Expand Up @@ -49,17 +56,21 @@ jobs:
run: ./gradlew sample:packageDistributionForCurrentOS

- name: Upload debugger
id: upload-debugger
uses: actions/[email protected]
with:
name: Debugger_Linux
path: ./debugger/app/build/compose/binaries/main/deb/*
if-no-files-found: error
compression-level: 0
overwrite: false

- name: Upload sample
id: upload-sample
uses: actions/[email protected]
with:
name: Sample_Linux
path: ./sample/build/compose/binaries/main/deb/*
if-no-files-found: error
compression-level: 0
overwrite: false
17 changes: 14 additions & 3 deletions .github/workflows/desktop-macos.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,24 @@
name: debugger-macos

on:
push:
branches: [ master ]
workflow_call:
outputs:
debugger:
value: ${{ jobs.publish.outputs.debugger-url }}
sample:
value: ${{ jobs.publish.outputs.sample-url }}

concurrency:
group: "publish-macos"
cancel-in-progress: true

jobs:
publish-windows:
publish:
runs-on: macos-latest
environment: publishing
outputs:
debugger-url: ${{ steps.upload-debugger.outputs.artifact-url }}
sample-url: ${{ steps.upload-sample.outputs.artifact-url }}
steps:
- uses: actions/checkout@v4

Expand Down Expand Up @@ -49,17 +56,21 @@ jobs:
run: ./gradlew sample:packageDistributionForCurrentOS

- name: Upload debugger
id: upload-debugger
uses: actions/[email protected]
with:
name: Debugger_MacOS
path: ./debugger/app/build/compose/binaries/main/dmg/*
if-no-files-found: error
compression-level: 0
overwrite: false

- name: Upload sample
id: upload-sample
uses: actions/[email protected]
with:
name: Sample_MacOS
path: ./sample/build/compose/binaries/main/dmg/*
if-no-files-found: error
compression-level: 0
overwrite: false
17 changes: 14 additions & 3 deletions .github/workflows/desktop-win.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,24 @@
name: debugger-windows

on:
push:
branches: [ master ]
workflow_call:
outputs:
debugger:
value: ${{ jobs.publish.outputs.debugger-url }}
sample:
value: ${{ jobs.publish.outputs.sample-url }}

concurrency:
group: "publish-win"
cancel-in-progress: true

jobs:
publish-windows:
publish:
runs-on: windows-latest
environment: publishing
outputs:
debugger-url: ${{ steps.upload-debugger.outputs.artifact-url }}
sample-url: ${{ steps.upload-sample.outputs.artifact-url }}
steps:
- uses: actions/checkout@v4

Expand Down Expand Up @@ -50,17 +57,21 @@ jobs:
run: ./gradlew sample:packageDistributionForCurrentOS

- name: Upload debugger
id: upload-debugger
uses: actions/[email protected]
with:
name: Debugger_Windows
path: ./debugger/app/build/compose/binaries/main/exe/*
if-no-files-found: error
compression-level: 0
overwrite: false

- name: Upload sample
id: upload-sample
uses: actions/[email protected]
with:
name: Sample_Windows
path: ./sample/build/compose/binaries/main/exe/*
if-no-files-found: error
compression-level: 0
overwrite: false
14 changes: 14 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,13 @@ concurrency:
cancel-in-progress: true

jobs:
debugger-macos:
uses: ./.github/workflows/desktop-macos.yml
debugger-linux:
uses: ./.github/workflows/desktop-linux.yml
debugger-win:
uses: ./.github/workflows/desktop-win.yml

publish:
runs-on: macos-latest

Expand Down Expand Up @@ -72,6 +79,13 @@ jobs:
commitMode: true
configuration: ".github/changelog_config.json"

- name: Publish new plugin version
run: ./gradlew debugger:ideplugin:publishPlugin --no-configuration-cache
continue-on-error: true # TODO: Remove once verified works
env:
CHANGELOG: ${{steps.build_changelog.outputs.changelog}}

# TODO: Use matrix strat and attach artifacts to the release
- name: Create GH release
uses: ncipollo/[email protected]
id: create_release
Expand Down
Loading

0 comments on commit cde594a

Please sign in to comment.