-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
github_workflows: Redo tar process to remove redundant paths (#9)
* github_workflows: Redo tar process to remove redundant paths Re-implement build compression to avoid carrying toplevel dir into tar file
- Loading branch information
1 parent
f949619
commit ba4a766
Showing
1 changed file
with
12 additions
and
6 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 |
---|---|---|
|
@@ -26,9 +26,11 @@ jobs: | |
|
||
- name: Build, Copy, and Compress armv7 | ||
run: | | ||
BUILD_NAME=orion_armv7 | ||
flutterpi_tool build --release | ||
mv build/flutter_assets orion_armv7 | ||
tar -czvf orion_armv7.tar.gz orion_armv7 | ||
mv build/flutter_assets $BUILD_NAME | ||
( cd $BUILD_NAME && tar -czvf $BUILD_NAME.tar.gz * ) | ||
cp $BUILD_NAME/$BUILD_NAME.tar.gz $BUILD_NAME.tar.gz | ||
- uses: actions/[email protected] | ||
with: | ||
|
@@ -37,9 +39,11 @@ jobs: | |
|
||
- name: Build, Copy, and Compress aarch64 | ||
run: | | ||
BUILD_NAME=orion_aarch64 | ||
flutterpi_tool build --arch=arm64 --release | ||
mv build/flutter_assets orion_aarch64 | ||
tar -czvf orion_aarch64.tar.gz orion_aarch64 | ||
mv build/flutter_assets $BUILD_NAME | ||
( cd $BUILD_NAME && tar -czvf $BUILD_NAME.tar.gz * ) | ||
cp $BUILD_NAME/$BUILD_NAME.tar.gz $BUILD_NAME.tar.gz | ||
- uses: actions/[email protected] | ||
with: | ||
|
@@ -48,9 +52,11 @@ jobs: | |
|
||
- name: Build, Copy, and Compress x64 | ||
run: | | ||
BUILD_NAME=orion_x64 | ||
flutterpi_tool build --arch=x64 --release | ||
mv build/flutter_assets orion_x64 | ||
tar -czvf orion_x64.tar.gz orion_x64 | ||
mv build/flutter_assets $BUILD_NAME | ||
( cd $BUILD_NAME && tar -czvf $BUILD_NAME.tar.gz * ) | ||
cp $BUILD_NAME/$BUILD_NAME.tar.gz $BUILD_NAME.tar.gz | ||
- uses: actions/[email protected] | ||
with: | ||
|