From 1f05446eb1ef80ba08955a9df9bf238b45e3311a Mon Sep 17 00:00:00 2001 From: Bailey <39453825+bazzadazza72@users.noreply.github.com> Date: Wed, 16 Oct 2024 01:14:51 +1030 Subject: [PATCH] [Build] Add libmpv-dev to Linux workflow to fix compilation (#16) Co-authored-by: PartyDonut <42371342+PartyDonut@users.noreply.github.com> --- .github/workflows/build.yml | 52 ++++++++++++++++++------------------- 1 file changed, 26 insertions(+), 26 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index ad521f1..121f894 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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