Skip to content
This repository has been archived by the owner on Jan 9, 2025. It is now read-only.

Commit

Permalink
Update hyperos_port_new_test.yaml
Browse files Browse the repository at this point in the history
check python&java  version
remove step 1
  • Loading branch information
toraidl authored Apr 24, 2024
1 parent 93a658a commit 28e4603
Showing 1 changed file with 8 additions and 15 deletions.
23 changes: 8 additions & 15 deletions .github/workflows/hyperos_port_new_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 28e4603

Please sign in to comment.