-
-
Notifications
You must be signed in to change notification settings - Fork 1
111 lines (95 loc) · 2.7 KB
/
linux_build.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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
name: Linux Build
on:
pull_request:
types: [opened, synchronize, reopened, ready_for_review]
paths-ignore:
- .github/**
- "!.github/workflows/linux_build.yml"
- "**.md"
- "docs/**"
push:
branches:
- main
paths-ignore:
- .github/**
- "!.github/workflows/linux_build.yml"
- "**.md"
- "docs/**"
env:
BETTER_MEDIA_INFO_VERSION: 0.4.0
MEDIA_INFO_LIB_VERSION: v24.12
jobs:
build_package:
name: Build for Linux x86_64
runs-on: ubuntu-latest
steps:
- name: Set git to use LF
run: |
git config --global core.autocrlf false
git config --global core.eol lf
- name: Checkout the code
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 22
- name: Setup pnpm
uses: pnpm/action-setup@v4
with:
version: 9
- name: Setup Rust
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: stable
- name: Upgrade Ubuntu
run: |
sudo apt-get update
sudo apt-get install -y libwebkit2gtk-4.1-dev librsvg2-dev libsoup-3.0-dev
- name: Build zlib
run: |
cd ..
curl -o zlib.tar.gz https://www.zlib.net/zlib-1.3.1.tar.gz
tar -xzvf zlib.tar.gz
mv zlib-1.3.1 zlib
rm zlib.tar.gz
cd zlib
./configure --static
make -j 4
- name: Build ZenLib
run: |
cd ..
git clone https://github.com/MediaArea/ZenLib.git
cd ZenLib/Project/GNU/Library
./autogen.sh
./configure --enable-static
make -j 4
- name: Build MediaInfoLib
run: |
cd ..
git clone -b ${{ env.MEDIA_INFO_LIB_VERSION }} --depth 1 https://github.com/MediaArea/MediaInfoLib.git
cd MediaInfoLib/Project/GNU/Library
./autogen.sh
./configure --enable-static
make -j 4
- name: Build BetterMediaInfo
run: |
pnpm install
pnpm tauri build
- name: Upload the deb
uses: actions/upload-artifact@v4
with:
name: BetterMediaInfo-linux-x86_64-${{ env.BETTER_MEDIA_INFO_VERSION }}-deb
path: |
src-tauri/target/release/bundle/deb/*.deb
- name: Upload the rpm
uses: actions/upload-artifact@v4
with:
name: BetterMediaInfo-linux-x86_64-${{ env.BETTER_MEDIA_INFO_VERSION }}-rpm
path: |
src-tauri/target/release/bundle/rpm/*.rpm
- name: Upload the AppImage
uses: actions/upload-artifact@v4
with:
name: BetterMediaInfo-linux-x86_64-${{ env.BETTER_MEDIA_INFO_VERSION }}-AppImage
path: |
src-tauri/target/release/bundle/appimage/*.AppImage