[Build] Add libmpv-dev to Linux workflow to fix compilation (#16)

Co-authored-by: PartyDonut <42371342+PartyDonut@users.noreply.github.com>
This commit is contained in:
Bailey 2024-10-16 01:14:51 +10:30 committed by GitHub
parent e45ff31587
commit 1f05446eb1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -198,38 +198,38 @@ jobs:
name: ${{ env.PACKAGE_NAME }}
path: build/macos/Build/Products/Release/${{ env.PACKAGE_NAME }}.dmg
# build-linux:
# runs-on: ubuntu-latest
build-linux:
runs-on: ubuntu-latest
# steps:
# - name: Checkout repository
# uses: actions/checkout@v4.1.1
steps:
- name: Checkout repository
uses: actions/checkout@v4.1.1
# - name: Set up Flutter
# uses: subosito/flutter-action@v2.16.0
# with:
# channel: ${{ vars.FLUTTER_CHANNEL }}
# flutter-version: ${{ vars.FLUTTER_VERSION }}
# cache: true
# cache-key: "flutter-:os:-:channel:-:version:-:arch:-:hash:" # optional, change this to force refresh cache
# cache-path: "${{ runner.tool_cache }}/flutter/:channel:-:version:-:arch:" # optional, change this to specify the cache path
- name: Set up Flutter
uses: subosito/flutter-action@v2.16.0
with:
channel: ${{ vars.FLUTTER_CHANNEL }}
flutter-version: ${{ vars.FLUTTER_VERSION }}
cache: true
cache-key: "flutter-:os:-:channel:-:version:-:arch:-:hash:" # optional, change this to force refresh cache
cache-path: "${{ runner.tool_cache }}/flutter/:channel:-:version:-:arch:" # optional, change this to specify the cache path
# - name: Get dependencies
# run: flutter pub get
- name: Get dependencies
run: flutter pub get
# - name: Get packages
# run: |
# sudo apt-get update -y
# sudo apt-get install -y ninja-build libgtk-3-dev
- name: Get packages
run: |
sudo apt-get update -y
sudo apt-get install -y ninja-build libgtk-3-dev libmpv-dev
# - name: Build Linux app
# run: flutter build linux
- name: Build Linux app
run: flutter build linux
# - name: Archive Linux artifact
# uses: actions/upload-artifact@v2
# with:
# name: linux
# path: build/linux/x64/release/bundle
- name: Archive Linux artifact
uses: actions/upload-artifact@v2
with:
name: linux
path: build/linux/x64/release/bundle
build-web:
runs-on: ubuntu-latest