build: Use argparse for CLI arguments in build script

This commit is contained in:
Lars Toenning
2024-06-11 23:10:47 +02:00
parent c96889bae8
commit 207d288ae7
2 changed files with 25 additions and 57 deletions

View File

@@ -156,7 +156,7 @@ jobs:
- name: Build swift (with symbols)
if: ${{ env.do_symbols == 'true' }}
run: |
python3 -u scripts/build.py -w 64 -t gcc -c "-DVATSIM_KEY_JSON=$vatsim_key_file" --upload
python3 -u scripts/build.py -w 64 -t gcc -c "-DVATSIM_KEY_JSON=$vatsim_key_file" --upload-symbols
- name: Upload installer
uses: actions/upload-artifact@v4
with:
@@ -254,7 +254,7 @@ jobs:
- name: Build swift (with symbols)
if: ${{ env.do_symbols == 'true' }}
run: |
python -u scripts/build.py -w 64 -t msvc -c "-DVATSIM_KEY_JSON=$env:vatsim_key_file" --upload
python -u scripts/build.py -w 64 -t msvc -c "-DVATSIM_KEY_JSON=$env:vatsim_key_file" --upload-symbols
- name: Upload installer
uses: actions/upload-artifact@v4
with:
@@ -352,7 +352,7 @@ jobs:
- name: Build swift (with symbols)
if: ${{ env.do_symbols == 'true' }}
run: |
python -u scripts/build.py -w 32 -t msvc -c "-DVATSIM_KEY_JSON=$env:vatsim_key_file" --upload
python -u scripts/build.py -w 32 -t msvc -c "-DVATSIM_KEY_JSON=$env:vatsim_key_file" --upload-symbols
- name: Upload installer
uses: actions/upload-artifact@v4
with:
@@ -440,7 +440,7 @@ jobs:
- name: Build swift (with symbols)
if: ${{ env.do_symbols == 'true' }}
run: |
python3 -u scripts/build.py -w 64 -t clang -c "-DVATSIM_KEY_JSON=$vatsim_key_file" --upload
python3 -u scripts/build.py -w 64 -t clang -c "-DVATSIM_KEY_JSON=$vatsim_key_file" --upload-symbols
- name: Upload installer
uses: actions/upload-artifact@v4
with: