better tape #229
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |