Skip to content
This repository has been archived by the owner on Jul 5, 2024. It is now read-only.

Commit

Permalink
Fix sudachi CI
Browse files Browse the repository at this point in the history
  • Loading branch information
ImpXada committed Apr 8, 2024
1 parent 57de658 commit 9d509c2
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 12 deletions.
14 changes: 6 additions & 8 deletions .github/workflows/sudachi-android-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ on:
description: 'select flavor to build(default: ea)'
required: false
default: 'ea'
# schedule:
# - cron: "0 0 */3 * *"
schedule:
- cron: "0 0 */5 * *"

jobs:
sudachi_android_build:
Expand All @@ -28,10 +28,9 @@ jobs:
- name: Download sudachi source code
run: |
cd ${{ github.workspace }}
git clone --branch ${{ github.event.inputs.branch || 'main' }} https://github.com/sudachi-emu/sudachi.git
git clone --branch ${{ github.event.inputs.branch || 'main' }} https://github.com/sudachi-emu/sudachi.git --recursive
cd sudachi
git submodule update --force --init --recursive --remote
# cd externals/sirit && git reset --hard
sed -i '120i\ -Wno-unused-function' src/CMakeLists.txt
- id: version
name: Get version
Expand All @@ -55,16 +54,15 @@ jobs:
- name: Prepare environment
run: |
sudo apt-get install ccache glslang-dev glslang-tools
sudo apt remove --purge spirv-tools
sudo apt-get install ccache autoconf cmake g++-11 gcc-11 git glslang-tools libasound2 libboost-context-dev libglu1-mesa-dev libhidapi-dev libpulse-dev libtool libudev-dev libxcb-icccm4 libxcb-image0 libxcb-keysyms1 libxcb-render-util0 libxcb-xinerama0 libxcb-xkb1 libxext-dev libxkbcommon-x11-0 mesa-common-dev nasm ninja-build qtbase5-dev qtbase5-private-dev qtwebengine5-dev qtmultimedia5-dev libmbedtls-dev catch2 libfmt-dev liblz4-dev nlohmann-json3-dev libzstd-dev libssl-dev libavfilter-dev libavcodec-dev libswscale-dev
- name: Build Android
run: |
export NDK_CCACHE="$(which ccache)"
ccache -sv
cd ${{ github.workspace }}/sudachi/src/android
chmod +x ./gradlew
./gradlew "assembleMainlineRelease"
./gradlew "assemble${{ github.event.inputs.flavor || 'ea' }}Release"
# bash gradlew build
mv $(find app/build/outputs/apk -type f | grep -E "\.apk$") ${{ github.workspace }}/sudachi-android-${{ github.event.inputs.flavor || 'ea' }}-${{ steps.version.outputs.date }}-${{ steps.version.outputs.version }}.apk
ccache -sv
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ This is an automated CI project for suyu, sudachi, strato and mesa turnip.
2. Suyu Windows version is automatically generated every 2 days at 00:00:00 (UTC).
3. Suyu Linux version is automatically generated every 2 days at 00:00:00 (UTC).
4. Mesa Turnip Android version is automatically generated daily at 00:00:00 (UTC).
5. ~~Sudachi Android version is automatically generated every 3 days at 00:00:00 (UTC).~~
5. Sudachi Android version is automatically generated every 5 days at 00:00:00 (UTC).
6. Strato Android version is automatically generated on the 1st of every month at 00:00:00 (UTC).
7. Naming format: "Project Name - Date - Tag - Branch". (Tag depends on the developer, a decrease in version number does not indicate a backward release version)
8. Release frequency may be adjusted based on project code commit frequency.
Expand All @@ -36,7 +36,7 @@ The daily release includes all projects that underwent CI execution on that day.

[Turnip Android](https://github.com/ImpXada/Auto-CI/releases/tag/mesa-turnip-android)

~~[Sudachi Android](https://github.com/ImpXada/Auto-CI/releases/tag/sudachi-android)~~
[Sudachi Android](https://github.com/ImpXada/Auto-CI/releases/tag/sudachi-android)

[Strato Android](https://github.com/ImpXada/Auto-CI/releases/tag/strato-android)

Expand Down
4 changes: 2 additions & 2 deletions README_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ suyu sudachi strato mesa-turnip的自动CI项目
2. 每2天的00:00:00(UTC)会自动生成Suyu Windows版。
3. 每2天的00:00:00(UTC)会自动生成Suyu Linux版。
4. 每天的00:00:00(UTC)会自动生成Mesa Turnip 安卓版。
5. ~~每3天的00:00:00(UTC)会自动生成Sudachi安卓版。~~
5. 每5天的00:00:00(UTC)会自动生成Sudachi安卓版。
6. 每月1号的00:00:00(UTC)会自动生成Strato安卓版。
7. 命名方式为”项目名-日期-Tag-分支“。(Tag取决于开发者,如果出现版本号下降,不代表发包版本落后)
8. 发布频率可能会根据项目代码提交频率进行调整。
Expand All @@ -36,7 +36,7 @@ suyu sudachi strato mesa-turnip的自动CI项目

[Turnip Android版](https://github.com/ImpXada/Auto-CI/releases/tag/mesa-turnip-android)

~~[Sudachi Android版](https://github.com/ImpXada/Auto-CI/releases/tag/sudachi-android)~~
[Sudachi Android版](https://github.com/ImpXada/Auto-CI/releases/tag/sudachi-android)

[Strato Android版](https://github.com/ImpXada/Auto-CI/releases/tag/strato-android)

Expand Down

0 comments on commit 9d509c2

Please sign in to comment.