Skip to content

Commit d8b9f63

Browse files
authored
Create native_executable.yml
Workflow to build and publish kradlew executable.
1 parent b6fd229 commit d8b9f63

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Build and publish native executable kradlew
2+
on: [push]
3+
jobs:
4+
build:
5+
strategy:
6+
matrix:
7+
os: [macos-latest, windows-latest, ubuntu-latest]
8+
runs-on: ${{ matrix.os }}
9+
steps:
10+
- uses: actions/checkout@v3
11+
- uses: actions/setup-java@v2
12+
with:
13+
distribution: 'zulu'
14+
java-version: '17'
15+
- uses: subosito/flutter-action@v2
16+
with:
17+
flutter-version: '3.10.6'
18+
channel: 'stable'
19+
- name: Install dependencies
20+
run: dart pub get
21+
- name: Build executable
22+
run: dart compile exe bin/kradle.dart -o ./kradlew
23+
- uses: actions/upload-artifact@v4
24+
with:
25+
name: kradlew
26+
path: ./kradlew.exe

0 commit comments

Comments
 (0)