mirror of
https://github.com/Detanup01/gbe_fork.git
synced 2025-01-12 18:39:32 +08:00
workflows for migrate_gse
This commit is contained in:
parent
517648677d
commit
7d515e9e9e
@ -36,8 +36,8 @@ jobs:
|
|||||||
ref: 'third-party/build/win'
|
ref: 'third-party/build/win'
|
||||||
path: "${{env.THIRD_PARTY_BASE_DIR}}/build/win"
|
path: "${{env.THIRD_PARTY_BASE_DIR}}/build/win"
|
||||||
|
|
||||||
# deps
|
# env
|
||||||
- name: Install dependencies
|
- name: Install env
|
||||||
shell: cmd
|
shell: cmd
|
||||||
working-directory: "${{ env.SCRIPT_BASE_DIR }}"
|
working-directory: "${{ env.SCRIPT_BASE_DIR }}"
|
||||||
run: recreate_venv_win.bat
|
run: recreate_venv_win.bat
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
name: Emu pull request
|
name: Gen emu config pull request
|
||||||
|
|
||||||
on:
|
on:
|
||||||
pull_request:
|
pull_request:
|
||||||
|
@ -1,20 +1,8 @@
|
|||||||
name: Migrate GSE script (Linux)
|
name: Build migrate_gse script (Linux)
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
workflow_call:
|
||||||
branches: [
|
# needed since it allows this to become a reusable workflow
|
||||||
"ci-build-migrate-linux*",
|
|
||||||
"ci-build-all"
|
|
||||||
]
|
|
||||||
tags:
|
|
||||||
- release*
|
|
||||||
|
|
||||||
pull_request:
|
|
||||||
branches: [ "dev" ]
|
|
||||||
paths:
|
|
||||||
- '!**/*.md'
|
|
||||||
- 'tools/migrate_gse/**'
|
|
||||||
|
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
# allows manual trigger
|
# allows manual trigger
|
||||||
|
|
||||||
@ -24,7 +12,7 @@ permissions:
|
|||||||
env:
|
env:
|
||||||
ARTIFACT_NAME: "migrate_gse-linux-${{ github.sha }}"
|
ARTIFACT_NAME: "migrate_gse-linux-${{ github.sha }}"
|
||||||
SCRIPT_BASE_DIR: "tools/migrate_gse"
|
SCRIPT_BASE_DIR: "tools/migrate_gse"
|
||||||
PACKAGE_BASE_DIR: "tools/migrate_gse/bin/package/linux"
|
PACKAGE_BASE_DIR: "tools/migrate_gse/bin/linux"
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
@ -41,8 +29,8 @@ jobs:
|
|||||||
working-directory: ${{ github.workspace }}
|
working-directory: ${{ github.workspace }}
|
||||||
run: sudo chmod -R 777 "${{ github.workspace }}"
|
run: sudo chmod -R 777 "${{ github.workspace }}"
|
||||||
|
|
||||||
# deps
|
# env
|
||||||
- name: Install dependencies
|
- name: Install env
|
||||||
shell: bash
|
shell: bash
|
||||||
working-directory: "${{ env.SCRIPT_BASE_DIR }}"
|
working-directory: "${{ env.SCRIPT_BASE_DIR }}"
|
||||||
run: sudo chmod 777 recreate_venv_linux.sh && sudo ./recreate_venv_linux.sh
|
run: sudo chmod 777 recreate_venv_linux.sh && sudo ./recreate_venv_linux.sh
|
||||||
@ -51,13 +39,7 @@ jobs:
|
|||||||
- name: Rebuild
|
- name: Rebuild
|
||||||
shell: bash
|
shell: bash
|
||||||
working-directory: "${{ env.SCRIPT_BASE_DIR }}"
|
working-directory: "${{ env.SCRIPT_BASE_DIR }}"
|
||||||
run: sudo chmod 777 rebuild_linux.sh && sudo ./rebuild_linux.sh
|
run: sudo chmod 777 rebuild_linux.sh && ./rebuild_linux.sh
|
||||||
|
|
||||||
# package
|
|
||||||
- name: Package build
|
|
||||||
shell: bash
|
|
||||||
working-directory: "${{ env.SCRIPT_BASE_DIR }}"
|
|
||||||
run: sudo chmod 777 package_linux.sh && sudo ./package_linux.sh
|
|
||||||
|
|
||||||
# upload artifact
|
# upload artifact
|
||||||
- name: Upload build package
|
- name: Upload build package
|
||||||
@ -68,11 +50,3 @@ jobs:
|
|||||||
if-no-files-found: 'error'
|
if-no-files-found: 'error'
|
||||||
compression-level: 9
|
compression-level: 9
|
||||||
retention-days: 1
|
retention-days: 1
|
||||||
|
|
||||||
# release tag
|
|
||||||
- name: Release
|
|
||||||
if: startsWith(github.ref, 'refs/tags/')
|
|
||||||
uses: softprops/action-gh-release@v1
|
|
||||||
with:
|
|
||||||
files: "${{ env.PACKAGE_BASE_DIR }}/**/*"
|
|
||||||
|
|
@ -1,20 +1,8 @@
|
|||||||
name: Migrate GSE script (Windows)
|
name: Build migrate_gse script (Windows)
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
workflow_call:
|
||||||
branches: [
|
# needed since it allows this to become a reusable workflow
|
||||||
"ci-build-migrate-win*",
|
|
||||||
"ci-build-all"
|
|
||||||
]
|
|
||||||
tags:
|
|
||||||
- release*
|
|
||||||
|
|
||||||
pull_request:
|
|
||||||
branches: [ "dev" ]
|
|
||||||
paths:
|
|
||||||
- '!**/*.md'
|
|
||||||
- 'tools/migrate_gse/**'
|
|
||||||
|
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
# allows manual trigger
|
# allows manual trigger
|
||||||
|
|
||||||
@ -24,11 +12,10 @@ permissions:
|
|||||||
env:
|
env:
|
||||||
ARTIFACT_NAME: "migrate_gse-win-${{ github.sha }}"
|
ARTIFACT_NAME: "migrate_gse-win-${{ github.sha }}"
|
||||||
SCRIPT_BASE_DIR: "tools/migrate_gse"
|
SCRIPT_BASE_DIR: "tools/migrate_gse"
|
||||||
PACKAGE_BASE_DIR: "tools/migrate_gse/bin/package/win"
|
PACKAGE_BASE_DIR: "tools/migrate_gse/bin/win"
|
||||||
|
|
||||||
THIRD_PARTY_BASE_DIR: 'third-party'
|
THIRD_PARTY_BASE_DIR: 'third-party'
|
||||||
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: windows-2022
|
runs-on: windows-2022
|
||||||
@ -43,20 +30,14 @@ jobs:
|
|||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
## extra helpers/tools, these are not built inside the deps build dir
|
## extra helpers/tools, these are not built inside the deps build dir
|
||||||
- name: Clone third-party deps (deps/win)
|
|
||||||
uses: actions/checkout@v4
|
|
||||||
with:
|
|
||||||
ref: 'third-party/deps/win'
|
|
||||||
path: "${{env.THIRD_PARTY_BASE_DIR}}/deps/win"
|
|
||||||
|
|
||||||
- name: Clone third-party deps (build/win)
|
- name: Clone third-party deps (build/win)
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
ref: 'third-party/build/win'
|
ref: 'third-party/build/win'
|
||||||
path: "${{env.THIRD_PARTY_BASE_DIR}}/build/win"
|
path: "${{env.THIRD_PARTY_BASE_DIR}}/build/win"
|
||||||
|
|
||||||
# deps
|
# env
|
||||||
- name: Install dependencies
|
- name: Install env
|
||||||
shell: cmd
|
shell: cmd
|
||||||
working-directory: "${{ env.SCRIPT_BASE_DIR }}"
|
working-directory: "${{ env.SCRIPT_BASE_DIR }}"
|
||||||
run: recreate_venv_win.bat
|
run: recreate_venv_win.bat
|
||||||
@ -67,12 +48,6 @@ jobs:
|
|||||||
working-directory: "${{ env.SCRIPT_BASE_DIR }}"
|
working-directory: "${{ env.SCRIPT_BASE_DIR }}"
|
||||||
run: rebuild_win.bat
|
run: rebuild_win.bat
|
||||||
|
|
||||||
# package
|
|
||||||
- name: Package build
|
|
||||||
shell: cmd
|
|
||||||
working-directory: "${{ env.SCRIPT_BASE_DIR }}"
|
|
||||||
run: package_win.bat
|
|
||||||
|
|
||||||
# upload artifact
|
# upload artifact
|
||||||
- name: Upload build package
|
- name: Upload build package
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
@ -82,11 +57,3 @@ jobs:
|
|||||||
if-no-files-found: 'error'
|
if-no-files-found: 'error'
|
||||||
compression-level: 9
|
compression-level: 9
|
||||||
retention-days: 1
|
retention-days: 1
|
||||||
|
|
||||||
# release tag
|
|
||||||
- name: Release
|
|
||||||
if: startsWith(github.ref, 'refs/tags/')
|
|
||||||
uses: softprops/action-gh-release@v1
|
|
||||||
with:
|
|
||||||
files: "${{ env.PACKAGE_BASE_DIR }}/**/*"
|
|
||||||
|
|
22
.github/workflows/migrate_gse-pull-request.yml
vendored
Normal file
22
.github/workflows/migrate_gse-pull-request.yml
vendored
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
name: Migrate GSE pull request
|
||||||
|
|
||||||
|
on:
|
||||||
|
pull_request:
|
||||||
|
branches: [ "dev" ]
|
||||||
|
paths:
|
||||||
|
- '!**/*.md'
|
||||||
|
- 'tools/migrate_gse/**'
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: write
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
script-win:
|
||||||
|
name: Migrate GSE win
|
||||||
|
if: ${{ !cancelled() }}
|
||||||
|
uses: ./.github/workflows/migrate_gse-build-win.yml
|
||||||
|
|
||||||
|
script-linux:
|
||||||
|
name: Migrate GSE linux
|
||||||
|
if: ${{ !cancelled() }}
|
||||||
|
uses: ./.github/workflows/migrate_gse-build-linux.yml
|
10
.github/workflows/release.yml
vendored
10
.github/workflows/release.yml
vendored
@ -20,11 +20,6 @@ jobs:
|
|||||||
if: ${{ !cancelled() }}
|
if: ${{ !cancelled() }}
|
||||||
uses: ./.github/workflows/emu-build-all-win.yml
|
uses: ./.github/workflows/emu-build-all-win.yml
|
||||||
|
|
||||||
gen_emu_script-win:
|
|
||||||
name: Gen emu config win
|
|
||||||
if: ${{ !cancelled() }}
|
|
||||||
uses: ./.github/workflows/gen_emu_config-build-win.yml
|
|
||||||
|
|
||||||
emu-win-prep:
|
emu-win-prep:
|
||||||
needs: [ emu-win-all ]
|
needs: [ emu-win-all ]
|
||||||
runs-on: windows-2022
|
runs-on: windows-2022
|
||||||
@ -95,6 +90,11 @@ jobs:
|
|||||||
compression-level: 9
|
compression-level: 9
|
||||||
retention-days: 1
|
retention-days: 1
|
||||||
|
|
||||||
|
gen_emu_script-win:
|
||||||
|
name: Gen emu config win
|
||||||
|
if: ${{ !cancelled() }}
|
||||||
|
uses: ./.github/workflows/gen_emu_config-build-win.yml
|
||||||
|
|
||||||
gen_emu_script-win-prep:
|
gen_emu_script-win-prep:
|
||||||
needs: [ gen_emu_script-win ]
|
needs: [ gen_emu_script-win ]
|
||||||
runs-on: windows-2022
|
runs-on: windows-2022
|
||||||
|
Loading…
x
Reference in New Issue
Block a user