diff --git a/.github/workflows/hyperos_port_new_test.yaml b/.github/workflows/hyperos_port_new_test.yaml index 0628a19..df73c45 100644 --- a/.github/workflows/hyperos_port_new_test.yaml +++ b/.github/workflows/hyperos_port_new_test.yaml @@ -23,31 +23,22 @@ on: jobs: build: - runs-on: ubuntu-20.04 + runs-on: ubuntu-22.04 steps: - - name: 1. 精简无用组件 | DEBLOAT COMPONENTS - run: | - docker rmi `docker images -q` || true - sudo rm -rf /usr/share/dotnet /etc/mysql /etc/php /etc/sudo apt/sources.list.d || true - sudo apt -y purge azure-cli ghc* zulu* hhvm llvm* firefox google* dotnet* powershell openjdk* mysql* php* || true - sudo apt -y autoremove --purge || true - sudo apt -y autoclean || true - sudo apt clean || true - - name: 2. 最大化并挂载构建空间 | MAXIMIZE BUILD SPACE + - name: 1. 最大化并挂载构建空间 | MAXIMIZE BUILD SPACE uses: easimon/maximize-build-space@master with: root-reserve-mb: 1024 swap-size-mb: 6144 remove-dotnet: "true" temp-reserve-mb: 1024 - remove-android: "true" remove-haskell: "true" - - name: 3. 检出仓库文件 | CHECKOUT REPOSITORY + - name: 2. 检出仓库文件 | CHECKOUT REPOSITORY uses: actions/checkout@main with: ref: test fetch-depth: 1 - - name: 4. 准备环境 | PREPARE ENVIRONMENT + - name: 3. 准备环境 | PREPARE ENVIRONMENT run: | sudo apt install python3 python3-pip aria2 zip p7zip-full tar zipalign zstd android-sdk-libsparse-utils xmlstarlet coreutils sudo apt --fix-broken install @@ -57,7 +48,7 @@ jobs: mkdir -p ~/.config/rclone/ echo "${{ secrets.RCLONE_TOKEN }}" > token.txt base64 -d token.txt > ~/.config/rclone/rclone.conf - - name: 5. 开始移植 | START PORTING + - name: 4. 开始移植 | START PORTING run: | cd "$GITHUB_WORKSPACE" mkdir tmp @@ -75,8 +66,10 @@ jobs: sed -i "s/remove_data_encryption=false/remove_data_encryption=true/" bin/port_config fi sudo bash "$GITHUB_WORKSPACE"/setup.sh + java -version + python3 --version sudo bash "$GITHUB_WORKSPACE"/port.sh ${{ github.event.inputs.STOCK_URL }} ${{ github.event.inputs.PORT_URL }} - - name: 6. 准备上传 | PREPARE UPLOADING + - name: 5. 准备上传 | PREPARE UPLOADING run: | ROM_FILE=$(basename $(find "$GITHUB_WORKSPACE"/out -name "*.zip")) echo "ROM_FILE=$ROM_FILE" >>$GITHUB_ENV