-
Notifications
You must be signed in to change notification settings - Fork 129
41 lines (38 loc) · 1.07 KB
/
ci.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
name: Github Actions
on: [push, pull_request]
defaults:
run:
working-directory: example
jobs:
build_windows:
name: Build Windows
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
with:
submodules: "true"
- uses: subosito/flutter-action@v1
with:
channel: "stable"
- run: flutter config --enable-windows-desktop
- run: flutter pub get
- run: flutter build windows --verbose
- uses: actions/upload-artifact@v1
with:
name: dart_vlc_example
path: example/build/windows/runner/Release
build_linux:
name: Build Linux
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
submodules: "true"
- uses: subosito/flutter-action@v1
with:
channel: "stable"
- run: sudo apt update
- run: sudo apt-get install clang cmake ninja-build pkg-config libgtk-3-dev vlc libvlc-dev
- run: flutter config --enable-linux-desktop
- run: flutter pub get
- run: flutter build linux --verbose