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:
|
||||
push:
|
||||
branches: [ "ci_runner" ]
|
||||
pull_request:
|
||||
branches: [ "ci_runner" ]
|
||||
# pull_request:
|
||||
# branches: [ "ci_runner" ]
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
env:
|
||||
# Expected format {owner}/{repo}.
|
||||
DEPS_REPO: 'otavepto/gbe_fork-deps'
|
||||
THIRD_PARTY_BASE_DIR: 'third-party'
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: windows-2022
|
||||
@ -30,18 +25,18 @@ jobs:
|
||||
- name: Install dependencies
|
||||
shell: cmd
|
||||
working-directory: ${{ github.workspace }}/scripts
|
||||
run: recreate_venv.bat
|
||||
run: recreate_venv_win.bat
|
||||
|
||||
- name: Rebuild
|
||||
shell: cmd
|
||||
working-directory: ${{ github.workspace }}/scripts
|
||||
run: rebuild.bat
|
||||
run: rebuild_win.bat
|
||||
|
||||
- name: Upload build
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: "generate_emu_config-win-${{ github.sha }}"
|
||||
path: 'scripts/bin/generate_emu_config/'
|
||||
path: 'scripts/bin/win/'
|
||||
if-no-files-found: 'error'
|
||||
compression-level: 9
|
||||
|
Loading…
Reference in New Issue
Block a user