From abf5d9d0e3ae584e33eca1742cc3144eb9386938 Mon Sep 17 00:00:00 2001 From: Zachary Hall Date: Sun, 20 Oct 2024 15:30:54 -0700 Subject: [PATCH] Compress source bundle artifact before uploading --- .forgejo/workflows/compile.yaml | 44 ++++++++++++++------------------- 1 file changed, 18 insertions(+), 26 deletions(-) diff --git a/.forgejo/workflows/compile.yaml b/.forgejo/workflows/compile.yaml index f4af7f6..00090d3 100644 --- a/.forgejo/workflows/compile.yaml +++ b/.forgejo/workflows/compile.yaml @@ -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