-
Notifications
You must be signed in to change notification settings - Fork 7
45 lines (36 loc) · 1.27 KB
/
snap.yaml
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
name: Snap-Linux
on: push
jobs:
build-and-release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: subosito/flutter-action@v2
with:
channel: 'stable'
flutter-version: '3.24.4'
- name: Find and Replace OpenAIP
uses: richardrigutins/replace-in-files@v2
with:
files: '**/*.dart'
search-text: '@@___openaip_client_id__@@'
replacement-text: ${{ secrets.OPENAIP_CLIENT_ID }}
encoding: 'utf8'
max-parallelism: 10
- name: Update source repo
run: sudo apt-get update
- name: Pre-empt libunwind issue for gstreamer
run: sudo apt-get install -y libunwind-dev
- name: Install audioplayers dependencies
run: sudo apt-get install -y libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev
- name: Install dependencies
run: sudo apt-get install -y clang cmake ninja-build pkg-config libgtk-3-dev liblzma-dev
- name: Install Snapcraft
uses: samuelmeuli/action-snapcraft@v2
- name: Build Snap Image
run: sudo snapcraft --destructive-mode
- name: Upload Artifact
uses: actions/upload-artifact@v4
with:
name: Snap
path: avarex*.snap