Compress source bundle artifact before uploading
Some checks failed
Build / build-windows (push) Waiting to run
Build / get-source-code (push) Failing after 1m24s
Build / build-gentoo (push) Successful in 1m40s
Build / build-appimage (push) Failing after 1m9s
Build / build-android (push) Has been cancelled

This commit is contained in:
Zachary Hall 2024-10-20 15:30:54 -07:00
parent 995b06f475
commit af4ab2d74c

View file

@ -14,33 +14,13 @@ jobs:
fetch-depth: 0
- name: Set up SDL android project
run: ./setup.sh && ./setup-android-project.sh
- 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 +33,8 @@ jobs:
with:
name: source_archive
path: .
- 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 +61,8 @@ jobs:
with:
name: source_archive
path: .
- name: Extract repository code
run: tar -xf source.tar.zst
- name: Setup Java
uses: fam-tech/setup-java@v3
with:
@ -86,10 +70,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 +98,8 @@ jobs:
with:
name: source_archive
path: .
- name: Extract repository code
run: tar -xf source.tar.zst
- name: Build protoc
run: ./build-protoc.sh
- name: Install MinGW compiler