forked from shiosyakeyakini-info/miria
-
Notifications
You must be signed in to change notification settings - Fork 0
68 lines (59 loc) · 1.97 KB
/
deb_deploy.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
60
61
62
63
64
65
66
67
68
name: デプロイ(deb)
on:
workflow_dispatch:
release:
types: [published]
env:
APP_NAME: 'miria'
MAINTAINER: '[email protected]'
DESC: 'Miria is Misskey Client App for iOS, Android and many targets which made by Flutter.'
permissions:
contents: write
jobs:
build-debs:
runs-on: ubuntu-latest
steps:
- name: Clone repository
uses: actions/checkout@v4
- name: Get Flutter version from .fvmrc
run: echo "FLUTTER_FVM_VERSION=$(jq -r .flutter .fvmrc)" >> $GITHUB_ENV
- name: Install Flutter
uses: subosito/flutter-action@v2
with:
flutter-version: ${{ env.FLUTTER_FVM_VERSION }}
cache: true
- name: Patch for linux build
run: |
flutter doctor
sudo apt-get update -y
sudo apt-get install -y ninja-build libgtk-3-dev libsecret-1-dev libstdc++-12-dev git meson
git clone https://github.com/mpv-player/mpv-build.git
cd mpv-build
./rebuild -j4
sudo ./install
flutter doctor
- run: flutter pub get
#- run: flutter test
- run: flutter build linux
- name: Get Build Version
run: |
echo "VERSION=$(yq -r '.version' pubspec.yaml)" >> $GITHUB_ENV
- name: move files
run: |
mkdir -p .debpkg/opt/miria
cp -rp ./build/linux/x64/release/bundle/* .debpkg/opt/miria/
- name: Build DEB package
uses: jiro4989/build-deb-action@v3
with:
desc: '${{ env.DESC }}'
package: ${{ env.APP_NAME }}
maintainer: ${{ env.MAINTAINER }}
version: ${{ env.VERSION }}
arch: "amd64"
package_root: ".debpkg"
depends: "libgtk-3-0, libstdc++6, libx11-6, libmpv2, libsecret-1-0"
- uses: actions/upload-artifact@v4
with:
name: artifact-deb
path: |
./*.deb