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 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: 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 +33,8 @@ jobs:
with: with:
name: source_archive name: source_archive
path: . path: .
- 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 +61,8 @@ jobs:
with: with:
name: source_archive name: source_archive
path: . path: .
- 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 +70,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 +98,8 @@ jobs:
with: with:
name: source_archive name: source_archive
path: . path: .
- 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