remove hardcoded repo path + remove Git LFS flag since it's no longer needed

This commit is contained in:
otavepto 2023-12-20 15:07:01 +02:00 committed by otavepto
parent 098a490d3a
commit 62afce33ca
4 changed files with 4 additions and 28 deletions

View File

@ -11,14 +11,13 @@ on:
pull_request:
branches: [ "dev" ]
workflow_dispatch:
# nothing
# allows manual trigger
permissions:
contents: write
env:
ARTIFACT_NAME: "generate_emu_config-linux-${{ github.sha }}"
ARTIFACT_ROOT_PATH: "scripts/bin/linux"
PACKAGE_ROOT_PATH: "scripts/bin/package"
jobs:

View File

@ -11,18 +11,15 @@ on:
pull_request:
branches: [ "dev" ]
workflow_dispatch:
# nothing
# allows manual trigger
permissions:
contents: write
env:
ARTIFACT_NAME: "generate_emu_config-win-${{ github.sha }}"
ARTIFACT_ROOT_PATH: "scripts/bin/win"
PACKAGE_ROOT_PATH: "scripts/bin/package"
# Expected format {owner}/{repo}.
DEPS_REPO: 'otavepto/gbe_fork'
THIRD_PARTY_BASE_DIR: 'third-party'
jobs:
@ -41,7 +38,6 @@ jobs:
- name: Clone third-party deps (deps/win)
uses: actions/checkout@v4
with:
repository: "${{env.DEPS_REPO}}"
ref: 'third-party/deps/win'
path: "${{env.THIRD_PARTY_BASE_DIR}}/deps/win"

View File

@ -11,14 +11,12 @@ on:
pull_request:
branches: [ "dev" ]
workflow_dispatch:
# nothing
# allows manual trigger
permissions:
contents: write
env:
# Expected format {owner}/{repo}.
DEPS_REPO: 'otavepto/gbe_fork'
THIRD_PARTY_BASE_DIR: 'third-party'
DEPS_CACHE_KEY: emu-deps-linux
@ -48,19 +46,15 @@ jobs:
if: steps.emu-deps-cache-step.outputs.cache-hit != 'true'
uses: actions/checkout@v4
with:
repository: "${{env.DEPS_REPO}}"
ref: 'third-party/deps/linux'
path: "${{env.THIRD_PARTY_BASE_DIR}}/deps/linux"
lfs: true
- name: Clone third-party deps (deps/common)
if: steps.emu-deps-cache-step.outputs.cache-hit != 'true'
uses: actions/checkout@v4
with:
repository: "${{env.DEPS_REPO}}"
ref: 'third-party/deps/common'
path: "${{env.THIRD_PARTY_BASE_DIR}}/deps/common"
lfs: true
- name: Build deps
if: steps.emu-deps-cache-step.outputs.cache-hit != 'true'
@ -92,10 +86,8 @@ jobs:
- name: Clone third-party build helpers (build/linux)
uses: actions/checkout@v4
with:
repository: "${{env.DEPS_REPO}}"
ref: 'third-party/build/linux'
path: "${{env.THIRD_PARTY_BASE_DIR}}/build/linux"
lfs: true
### build + upload release
- name: Build release mode

View File

@ -11,14 +11,12 @@ on:
pull_request:
branches: [ "dev" ]
workflow_dispatch:
# nothing
# allows manual trigger
permissions:
contents: write
env:
# Expected format {owner}/{repo}.
DEPS_REPO: 'otavepto/gbe_fork'
THIRD_PARTY_BASE_DIR: 'third-party'
DEPS_CACHE_KEY: emu-deps-win
DEPS_CACHE_DIR: build-win-deps
@ -47,28 +45,22 @@ jobs:
if: steps.emu-deps-cache-step.outputs.cache-hit != 'true'
uses: actions/checkout@v4
with:
repository: "${{env.DEPS_REPO}}"
ref: 'third-party/deps/win'
path: "${{env.THIRD_PARTY_BASE_DIR}}/deps/win"
lfs: true
- name: Clone third-party deps (deps/common)
if: steps.emu-deps-cache-step.outputs.cache-hit != 'true'
uses: actions/checkout@v4
with:
repository: "${{env.DEPS_REPO}}"
ref: 'third-party/deps/common'
path: "${{env.THIRD_PARTY_BASE_DIR}}/deps/common"
lfs: true
- name: Clone third-party deps (common/win)
if: steps.emu-deps-cache-step.outputs.cache-hit != 'true'
uses: actions/checkout@v4
with:
repository: "${{env.DEPS_REPO}}"
ref: 'third-party/common/win'
path: "${{env.THIRD_PARTY_BASE_DIR}}/common/win"
lfs: true
- name: Build deps
if: steps.emu-deps-cache-step.outputs.cache-hit != 'true'
@ -97,15 +89,12 @@ jobs:
- name: Clone third-party build helpers (common/win)
uses: actions/checkout@v4
with:
repository: "${{env.DEPS_REPO}}"
ref: 'third-party/common/win'
path: "${{env.THIRD_PARTY_BASE_DIR}}/common/win"
lfs: true
- name: Clone third-party deps (deps/win)
uses: actions/checkout@v4
with:
repository: "${{env.DEPS_REPO}}"
ref: 'third-party/deps/win'
path: "${{env.THIRD_PARTY_BASE_DIR}}/deps/win"