mirror of
https://github.com/Detanup01/gbe_fork_tools.git
synced 2026-02-04 05:21:17 +01:00
add old gen_emu and workflows for it
This commit is contained in:
52
.github/workflows/gen_emu_config_old-build-linux.yml
vendored
Normal file
52
.github/workflows/gen_emu_config_old-build-linux.yml
vendored
Normal file
@@ -0,0 +1,52 @@
|
||||
name: "Build gen_emu_config_old script (Linux)"
|
||||
|
||||
on:
|
||||
workflow_call:
|
||||
# needed since it allows this to become a reusable workflow
|
||||
workflow_dispatch:
|
||||
# allows manual trigger
|
||||
|
||||
permissions:
|
||||
contents: "write"
|
||||
|
||||
env:
|
||||
ARTIFACT_NAME: "gen_emu_config_old-linux-${{ github.sha }}"
|
||||
SCRIPT_BASE_DIR: "generate_emu_config_old"
|
||||
PACKAGE_BASE_DIR: "generate_emu_config_old/bin/linux"
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: "ubuntu-20.04"
|
||||
|
||||
steps:
|
||||
- name: "Checkout branch"
|
||||
uses: actions/checkout@v4
|
||||
|
||||
# env
|
||||
- name: "Install env"
|
||||
shell: "bash"
|
||||
working-directory: "${{ env.SCRIPT_BASE_DIR }}"
|
||||
run: sudo chmod 777 recreate_venv_linux.sh && sudo ./recreate_venv_linux.sh
|
||||
|
||||
# fix folder permissions! not sure why this fails
|
||||
# nested subdirs "build/linux/release" cause permission problems
|
||||
- name: "Give all permissions to repo folder"
|
||||
shell: "bash"
|
||||
working-directory: "${{ github.workspace }}"
|
||||
run: sudo chmod -R 777 "${{ github.workspace }}"
|
||||
|
||||
# build
|
||||
- name: "Rebuild"
|
||||
shell: "bash"
|
||||
working-directory: "${{ env.SCRIPT_BASE_DIR }}"
|
||||
run: sudo chmod 777 rebuild_linux.sh && ./rebuild_linux.sh
|
||||
|
||||
# upload artifact
|
||||
- name: "Upload build package"
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: "${{ env.ARTIFACT_NAME }}"
|
||||
path: "${{ env.PACKAGE_BASE_DIR }}/"
|
||||
if-no-files-found: "error"
|
||||
compression-level: 9
|
||||
retention-days: 1
|
||||
61
.github/workflows/gen_emu_config_old-build-win.yml
vendored
Normal file
61
.github/workflows/gen_emu_config_old-build-win.yml
vendored
Normal file
@@ -0,0 +1,61 @@
|
||||
name: "Build gen_emu_config_old script (Windows)"
|
||||
|
||||
on:
|
||||
workflow_call:
|
||||
# needed since it allows this to become a reusable workflow
|
||||
workflow_dispatch:
|
||||
# allows manual trigger
|
||||
|
||||
permissions:
|
||||
contents: "write"
|
||||
|
||||
env:
|
||||
ARTIFACT_NAME: "gen_emu_config_old-win-${{ github.sha }}"
|
||||
SCRIPT_BASE_DIR: "generate_emu_config_old"
|
||||
PACKAGE_BASE_DIR: "generate_emu_config_old/bin/win"
|
||||
|
||||
THIRD_PARTY_BASE_DIR: "third-party"
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: "windows-2022"
|
||||
|
||||
steps:
|
||||
- name: "Set up Python"
|
||||
uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: "3.12"
|
||||
|
||||
### on Windows Git will auto change line ending to CRLF, not preferable
|
||||
- name: "Ensure LF line ending"
|
||||
shell: "cmd"
|
||||
working-directory: "${{ github.workspace }}"
|
||||
run: |
|
||||
git config --local core.autocrlf false
|
||||
git config --system core.autocrlf false
|
||||
git config --global core.autocrlf false
|
||||
|
||||
- name: "Checkout branch"
|
||||
uses: actions/checkout@v4
|
||||
|
||||
# env
|
||||
- name: "Install env"
|
||||
shell: "cmd"
|
||||
working-directory: "${{ env.SCRIPT_BASE_DIR }}"
|
||||
run: recreate_venv_win.bat
|
||||
|
||||
# build
|
||||
- name: "Rebuild"
|
||||
shell: "cmd"
|
||||
working-directory: "${{ env.SCRIPT_BASE_DIR }}"
|
||||
run: rebuild_win.bat
|
||||
|
||||
# upload artifact
|
||||
- name: "Upload build package"
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: "${{ env.ARTIFACT_NAME }}"
|
||||
path: "${{ env.PACKAGE_BASE_DIR }}/"
|
||||
if-no-files-found: "error"
|
||||
compression-level: 9
|
||||
retention-days: 1
|
||||
22
.github/workflows/gen_emu_config_old-pull-request.yml
vendored
Normal file
22
.github/workflows/gen_emu_config_old-pull-request.yml
vendored
Normal file
@@ -0,0 +1,22 @@
|
||||
name: "Gen emu cfg old PR"
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
branches: ["dev"]
|
||||
paths:
|
||||
- "!**/*.md"
|
||||
- "generate_emu_config_old/**"
|
||||
|
||||
permissions:
|
||||
contents: "write"
|
||||
|
||||
jobs:
|
||||
script-win:
|
||||
name: "Gen emu config win"
|
||||
if: ${{ !cancelled() }}
|
||||
uses: "./.github/workflows/gen_emu_config_old-build-win.yml"
|
||||
|
||||
script-linux:
|
||||
name: "Gen emu config linux"
|
||||
if: ${{ !cancelled() }}
|
||||
uses: "./.github/workflows/gen_emu_config_old-build-linux.yml"
|
||||
Reference in New Issue
Block a user