Add gradle and flutter wrapper tasks to kradle script. #83
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build and publish native executable kradlew | |
on: [push] | |
jobs: | |
build: | |
strategy: | |
matrix: | |
os: [macos-latest, windows-latest, ubuntu-latest] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-java@v2 | |
with: | |
distribution: 'zulu' | |
java-version: '17' | |
- uses: subosito/flutter-action@v2 | |
with: | |
flutter-version: '3.10.6' | |
channel: 'stable' | |
- name: Install dependencies | |
run: dart pub get | |
- name: Build executable | |
run: dart compile exe bin/kradle.dart -o kradle | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: kradle-${{ matrix.os }} | |
path: kradle |