+ fix workspace variable usage in all workflow scripts

+ chmod 777 linux build script before running it & use sudo
This commit is contained in:
ota 2023-12-16 07:25:21 +02:00 committed by otavepto
parent 62284e3427
commit 4c89a18dda
3 changed files with 12 additions and 13 deletions

View File

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

View File

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

View File

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