mirror of
https://github.com/Detanup01/gbe_fork.git
synced 2024-11-23 19:25:35 +08:00
add workflow scripts for Windows & Linux for generate_emu_config
This commit is contained in:
parent
f2b937c9b5
commit
e19d2a423f
37
.github/workflows/build-gen_emu_config-linux.yml
vendored
Normal file
37
.github/workflows/build-gen_emu_config-linux.yml
vendored
Normal file
@ -0,0 +1,37 @@
|
|||||||
|
name: Generate emu config (Windows)
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [ "ci_runner" ]
|
||||||
|
# pull_request:
|
||||||
|
# branches: [ "ci_runner" ]
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: ubuntu-22.04
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Checkout branch
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Install dependencies
|
||||||
|
shell: bash
|
||||||
|
working-directory: ${{ github.workspace }}/scripts
|
||||||
|
run: sudo chmod 77 recreate_venv_linux.sh && ./recreate_venv_linux.sh
|
||||||
|
|
||||||
|
- name: Rebuild
|
||||||
|
shell: bash
|
||||||
|
working-directory: ${{ github.workspace }}/scripts
|
||||||
|
run: sudo chmod 77 rebuild_linux.sh && ./rebuild_linux.sh
|
||||||
|
|
||||||
|
- name: Upload build
|
||||||
|
uses: actions/upload-artifact@v4
|
||||||
|
with:
|
||||||
|
name: "generate_emu_config-linux-${{ github.sha }}"
|
||||||
|
path: 'scripts/bin/linux/'
|
||||||
|
if-no-files-found: 'error'
|
||||||
|
compression-level: 9
|
||||||
|
|
@ -3,17 +3,12 @@ name: Generate emu config (Windows)
|
|||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [ "ci_runner" ]
|
branches: [ "ci_runner" ]
|
||||||
pull_request:
|
# pull_request:
|
||||||
branches: [ "ci_runner" ]
|
# branches: [ "ci_runner" ]
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
|
|
||||||
env:
|
|
||||||
# Expected format {owner}/{repo}.
|
|
||||||
DEPS_REPO: 'otavepto/gbe_fork-deps'
|
|
||||||
THIRD_PARTY_BASE_DIR: 'third-party'
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: windows-2022
|
runs-on: windows-2022
|
||||||
@ -30,18 +25,18 @@ jobs:
|
|||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
shell: cmd
|
shell: cmd
|
||||||
working-directory: ${{ github.workspace }}/scripts
|
working-directory: ${{ github.workspace }}/scripts
|
||||||
run: recreate_venv.bat
|
run: recreate_venv_win.bat
|
||||||
|
|
||||||
- name: Rebuild
|
- name: Rebuild
|
||||||
shell: cmd
|
shell: cmd
|
||||||
working-directory: ${{ github.workspace }}/scripts
|
working-directory: ${{ github.workspace }}/scripts
|
||||||
run: rebuild.bat
|
run: rebuild_win.bat
|
||||||
|
|
||||||
- name: Upload build
|
- name: Upload build
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: "generate_emu_config-win-${{ github.sha }}"
|
name: "generate_emu_config-win-${{ github.sha }}"
|
||||||
path: 'scripts/bin/generate_emu_config/'
|
path: 'scripts/bin/win/'
|
||||||
if-no-files-found: 'error'
|
if-no-files-found: 'error'
|
||||||
compression-level: 9
|
compression-level: 9
|
||||||
|
|
Loading…
Reference in New Issue
Block a user