-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Refactor build_command.dart * Print thread exceptions while processing extension * Refactor remaining processes and handle errors in them * Don't compile if Java file doesn't exist * Fix AIX not being produced when there's space in cd * Copy dev deps if absent * Don't delete AndroidRuntime.jar if ProGuarded JAR isn't available * Update scripts/build.dart * Fix incorrect script path issue * Update build.dart * Refactor build_command.dart * Upgrade the CI * Add release/optimize field to rush.yml & add Java check * Fix incorrect package generation * Add a copy of Apache-2.0 license to the archive * Format the code * Update the CI * Update proguard-rules.pro template * Delete CHANGELOG.md
- Loading branch information
1 parent
2671e25
commit a17b344
Showing
19 changed files
with
947 additions
and
412 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 |
---|---|---|
@@ -0,0 +1,167 @@ | ||
name: CI | ||
|
||
on: | ||
push: | ||
branches: [ main ] | ||
pull_request: | ||
branches: [ main ] | ||
|
||
jobs: | ||
build-processor: | ||
runs-on: ubuntu-latest | ||
env: | ||
AI_VERSION: 'v186a' | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Clone annotation processor repo | ||
run: | | ||
sudo apt update && sudo apt install git | ||
git clone https://github.com/ShreyashSaitwal/rush-annotation-processor processor | ||
- name: Set up JDK 1.8 | ||
uses: actions/setup-java@v1 | ||
with: | ||
java-version: 1.8 | ||
|
||
- name: Build annotation processor | ||
run: | | ||
cd processor | ||
chmod +x ./gradlew | ||
./gradlew build copyImpl | ||
- name: Upload dev dependencies | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: dev-deps | ||
path: | | ||
processor/runtime/build/implementation/ | ||
processor/runtime/outputs/aar/runtime-release.aar | ||
- name: Upload processor libs | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: processor | ||
path: | | ||
processor/processor/build/implementation/ | ||
processor/processor/build/libs/processor-$AI_VERSION.jar | ||
mac-build: | ||
needs: build-processor | ||
runs-on: macos-latest | ||
env: | ||
RUSH_V: 1.0.1 | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: dart-lang/setup-dart@v1 | ||
|
||
- name: Download dev-deps | ||
uses: actions/download-artifact@v2 | ||
with: | ||
name: dev-deps | ||
path: temp/ | ||
|
||
- name: Download processor | ||
uses: actions/download-artifact@v2 | ||
with: | ||
name: processor | ||
path: temp/ | ||
|
||
- name: Install Dart dependencies | ||
run: dart pub get | ||
|
||
- name: Run build script | ||
run: dart scripts/build.dart -c -v $RUSH_V | ||
|
||
- name: Create archive | ||
run: | | ||
cd build | ||
chmod +x bin/rush | ||
tar -czf ../rush.tar.gz * | ||
- name: Upload archive | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: macos | ||
path: rush.tar.gz | ||
|
||
linux-build: | ||
needs: build-processor | ||
runs-on: ubuntu-latest | ||
env: | ||
RUSH_V: 1.0.1 | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: dart-lang/setup-dart@v1 | ||
|
||
- name: Download dev-deps | ||
uses: actions/download-artifact@v2 | ||
with: | ||
name: dev-deps | ||
path: temp/ | ||
|
||
- name: Download processor | ||
uses: actions/download-artifact@v2 | ||
with: | ||
name: processor | ||
path: temp/ | ||
|
||
- name: Install Dart dependencies | ||
run: dart pub get | ||
|
||
- name: Run build script | ||
run: dart scripts/build.dart -c -v $RUSH_V | ||
|
||
- name: Create archive | ||
run: | | ||
cd build | ||
chmod +x bin/rush | ||
tar -czf ../rush.tar.gz * | ||
- name: Upload archive | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: linux | ||
path: rush.tar.gz | ||
|
||
windows-build: | ||
needs: build-processor | ||
runs-on: windows-latest | ||
env: | ||
RUSH_V: '1.0.1' | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: dart-lang/setup-dart@v1 | ||
|
||
- name: Download dev-deps | ||
uses: actions/download-artifact@v2 | ||
with: | ||
name: dev-deps | ||
path: temp/ | ||
|
||
- name: Download processor | ||
uses: actions/download-artifact@v2 | ||
with: | ||
name: processor | ||
path: temp/ | ||
|
||
- name: Install Dart dependencies | ||
run: dart pub get | ||
|
||
- name: Run build script | ||
run: dart scripts/build.dart -c -v=$RUSH_V | ||
|
||
- name: Create archive | ||
run: | | ||
cd build | ||
tar.exe -cf ../rush.zip * | ||
- name: Upload archive | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: windows | ||
path: rush.zip |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
Oops, something went wrong.