Skip to content

Commit

Permalink
enable PR builds to upload artifacts
Browse files Browse the repository at this point in the history
  • Loading branch information
roasterdave committed Jan 25, 2024
1 parent 452a5ae commit b616230
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 11 deletions.
26 changes: 16 additions & 10 deletions .appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,12 @@ clone_depth: 1
init:
# Sets the commit hash to "build version number" shown in appveyor build status, the build number keeps it unique
- ps: Update-AppveyorBuild -Version "$($env:APPVEYOR_REPO_COMMIT.substring(0,7)) ($env:APPVEYOR_BUILD_NUMBER)"
# Env used to enable artifact upload for PR builds by providing a valid file name, invalid for REPO builds
- ps: |
$env:artifact_prefix = 'disable_artifact'
if ([bool]$env:APPVEYOR_PULL_REQUEST_NUMBER -eq $true) {
$env:artifact_prefix = 'artisan'
}
branches:
only:
Expand Down Expand Up @@ -106,9 +112,9 @@ for:
# test_script:
# - cmd: python -m unittest discover

# artifacts:
artifacts:
# - path: 'generated-win-legacy.zip'
# - path: 'src\artisan-*.zip'
- path: 'src\%artifact_prefix%-*.zip'

deploy_script:
- cmd: bash ../.ci/upload.sh artisan-*.zip
Expand Down Expand Up @@ -175,9 +181,9 @@ for:
# test_script:
# - cmd: python -m unittest discover

# artifacts:
artifacts:
# - path: 'generated-win.zip'
# - path: 'src\artisan-*.zip'
- path: 'src\%artifact_prefix%-*.zip'

deploy_script:
- cmd: bash ../.ci/upload.sh artisan-*.zip
Expand Down Expand Up @@ -227,9 +233,9 @@ for:
# test_script:
# - python -m unittest discover -s src

# artifacts:
artifacts:
# - path: 'generated-macos.zip'
# - path: 'src/artisan-*.dmg'
- path: 'src/%artifact_prefix%-*.dmg'

deploy_script:
# we upgrade libidn2 and curl to prevent issues caused by the previous python update
Expand Down Expand Up @@ -287,11 +293,11 @@ for:
# test_script:
# - QT_QPA_PLATFORM=offscreen python -m unittest discover -s src

# artifacts:
artifacts:
# - path: 'generated-linux.zip'
# - path: 'src/artisan-*.deb'
# - path: 'src/artisan-*.rpm'
# - path: 'src/artisan-*.AppImage'
- path: 'src/%artifact_prefix%-*.deb'
- path: 'src/%artifact_prefix%-*.rpm'
- path: 'src/%artifact_prefix%-*.AppImage'

deploy_script:
- ../.ci/upload.sh artisan-*.deb
Expand Down
2 changes: 1 addition & 1 deletion wiki/HowToRunFromSource.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ While this document is presumed free of errors as of January 2024, there is no g

2. Install Python 3.11 from [python.org](https://www.python.org/)

>*Note for Windows: Python may also be installed from the Microsoft Store or by direct download from the link above. When installed from the Microsoft Store it is normally started using `python3` as shown below. When Python is installed by direct download it is normally started with the command `python`. Also note, the Windows command prompt is '>' where the macOS/Linux prompt is '#' as shown below.*
>*Note for Windows: Python may be installed from the Microsoft Store or by direct download from the link above. When installed from the Microsoft Store it is normally started using `python3` as shown below. When Python is installed by direct download it is normally started with the command `python`. Also note, the Windows command prompt is '>' where the macOS/Linux prompt is '#' as shown below.*

3. Create and activate a virtual environment
Expand Down

0 comments on commit b616230

Please sign in to comment.