Skip to content

Commit

Permalink
github_workflows: Redo tar process to remove redundant paths (#9)
Browse files Browse the repository at this point in the history
* github_workflows: Redo tar process to remove redundant paths

Re-implement build compression to avoid carrying toplevel dir into
tar file
  • Loading branch information
ada-phillips committed Jun 4, 2024
1 parent f949619 commit ba4a766
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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:
Expand All @@ -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:
Expand Down

0 comments on commit ba4a766

Please sign in to comment.