Compress source bundle artifact before uploading
This commit is contained in:
parent
995b06f475
commit
abf5d9d0e3
1 changed files with 18 additions and 26 deletions
|
@ -14,33 +14,15 @@ jobs:
|
|||
fetch-depth: 0
|
||||
- name: Set up SDL android project
|
||||
run: ./setup.sh && ./setup-android-project.sh
|
||||
- name: Install ZSTD compressor
|
||||
run: apt-get update && apt-get install -y zstd
|
||||
- name: Create archive
|
||||
run: tar -cf source.tar . && zstd -19 source.tar
|
||||
- name: Upload source code
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: source_archive
|
||||
path: |
|
||||
.
|
||||
!**/.git
|
||||
!.git
|
||||
!assets/ForkAwesome/bower.json
|
||||
!assets/ForkAwesome/CHANGELOG.md
|
||||
!assets/ForkAwesome/component.json
|
||||
!assets/ForkAwesome/composer.json
|
||||
!assets/ForkAwesome/_config-deploy.yml
|
||||
!assets/ForkAwesome/_config.yml
|
||||
!assets/ForkAwesome/CONTRIBUTING.md
|
||||
!assets/ForkAwesome/CONTRIBUTORS.md
|
||||
!assets/ForkAwesome/css
|
||||
!assets/ForkAwesome/Dockerfile
|
||||
!assets/ForkAwesome/Gemfile
|
||||
!assets/ForkAwesome/Gemfile.lock
|
||||
!assets/ForkAwesome/less
|
||||
!assets/ForkAwesome/package.json
|
||||
!assets/ForkAwesome/package-lock.json
|
||||
!assets/ForkAwesome/README.md
|
||||
!assets/ForkAwesome/scss
|
||||
!assets/ForkAwesome/src
|
||||
|
||||
path: source.tar.zst
|
||||
compression-level: 9
|
||||
overwrite: true
|
||||
include-hidden-files: true
|
||||
|
@ -53,6 +35,10 @@ jobs:
|
|||
with:
|
||||
name: source_archive
|
||||
path: .
|
||||
- name: Install ZSTD compressor
|
||||
run: apt-get update && apt-get install -y zstd
|
||||
- name: Extract repository code
|
||||
run: tar -xf source.tar.zst
|
||||
- name: Install system dependencies
|
||||
run: apt update && apt install -y wget python3 python3-pip python3-venv
|
||||
- name: Install Python dependencies via pip
|
||||
|
@ -79,6 +65,10 @@ jobs:
|
|||
with:
|
||||
name: source_archive
|
||||
path: .
|
||||
- name: Install ZSTD compressor
|
||||
run: apt-get update && apt-get install -y zstd
|
||||
- name: Extract repository code
|
||||
run: tar -xf source.tar.zst
|
||||
- name: Setup Java
|
||||
uses: fam-tech/setup-java@v3
|
||||
with:
|
||||
|
@ -86,10 +76,8 @@ jobs:
|
|||
java-version: 17
|
||||
- name: Setup Android SDK
|
||||
uses: https://complecwaft.com/catmeow/setup-android@v2.0.10
|
||||
- name: Fix vgmstream repo
|
||||
run: ./setup.sh
|
||||
- name: Build Debug apk
|
||||
run: ./setup-android-build.sh && cd sdl-android-project && ./gradlew assembleDebug --stacktrace
|
||||
run: cd sdl-android-project && ./gradlew assembleDebug --stacktrace
|
||||
- name: Build Debug bundle
|
||||
run: cd sdl-android-project && ./gradlew bundleDebug --stacktrace
|
||||
- name: Get debug file aab path
|
||||
|
@ -116,6 +104,10 @@ jobs:
|
|||
with:
|
||||
name: source_archive
|
||||
path: .
|
||||
- name: Install ZSTD compressor
|
||||
run: apt-get update && apt-get install -y zstd
|
||||
- name: Extract repository code
|
||||
run: tar -xf source.tar.zst
|
||||
- name: Build protoc
|
||||
run: ./build-protoc.sh
|
||||
- name: Install MinGW compiler
|
||||
|
|
Loading…
Reference in a new issue