-
Notifications
You must be signed in to change notification settings - Fork 2
59 lines (59 loc) · 1.76 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
name: Anime-Kanri-build
on: ['push']
# tags:
# - 'v[0-9]+.[0-9]+.[0-9]+'
jobs:
build-windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- uses: flutter-actions/setup-flutter@v2
- name: Setup-environment
run: |
Import-Module "$env:ChocolateyInstall/helpers/chocolateyInstaller.psm1"
choco install protoc
cargo install rinf
flutter upgrade
refreshenv
- name: Build-Windows
run: |
flutter pub get
rinf message
flutter build windows --release
build-linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: flutter-actions/setup-flutter@v2
- name: Setup-environment
run: |
sudo apt-get update
sudo apt-get install -y libgtk-3-dev ninja-build libssl-dev
PB_REL="https://github.com/protocolbuffers/protobuf/releases"
curl -LO $PB_REL/download/v3.15.8/protoc-3.15.8-linux-x86_64.zip
unzip protoc-3.15.8-linux-x86_64.zip -d $HOME/.local
export PATH="$PATH:$HOME/.local/bin"
yes | flutter doctor --android-licenses
cargo install rinf
flutter upgrade
- name: Build-Linux
run: |
flutter pub get
rinf message
flutter build linux --release
flutter build apk --release
build-macos:
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
- uses: flutter-actions/setup-flutter@v2
- name: Setup-environment
run: |
brew install protobuf
cargo install rinf
flutter upgrade
- name: Build-Macos
run: |
flutter pub get
rinf message
flutter build macos --release