Skip to content

Commit

Permalink
configurable platforms
Browse files Browse the repository at this point in the history
  • Loading branch information
wh201906 committed May 18, 2023
1 parent 1e7f92f commit be94fdb
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 4 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ jobs:
runs-on: ubuntu-22.04
outputs:
refs: ${{ steps.load_step.outputs.refs }}
platforms: ${{ steps.load_step.outputs.platforms }}
steps:
- name: Checkout
uses: actions/checkout@v3
Expand Down Expand Up @@ -72,6 +73,8 @@ jobs:
$psversion = (Select-String -Pattern 'PSVERSION=' -SimpleMatch -Path "C:\ProxSpace\setup\09-proxspace_setup.post").Line.Split("""")[1]
Write-Host "ProxSpace version: $psversion"
# no need to install qt5 group
# qt5-base is enough
- name: ProxSpace simplify
if: ${{ !contains(steps.check-cache.outcome, 'success') }}
run: |
Expand All @@ -89,7 +92,7 @@ jobs:
fail-fast: false
matrix:
ref: ${{ fromJSON(needs.load_conf.outputs.refs) }}
platform: [PM3RDV4, PM3GENERIC, RDV4BTADDON, GENERICWITHFLASH]
platform: ${{ fromJSON(needs.load_conf.outputs.platforms) }}
defaults:
run:
shell: pwsh
Expand Down Expand Up @@ -141,7 +144,7 @@ jobs:
git checkout ${{ env.MATRIX_REF }}
echo ${{ env.MATRIX_REF }}
- name: Checkout
- name: Checkout builder
uses: actions/checkout@v3

- name: Create Makefile.platform
Expand All @@ -160,6 +163,6 @@ jobs:
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: client_${{ matrix.ref }}
name: client_${{ matrix.ref }}_${{ matrix.platform }}
path: |
C:/ProxSpace/builds/**/*.7z
9 changes: 8 additions & 1 deletion config.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,12 @@
"master",
"v4.16191",
"v4.15864"
],
"//": "available platform name: PM3RDV4, PM3GENERIC, RDV4BTADDON, GENERICWITHFLASH",
"platforms": [
"PM3RDV4",
"PM3GENERIC",
"RDV4BTADDON",
"GENERICWITHFLASH"
]
}
}
1 change: 1 addition & 0 deletions loadConf.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@
with open(environ["GITHUB_OUTPUT"], "a") as f:
# the keys there matches the keys in jobs->load_conf->outputs of build.yml
f.write("refs=" + str(conf["refs"]) + "\n")
f.write("platforms=" + str(conf["platforms"]) + "\n")

0 comments on commit be94fdb

Please sign in to comment.