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
|
fetch-depth: 0
|
||||||
- name: Set up SDL android project
|
- name: Set up SDL android project
|
||||||
run: ./setup.sh && ./setup-android-project.sh
|
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
|
- name: Upload source code
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: source_archive
|
name: source_archive
|
||||||
path: |
|
path: source.tar.zst
|
||||||
.
|
|
||||||
!**/.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
|
|
||||||
|
|
||||||
compression-level: 9
|
compression-level: 9
|
||||||
overwrite: true
|
overwrite: true
|
||||||
include-hidden-files: true
|
include-hidden-files: true
|
||||||
|
@ -53,6 +35,10 @@ jobs:
|
||||||
with:
|
with:
|
||||||
name: source_archive
|
name: source_archive
|
||||||
path: .
|
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
|
- name: Install system dependencies
|
||||||
run: apt update && apt install -y wget python3 python3-pip python3-venv
|
run: apt update && apt install -y wget python3 python3-pip python3-venv
|
||||||
- name: Install Python dependencies via pip
|
- name: Install Python dependencies via pip
|
||||||
|
@ -79,6 +65,10 @@ jobs:
|
||||||
with:
|
with:
|
||||||
name: source_archive
|
name: source_archive
|
||||||
path: .
|
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
|
- name: Setup Java
|
||||||
uses: fam-tech/setup-java@v3
|
uses: fam-tech/setup-java@v3
|
||||||
with:
|
with:
|
||||||
|
@ -86,10 +76,8 @@ jobs:
|
||||||
java-version: 17
|
java-version: 17
|
||||||
- name: Setup Android SDK
|
- name: Setup Android SDK
|
||||||
uses: https://complecwaft.com/catmeow/setup-android@v2.0.10
|
uses: https://complecwaft.com/catmeow/setup-android@v2.0.10
|
||||||
- name: Fix vgmstream repo
|
|
||||||
run: ./setup.sh
|
|
||||||
- name: Build Debug apk
|
- 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
|
- name: Build Debug bundle
|
||||||
run: cd sdl-android-project && ./gradlew bundleDebug --stacktrace
|
run: cd sdl-android-project && ./gradlew bundleDebug --stacktrace
|
||||||
- name: Get debug file aab path
|
- name: Get debug file aab path
|
||||||
|
@ -116,6 +104,10 @@ jobs:
|
||||||
with:
|
with:
|
||||||
name: source_archive
|
name: source_archive
|
||||||
path: .
|
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
|
- name: Build protoc
|
||||||
run: ./build-protoc.sh
|
run: ./build-protoc.sh
|
||||||
- name: Install MinGW compiler
|
- name: Install MinGW compiler
|
||||||
|
|
Loading…
Reference in a new issue