2023-07-21 00:25:10 +03:00
|
|
|
distributable:
|
|
|
|
url: https://github.com/krzysztofzablocki/Sourcery/releases/download/{{version}}/Sourcery-{{version}}.zip
|
|
|
|
|
|
|
|
versions:
|
|
|
|
github: krzysztofzablocki/Sourcery
|
|
|
|
|
|
|
|
platforms:
|
|
|
|
- darwin
|
|
|
|
|
|
|
|
provides:
|
|
|
|
- bin/sourcery
|
|
|
|
|
|
|
|
warnings:
|
|
|
|
- vendored
|
|
|
|
|
|
|
|
build:
|
|
|
|
working-directory: ${{prefix}}/bin
|
2024-01-16 21:18:10 +03:00
|
|
|
script:
|
|
|
|
- run: install "$SRCROOT"/bin/sourcery .
|
2024-01-23 22:15:54 +03:00
|
|
|
if: <2.1.4 || >=2.1.7
|
2024-01-16 21:18:10 +03:00
|
|
|
- run: install "$SRCROOT"/sourcery-{{version}}/bin/sourcery .
|
2024-01-23 22:15:54 +03:00
|
|
|
if: '>=2.1.4<2.1.7'
|
2023-07-21 00:25:10 +03:00
|
|
|
|
2024-01-16 21:18:10 +03:00
|
|
|
test:
|
|
|
|
- run: test "$(sourcery --version)" = "{{version}}"
|
|
|
|
if: <2.1.4
|
|
|
|
# 2.1.4 has the wrong version
|
|
|
|
- run: sourcery --version
|
2024-01-23 22:15:54 +03:00
|
|
|
if: 2.1.4
|
2023-07-24 23:14:53 +03:00
|
|
|
|
|
|
|
display-name: Sourcery
|