mirror of
https://github.com/Detanup01/gbe_fork.git
synced 2024-12-24 09:24:15 +08:00
+ fix workspace variable usage in all workflow scripts
+ chmod 777 linux build script before running it & use sudo
This commit is contained in:
parent
62284e3427
commit
4c89a18dda
10
.github/workflows/build-gen_emu_config.yml
vendored
10
.github/workflows/build-gen_emu_config.yml
vendored
@ -19,22 +19,22 @@ jobs:
|
||||
runs-on: windows-2022
|
||||
|
||||
steps:
|
||||
- name: Checkout branch
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Set up Python 3.10
|
||||
uses: actions/setup-python@v3
|
||||
with:
|
||||
python-version: "3.10"
|
||||
|
||||
- name: Checkout branch
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Install dependencies
|
||||
shell: cmd
|
||||
working-directory: ${{env.GITHUB_WORKSPACE}}/scripts
|
||||
working-directory: ${{ github.workspace }}/scripts
|
||||
run: recreate_venv.bat
|
||||
|
||||
- name: Rebuild
|
||||
shell: cmd
|
||||
working-directory: ${{env.GITHUB_WORKSPACE}}/scripts
|
||||
working-directory: ${{ github.workspace }}/scripts
|
||||
run: rebuild.bat
|
||||
|
||||
- name: Upload build
|
||||
|
9
.github/workflows/build-linux.yml
vendored
9
.github/workflows/build-linux.yml
vendored
@ -53,8 +53,7 @@ jobs:
|
||||
- name: Build deps
|
||||
if: steps.cache-deps-linux.outputs.cache-hit != 'true'
|
||||
shell: bash
|
||||
working-directory: ${{env.GITHUB_WORKSPACE}}
|
||||
run: sudo ./build_linux_deps.sh
|
||||
run: sudo chmod 777 build_linux_deps.sh && sudo ./build_linux_deps.sh
|
||||
|
||||
|
||||
build:
|
||||
@ -85,8 +84,8 @@ jobs:
|
||||
### build + upload release
|
||||
- name: Build release mode
|
||||
shell: bash
|
||||
working-directory: ${{env.GITHUB_WORKSPACE}}
|
||||
run: build_linux.sh release
|
||||
working-directory: ${{ github.workspace }}
|
||||
run: "sudo chmod 777 build_linux.sh && ./build_linux.sh release"
|
||||
|
||||
- name: Upload build (release)
|
||||
uses: actions/upload-artifact@v4
|
||||
@ -99,7 +98,7 @@ jobs:
|
||||
### build + upload debug
|
||||
- name: Build debug mode
|
||||
shell: bash
|
||||
working-directory: ${{env.GITHUB_WORKSPACE}}
|
||||
working-directory: ${{ github.workspace }}
|
||||
run: build_linux.sh debug
|
||||
|
||||
- name: Upload build (debug)
|
||||
|
6
.github/workflows/build-win.yml
vendored
6
.github/workflows/build-win.yml
vendored
@ -62,7 +62,7 @@ jobs:
|
||||
- name: Build deps
|
||||
if: steps.cache-deps-win.outputs.cache-hit != 'true'
|
||||
shell: cmd
|
||||
working-directory: ${{env.GITHUB_WORKSPACE}}
|
||||
working-directory: ${{ github.workspace }}
|
||||
run: build_win_deps.bat
|
||||
|
||||
|
||||
@ -94,7 +94,7 @@ jobs:
|
||||
### build + upload release
|
||||
- name: Build release mode
|
||||
shell: cmd
|
||||
working-directory: ${{env.GITHUB_WORKSPACE}}
|
||||
working-directory: ${{ github.workspace }}
|
||||
run: build_win.bat release
|
||||
|
||||
- name: Upload build (release)
|
||||
@ -108,7 +108,7 @@ jobs:
|
||||
### build + upload debug
|
||||
- name: Build debug mode
|
||||
shell: cmd
|
||||
working-directory: ${{env.GITHUB_WORKSPACE}}
|
||||
working-directory: ${{ github.workspace }}
|
||||
run: build_win.bat debug
|
||||
|
||||
- name: Upload build (debug)
|
||||
|
Loading…
x
Reference in New Issue
Block a user