mirror of
https://github.com/Detanup01/gbe_fork.git
synced 2025-01-13 02:43:54 +08:00
update gen_emu_config workflow scripts to use the new folder structure
This commit is contained in:
parent
b568153772
commit
90fb3d7f65
13
.github/workflows/build-gen_emu_config-linux.yml
vendored
13
.github/workflows/build-gen_emu_config-linux.yml
vendored
@ -18,7 +18,8 @@ permissions:
|
|||||||
|
|
||||||
env:
|
env:
|
||||||
ARTIFACT_NAME: "generate_emu_config-linux-${{ github.sha }}"
|
ARTIFACT_NAME: "generate_emu_config-linux-${{ github.sha }}"
|
||||||
PACKAGE_ROOT_PATH: "script_generate_emu_config/bin/package"
|
SCRIPT_BASE_DIR: "${{ github.workspace }}/tools/generate_emu_config"
|
||||||
|
PACKAGE_BASE_DIR: "${{ github.workspace }}/tools/generate_emu_confi/bin/package"
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
@ -30,24 +31,24 @@ jobs:
|
|||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
shell: bash
|
shell: bash
|
||||||
working-directory: ${{ github.workspace }}/script_generate_emu_config
|
working-directory: "${{ env.SCRIPT_BASE_DIR }}"
|
||||||
run: sudo chmod 77 recreate_venv_linux.sh && sudo ./recreate_venv_linux.sh
|
run: sudo chmod 77 recreate_venv_linux.sh && sudo ./recreate_venv_linux.sh
|
||||||
|
|
||||||
- name: Rebuild
|
- name: Rebuild
|
||||||
shell: bash
|
shell: bash
|
||||||
working-directory: ${{ github.workspace }}/script_generate_emu_config
|
working-directory: "${{ env.SCRIPT_BASE_DIR }}"
|
||||||
run: sudo chmod 77 rebuild_linux.sh && sudo ./rebuild_linux.sh
|
run: sudo chmod 77 rebuild_linux.sh && sudo ./rebuild_linux.sh
|
||||||
|
|
||||||
- name: Package build
|
- name: Package build
|
||||||
shell: bash
|
shell: bash
|
||||||
working-directory: ${{ github.workspace }}/script_generate_emu_config
|
working-directory: "${{ env.SCRIPT_BASE_DIR }}"
|
||||||
run: sudo chmod 77 package_linux.sh && sudo ./package_linux.sh
|
run: sudo chmod 77 package_linux.sh && sudo ./package_linux.sh
|
||||||
|
|
||||||
- name: Upload build package
|
- name: Upload build package
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: "${{ env.ARTIFACT_NAME }}"
|
name: "${{ env.ARTIFACT_NAME }}"
|
||||||
path: "${{ env.PACKAGE_ROOT_PATH }}/linux/"
|
path: "${{ env.PACKAGE_BASE_DIR }}/linux/"
|
||||||
if-no-files-found: 'error'
|
if-no-files-found: 'error'
|
||||||
compression-level: 9
|
compression-level: 9
|
||||||
retention-days: 1
|
retention-days: 1
|
||||||
@ -56,5 +57,5 @@ jobs:
|
|||||||
if: startsWith(github.ref, 'refs/tags/')
|
if: startsWith(github.ref, 'refs/tags/')
|
||||||
uses: softprops/action-gh-release@v1
|
uses: softprops/action-gh-release@v1
|
||||||
with:
|
with:
|
||||||
files: "${{ env.PACKAGE_ROOT_PATH }}/**/*"
|
files: "${{ env.PACKAGE_BASE_DIR }}/**/*"
|
||||||
|
|
14
.github/workflows/build-gen_emu_config-win.yml
vendored
14
.github/workflows/build-gen_emu_config-win.yml
vendored
@ -18,9 +18,11 @@ permissions:
|
|||||||
|
|
||||||
env:
|
env:
|
||||||
ARTIFACT_NAME: "generate_emu_config-win-${{ github.sha }}"
|
ARTIFACT_NAME: "generate_emu_config-win-${{ github.sha }}"
|
||||||
PACKAGE_ROOT_PATH: "script_generate_emu_config/bin/package"
|
SCRIPT_BASE_DIR: "${{ github.workspace }}/tools/generate_emu_config"
|
||||||
|
PACKAGE_BASE_DIR: "${{ github.workspace }}/tools/generate_emu_confi/bin/package"
|
||||||
|
|
||||||
THIRD_PARTY_BASE_DIR: 'third-party'
|
THIRD_PARTY_BASE_DIR: 'third-party'
|
||||||
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
@ -43,24 +45,24 @@ jobs:
|
|||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
shell: cmd
|
shell: cmd
|
||||||
working-directory: ${{ github.workspace }}/script_generate_emu_config
|
working-directory: "${{ env.SCRIPT_BASE_DIR }}"
|
||||||
run: recreate_venv_win.bat
|
run: recreate_venv_win.bat
|
||||||
|
|
||||||
- name: Rebuild
|
- name: Rebuild
|
||||||
shell: cmd
|
shell: cmd
|
||||||
working-directory: ${{ github.workspace }}/script_generate_emu_config
|
working-directory: "${{ env.SCRIPT_BASE_DIR }}"
|
||||||
run: rebuild_win.bat
|
run: rebuild_win.bat
|
||||||
|
|
||||||
- name: Package build
|
- name: Package build
|
||||||
shell: cmd
|
shell: cmd
|
||||||
working-directory: ${{ github.workspace }}/script_generate_emu_config
|
working-directory: "${{ env.SCRIPT_BASE_DIR }}"
|
||||||
run: package_win.bat
|
run: package_win.bat
|
||||||
|
|
||||||
- name: Upload build package
|
- name: Upload build package
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: "${{ env.ARTIFACT_NAME }}"
|
name: "${{ env.ARTIFACT_NAME }}"
|
||||||
path: "${{ env.PACKAGE_ROOT_PATH }}/win/"
|
path: "${{ env.PACKAGE_BASE_DIR }}/win/"
|
||||||
if-no-files-found: 'error'
|
if-no-files-found: 'error'
|
||||||
compression-level: 9
|
compression-level: 9
|
||||||
retention-days: 1
|
retention-days: 1
|
||||||
@ -69,5 +71,5 @@ jobs:
|
|||||||
if: startsWith(github.ref, 'refs/tags/')
|
if: startsWith(github.ref, 'refs/tags/')
|
||||||
uses: softprops/action-gh-release@v1
|
uses: softprops/action-gh-release@v1
|
||||||
with:
|
with:
|
||||||
files: "${{ env.PACKAGE_ROOT_PATH }}/**/*"
|
files: "${{ env.PACKAGE_BASE_DIR }}/**/*"
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user