-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (49 loc) · 1.58 KB
/
runnable.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
name: Runnable (stable)
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
test:
name: Analyze on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-latest, windows-latest]
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
components: rustfmt, clippy
- uses: actions/setup-java@v2
with:
distribution: 'adopt'
java-version: '11'
- uses: subosito/flutter-action@v2
with:
channel: 'stable'
- run: flutter pub get
- name: (Linux) Prepare requirements
run: sudo apt update && sudo apt-get install -y libglu1-mesa ninja-build clang cmake pkg-config libgtk-3-dev liblzma-dev
if: runner.os == 'Linux'
- name: (Linux) Integration test
run: cd example && flutter test -d linux integration_test/simple_test.dart
if: runner.os == 'Linux'
- name: (Windows) Prepare requirements
uses: KyleMayes/install-llvm-action@v1
if: runner.os == 'Windows'
with:
version: "15"
- name: (Windows) Integration test
run: cd example && flutter test -d windows integration_test/simple_test.dart
if: runner.os == 'Windows'
- name: (macOS) Integration test
run: cd example && flutter test -d macos integration_test/simple_test.dart
if: runner.os == 'macOS'
- name: Publish dry run
run: dart pub publish --dry-run
if: github.repository == 'AstroxNetwork/ord_dart'