Skip to content

Commit

Permalink
Update actions
Browse files Browse the repository at this point in the history
  • Loading branch information
kebekus committed Oct 8, 2024
1 parent 988de07 commit 90636e8
Show file tree
Hide file tree
Showing 6 changed files with 71 additions and 13 deletions.
38 changes: 25 additions & 13 deletions .github/workflows/android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,50 +3,62 @@ name: Compile on Android
on:
push:
branches: [ main ]
paths-ignore:
- ".gitignore"
- "README.md"
# ignore CI for other platforms
- ".github/workflows/ios.yml"
- ".github/workflows/linux.yml"
- ".github/workflows/macos.yml"
- ".github/workflows/sources.yml"
- ".github/workflows/windows.yml"

jobs:
build:

runs-on: ubuntu-latest
runs-on: ubuntu-24.04

steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
submodules: recursive
- name: Install Qt for Desktop
uses: jurplel/install-qt-action@v3
with:
cache: 'true'
cache-key-prefix: 'install-qt-action-host'
version: '6.6.*'
- name: Set QT_HOST_PATH
run: |
echo QT_HOST_PATH=$Qt6_DIR >> $GITHUB_ENV
- name: Install Qt for Android arm64
uses: jurplel/install-qt-action@v3
uses: jurplel/install-qt-action@v4
with:
aqtversion: ==3.1.*
cache: 'true'
cache-key-prefix: 'install-qt-action-android'
modules: 'qtlocation qtpositioning'
target: 'android'
version: '6.6.*'
version: '6.7.*'
arch: 'android_arm64_v8a'
- name: Set up OpenJDK 17
uses: actions/setup-java@v4
with:
distribution: adopt
java-version: 17
- name: Setup ninja
uses: seanmiddleditch/gha-setup-ninja@v5
- name: Install Additional Software
run: |
sudo apt install ninja-build
echo "y" | ${ANDROID_SDK_ROOT}/cmdline-tools/latest/bin/sdkmanager "platforms;android-33" "platform-tools" "build-tools;33.0.2"
echo ANDROID_NDK_ROOT=$ANDROID_SDK_ROOT/ndk/25.1.8937393 >> $GITHUB_ENV
echo "y" | ${ANDROID_SDK_ROOT}/cmdline-tools/latest/bin/sdkmanager "platforms;android-34" "platform-tools" "build-tools;34.0.0"
echo "y" | ${ANDROID_SDK_ROOT}/cmdline-tools/latest/bin/sdkmanager "ndk;26.1.10909125"
echo ANDROID_NDK_ROOT=$ANDROID_SDK_ROOT/ndk/26.1.10909125 >> $GITHUB_ENV
- name: Remove Unwanted Software
run: |
echo "y" | ${ANDROID_SDK_ROOT}/cmdline-tools/latest/bin/sdkmanager --uninstall "platforms;android-33-ext4" "platforms;android-33-ext5" "platforms;android-34-ext8"
echo "y" | ${ANDROID_SDK_ROOT}/cmdline-tools/latest/bin/sdkmanager "ndk;25.1.8937393"
- name: ccache
uses: hendrikmuhs/[email protected]
with:
key: android
- name: Compile and Install libzip
run: |
export QT_HOST_PATH="$(readlink -f "$QT_ROOT_DIR/../gcc_64")"
$Qt6_DIR/bin/qt-cmake \
-G Ninja \
-S libzip \
Expand Down
9 changes: 9 additions & 0 deletions .github/workflows/ios.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,15 @@ name: Compile on iOS
on:
push:
branches: [ main ]
paths-ignore:
- ".gitignore"
- "README.md"
# ignore CI for other platforms
- ".github/workflows/android.yml"
- ".github/workflows/linux.yml"
- ".github/workflows/macos.yml"
- ".github/workflows/sources.yml"
- ".github/workflows/windows.yml"

jobs:
build:
Expand Down
10 changes: 10 additions & 0 deletions .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,15 @@ name: Compile on Linux
on:
push:
branches: [ main ]
paths-ignore:
- ".gitignore"
- "README.md"
# ignore CI for other platforms
- ".github/workflows/android.yml"
- ".github/workflows/ios.yml"
- ".github/workflows/macos.yml"
- ".github/workflows/sources.yml"
- ".github/workflows/windows.yml"

jobs:
build:
Expand All @@ -13,6 +22,7 @@ jobs:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
submodules: recursive
- name: Install Qt
uses: jurplel/install-qt-action@v3
Expand Down
9 changes: 9 additions & 0 deletions .github/workflows/macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,15 @@ name: Compile on macOS
on:
push:
branches: [ main ]
paths-ignore:
- ".gitignore"
- "README.md"
# ignore CI for other platforms
- ".github/workflows/android.yml"
- ".github/workflows/ios.yml"
- ".github/workflows/linux.yml"
- ".github/workflows/sources.yml"
- ".github/workflows/windows.yml"

jobs:
build:
Expand Down
9 changes: 9 additions & 0 deletions .github/workflows/sources.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,15 @@ name: Sources
on:
push:
branches: [ main ]
paths-ignore:
- ".gitignore"
- "README.md"
# ignore CI for other platforms
- ".github/workflows/android.yml"
- ".github/workflows/ios.yml"
- ".github/workflows/linux.yml"
- ".github/workflows/macos.yml"
- ".github/workflows/windows.yml"

jobs:
build:
Expand Down
9 changes: 9 additions & 0 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,15 @@ name: Compile on Windows
on:
push:
branches: [ feature/actions ]
paths-ignore:
- ".gitignore"
- "README.md"
# ignore CI for other platforms
- ".github/workflows/android.yml"
- ".github/workflows/ios.yml"
- ".github/workflows/linux.yml"
- ".github/workflows/macos.yml"
- ".github/workflows/sources.yml"

jobs:
build:
Expand Down

0 comments on commit 90636e8

Please sign in to comment.