add workflow scripts for Windows & Linux for generate_emu_config

This commit is contained in:
ota 2023-12-16 09:55:36 +02:00 committed by otavepto
parent f2b937c9b5
commit e19d2a423f
2 changed files with 42 additions and 10 deletions

View 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

View File

@ -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