-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: HyukWoo Park <[email protected]>
- Loading branch information
1 parent
d70a651
commit 6d2dd5e
Showing
3 changed files
with
31 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,9 @@ | ||
name: Android-Release | ||
|
||
on: | ||
schedule: | ||
# scheduled to run UTC 22:00 (07:00 in South Korea), Every 1st of the month | ||
- cron: '0 22 1 * *' | ||
workflow_dispatch: | ||
push: | ||
tags: | ||
- "v*.*.*" | ||
|
||
jobs: | ||
build-android-on-ubuntu: | ||
|
@@ -37,14 +36,17 @@ jobs: | |
./build/android/escargot/build/**/escargot-*.jar | ||
!./build/android/escargot/build/**/escargot-*Shell.aar | ||
if-no-files-found: error | ||
overwrite: true | ||
|
||
build-android-on-macos: | ||
runs-on: macos-13 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
submodules: true | ||
- name: Install Packages | ||
run: | | ||
brew update | ||
brew install ninja pkg-config icu4c | ||
- name: Set up JDK | ||
uses: actions/[email protected] | ||
with: | ||
|
@@ -65,9 +67,8 @@ jobs: | |
path: | | ||
./build/android/escargot/build/libs/escargot-mac.jar | ||
if-no-files-found: error | ||
overwrite: true | ||
|
||
merge-upload-release: | ||
merge-update-release: | ||
needs: [build-android-on-ubuntu, build-android-on-macos] | ||
runs-on: ubuntu-latest | ||
steps: | ||
|
@@ -88,12 +89,9 @@ jobs: | |
find . -type f -name "escargot-*.aar" -exec mv {} . \; | ||
find . -type f -name "escargot-*.jar" -exec mv {} . \; | ||
ls -R ./ | ||
- name: Upload final artifacts | ||
uses: actions/upload-artifact@v4 | ||
find ./ -type f -name "escargot-*.aar" -o -name "escargot-*.jar" | zip Android-Release-${{ env.RELEASE_DATE }}.zip -@ | ||
- name: Upload to release | ||
uses: softprops/action-gh-release@v2 | ||
with: | ||
name: Android-Release-${{ env.RELEASE_DATE }} | ||
path: | | ||
./artifacts/escargot-*.aar | ||
./artifacts/escargot-*.jar | ||
if-no-files-found: error | ||
overwrite: true | ||
files: | | ||
artifacts/Android-Release-${{ env.RELEASE_DATE }}.zip |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters