reduce to ubuntu-os, fixed release build name using the correct halconfig

This commit is contained in:
Tim Huyeng 2022-11-01 11:33:27 +01:00
parent 06286fafa7
commit fe156d006d
2 changed files with 9 additions and 7 deletions

View File

@ -13,7 +13,8 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
os: [ubuntu-latest]
# os: [ubuntu-latest, windows-latest, macos-latest]
include:
- os: ubuntu-latest
path: ~/.cache/pip
@ -57,7 +58,7 @@ jobs:
cp src/paxcounter_orig.conf src/paxcounter.conf
- name: Clean
run: pio run -t clean -e ci
- name: Run PlatformIO Test
- name: Run PlatformIO CI for ${{ matrix.board }}
env:
CI_HALFILE: ${{ matrix.board }}
run: pio run -e ci

View File

@ -28,13 +28,14 @@ haldir = os.path.join (srcdir, "hal")
# check if hal file is present in source directory
halconfig = config.get("board", "halfile")
# check if hal file is not set by ENV CI_HALFILE
if not os.getenv("CI_HALFILE"):
halconfigfile = os.path.join (haldir, halconfig)
else:
# check if hal file is set by ENV CI_HALFILE
if os.getenv("CI_HALFILE"):
# if set, use ENV CI_HALFILE
print("CI_HALFILE ENV FOUND")
halconfigfile = os.path.join (haldir,os.getenv("CI_HALFILE"))
# override halconfig
halconfig = os.getenv("CI_HALFILE")
halconfigfile = os.path.join (haldir, halconfig)
if os.path.isfile(halconfigfile) and os.access(halconfigfile, os.R_OK):
print("Parsing hardware configuration from " + halconfigfile)