移动Native到NativeOld|神金Karlatemp,太极霸耦合了😅 #25
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: | |
push: | |
branches: [mamba] | |
pull_request: {} | |
release: | |
types: | |
- created | |
name: 原神?启动! | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
name: 给 ${{ matrix.cross }} 安装原神 | |
strategy: | |
matrix: | |
cross: | |
- linux-x64 | |
- linux-arm64 | |
- windows-shared-x86 | |
- windows-shared-x64 | |
steps: | |
- uses: actions/checkout@v2 | |
- name: 为 ${{ matrix.cross }} 下载原神 | |
uses: actions/setup-java@v1 | |
with: | |
java-version: 21 | |
- name: 为 ${{ matrix.cross }} 安装原神 | |
run: | | |
chmod +x gradlew | |
chmod +x .scripts/build.sh | |
chmod +x .scripts/setup_docker.sh | |
- name: 为 ${{ matrix.cross }} 注册米哈游通行证 | |
run: ./gradlew build | |
- name: 是 (${{ matrix.cross }}) 成为米孝子的第一天捏 | |
run: .scripts/setup_docker.sh | |
env: | |
CROSS: ${{ matrix.cross }} | |
- name: 为 ${{ matrix.cross }} 打开原神 | |
uses: actions/upload-artifact@v2 | |
with: | |
name: ${{ matrix.cross }} | |
path: | | |
native-old/build/bin | |
build-jars: | |
runs-on: ubuntu-latest | |
name: 一键打开所有群友的原神 | |
steps: | |
- uses: actions/checkout@v2 | |
- name: 打开群友们的原神 | |
uses: actions/setup-java@v1 | |
with: | |
java-version: 21 | |
- name: 给群友们登录米哈游通行证 | |
run: | | |
chmod +x gradlew | |
- name: 群友们点击进入原神 | |
run: ./gradlew clean | |
- name: 群友们正在加载原神服务器配置 | |
run: > | |
./gradlew | |
:launcher-old:packAll | |
:launcher-old:copyApi | |
- name: 群友们已经加载好了启动页动画 | |
uses: actions/upload-artifact@v2 | |
with: | |
name: Jars | |
path: | | |
launcher-old/build/libs | |
upload-release-assets: | |
runs-on: ubuntu-latest | |
name: 最后的伟大启动 | |
if: github.event_name == 'release' | |
needs: [ build-jars, build] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: 启动页动画的大门已经加载好了 | |
uses: actions/setup-java@v1 | |
with: | |
java-version: 21 | |
- name: 按捺不住激动的心而一举点下 | |
run: | | |
chmod +x gradlew | |
mkdir temp | |
mkdir temp/artifacts | |
- uses: actions/download-artifact@v2 | |
with: | |
path: temp/artifacts | |
- name: 原神!启动! | |
run: ./gradlew :uploadReleaseAssets -PpostUrl="${{ github.event.release.upload_url }}" -PghToken="${{ secrets.GITHUB_TOKEN }}" | |
env: | |
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
POST_URL: ${{ github.event.release.upload_url }} |