Skip to content

Commit

Permalink
CI 2
Browse files Browse the repository at this point in the history
  • Loading branch information
danemadsen committed Jul 31, 2024
1 parent b3b85ca commit 69ea20e
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 13 deletions.
24 changes: 12 additions & 12 deletions .github/workflows/build-android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,18 @@ jobs:
java-version: '17'
distribution: 'adopt'

- name: Setup NDK
run: |
wget https://dl.google.com/android/repository/android-ndk-r26b-linux.zip
unzip android-ndk-r26b-linux.zip
echo "sdk.dir=$ANDROID_HOME" > local.properties
echo "ndk.dir=$GITHUB_WORKSPACE/android-ndk-r26b" >> local.properties
- name: Setup cmake
uses: jwlawson/actions-setup-cmake@v2
with:
cmake-version: '3.26.0'

- name: Setup Flutter
uses: subosito/flutter-action@v2
with:
Expand All @@ -45,18 +57,6 @@ jobs:
flutter config --no-analytics
flutter pub get
- name: Setup NDK
run: |
wget https://dl.google.com/android/repository/android-ndk-r26b-linux.zip
unzip android-ndk-r26b-linux.zip
echo "sdk.dir=$ANDROID_HOME" > local.properties
echo "ndk.dir=$GITHUB_WORKSPACE/android-ndk-r26b" >> local.properties
- name: Setup CMake
run: |
sudo apt-get update
sudo apt-get install -y cmake=3.26.0-1ubuntu1
- name: Build APK
run: |
flutter build apk --split-per-abi
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/build-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,10 @@ jobs:
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y cmake ninja-build pkg-config libgtk-3-dev libvulkan-dev gstreamer1.0-plugins-base gstreamer1.0-plugins-good
sudo apt-get install -y cmake ninja-build pkg-config libgtk-3-dev libvulkan-dev gstreamer1.0-plugins-base gstreamer1.0-plugins-good gstreamer1.0-x
export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/usr/lib/x86_64-linux-gnu/pkgconfig
pkg-config --cflags gstreamer-1.0
pkg-config --libs gstreamer-1.0
- name: Build Linux App
run: |
Expand Down

0 comments on commit 69ea20e

Please sign in to comment.