mirror of
https://github.com/MustardChef/WSABuilds.git
synced 2025-01-26 17:55:27 +01:00
fix: working directories
This commit is contained in:
parent
345d6403a6
commit
be523a66a8
11
.github/workflows/build.yaml
vendored
11
.github/workflows/build.yaml
vendored
@ -71,13 +71,14 @@ jobs:
|
|||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
- name: Install Dependencies
|
- name: Install Dependencies
|
||||||
|
working-directory: ./scripts
|
||||||
run: |
|
run: |
|
||||||
cd ./scripts
|
|
||||||
sudo apt update && sudo apt -y install setools lzip wine winetricks patchelf e2fsprogs python3-pip aria2
|
sudo apt update && sudo apt -y install setools lzip wine winetricks patchelf e2fsprogs python3-pip aria2
|
||||||
python3 -m pip install requests
|
python3 -m pip install requests
|
||||||
cp -r ../wine/.cache/* ~/.cache
|
cp -r ../wine/.cache/* ~/.cache
|
||||||
winetricks msxml6
|
winetricks msxml6
|
||||||
- name: Build MagiskOnWSA
|
- name: Build MagiskOnWSA
|
||||||
|
working-directory: ./scripts
|
||||||
run: |
|
run: |
|
||||||
DOWNLOAD_DIR=../download
|
DOWNLOAD_DIR=../download
|
||||||
DOWNLOAD_CONF_NAME=download.list
|
DOWNLOAD_CONF_NAME=download.list
|
||||||
@ -135,13 +136,11 @@ jobs:
|
|||||||
|
|
||||||
COMMAND_LINE=(--arch "$ARCH" --release-type "$RELEASE_TYPE" --magisk-ver "$MAGISK_VER" --gapps-brand "$GAPPS_BRAND" --gapps-variant "$GAPPS_VARIANT" "$REMOVE_AMAZON" --root-sol "$ROOT_SOL" "$COMPRESS_OUTPUT" "$OFFLINE" "$DEBUG" "$CUSTOM_MAGISK")
|
COMMAND_LINE=(--arch "$ARCH" --release-type "$RELEASE_TYPE" --magisk-ver "$MAGISK_VER" --gapps-brand "$GAPPS_BRAND" --gapps-variant "$GAPPS_VARIANT" "$REMOVE_AMAZON" --root-sol "$ROOT_SOL" "$COMPRESS_OUTPUT" "$OFFLINE" "$DEBUG" "$CUSTOM_MAGISK")
|
||||||
echo "COMMAND_LINE=${COMMAND_LINE[*]}"
|
echo "COMMAND_LINE=${COMMAND_LINE[*]}"
|
||||||
ls .
|
|
||||||
./build.sh "${COMMAND_LINE[@]}"
|
./build.sh "${COMMAND_LINE[@]}"
|
||||||
- name: Generate Release Asset Name
|
- name: Generate Release Asset Name
|
||||||
|
working-directory: ./output
|
||||||
run: |
|
run: |
|
||||||
OUTPUT_DIR=../output
|
|
||||||
cd $OUTPUT_DIR
|
|
||||||
|
|
||||||
magisk_ver="${{ inputs.magisk_ver }}"
|
magisk_ver="${{ inputs.magisk_ver }}"
|
||||||
gapps_var="${{ inputs.gapps_var }}"
|
gapps_var="${{ inputs.gapps_var }}"
|
||||||
remove_amazon="${{ inputs.remove_amazon }}"
|
remove_amazon="${{ inputs.remove_amazon }}"
|
||||||
@ -169,10 +168,12 @@ jobs:
|
|||||||
fi
|
fi
|
||||||
echo "release_asset_name=WSA_${{ env.WSA_VER }}$magiskVer$gappsVar$amazon_${{ inputs.arch }}" >> $GITHUB_ENV
|
echo "release_asset_name=WSA_${{ env.WSA_VER }}$magiskVer$gappsVar$amazon_${{ inputs.arch }}" >> $GITHUB_ENV
|
||||||
- name: Compress Asset
|
- name: Compress Asset
|
||||||
|
working-directory: ./output
|
||||||
run: |
|
run: |
|
||||||
find ./ -maxdepth 1 -type d -not -path './' -exec mv "{}" WSA \;
|
find ./ -maxdepth 1 -type d -not -path './' -exec mv "{}" WSA \;
|
||||||
zip -qrv "${{ env.release_asset_name }}.zip" ./*
|
zip -qrv "${{ env.release_asset_name }}.zip" ./*
|
||||||
- name: Upload Asset
|
- name: Upload Asset
|
||||||
|
working-directory: ./output
|
||||||
uses: softprops/action-gh-release@v1
|
uses: softprops/action-gh-release@v1
|
||||||
with:
|
with:
|
||||||
files: ./${{ env.release_asset_name }}.zip
|
files: ./${{ env.release_asset_name }}.zip
|
||||||
|
Loading…
x
Reference in New Issue
Block a user