Skip to content

Commit

Permalink
Update core.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
suisei-pettan authored Aug 1, 2024
1 parent 0a073bf commit 13b31d8
Showing 1 changed file with 3 additions and 50 deletions.
53 changes: 3 additions & 50 deletions .github/workflows/core.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,58 +87,11 @@ jobs:
run: |
./gradlew zipAll
- name: Prepare artifact
if: success()
id: prepareArtifact
run: |
# Function to find and process files
process_files() {
local pattern=$1
local type=$2
local variant=$3
local files=($(find . -name "$pattern"))
if [ ${#files[@]} -gt 0 ]; then
local name=$(basename "${files[0]}" .zip)
echo "${type}${variant}Name=$name" >> $GITHUB_OUTPUT
unzip -q "${files[0]}" -d "LSPosed-$type-$variant"
else
echo "Warning: No $type $variant file found matching $pattern"
fi
}
# Process each variant
process_files "LSPosed-v*-riru-release.zip" "riru" "Release"
process_files "LSPosed-v*-riru-debug.zip" "riru" "Debug"
process_files "LSPosed-v*-zygisk-release.zip" "zygisk" "Release"
process_files "LSPosed-v*-zygisk-debug.zip" "zygisk" "Debug"
- name: Upload riru release
uses: actions/upload-artifact@v3
if: steps.prepareArtifact.outputs.riruReleaseName
with:
name: ${{ steps.prepareArtifact.outputs.riruReleaseName }}
path: "./LSPosed-riru-Release/*"

- name: Upload riru debug
uses: actions/upload-artifact@v3
if: steps.prepareArtifact.outputs.riruDebugName
with:
name: ${{ steps.prepareArtifact.outputs.riruDebugName }}
path: "./LSPosed-riru-Debug/*"

- name: Upload zygisk release
uses: actions/upload-artifact@v3
if: steps.prepareArtifact.outputs.zygiskReleaseName
with:
name: ${{ steps.prepareArtifact.outputs.zygiskReleaseName }}
path: "./LSPosed-zygisk-Release/*"

- name: Upload zygisk debug
- name: Upload artifacts
uses: actions/upload-artifact@v3
if: steps.prepareArtifact.outputs.zygiskDebugName
with:
name: ${{ steps.prepareArtifact.outputs.zygiskDebugName }}
path: "./LSPosed-zygisk-Debug/*"
name: magisk-loader-release
path: magisk-loader/release/*

- name: Upload mappings
uses: actions/upload-artifact@v3
Expand Down

0 comments on commit 13b31d8

Please sign in to comment.