mirror of
https://github.com/ivabus/pantry
synced 2024-11-26 18:25:08 +03:00
+swiftlint (#1549)
* +swiftlint * test brewkit fixes * brewkit 0.31.1 --------- Co-authored-by: Jacob Heider <jacob@tea.xyz>
This commit is contained in:
parent
899e3c215c
commit
f1bd915135
2 changed files with 36 additions and 13 deletions
23
.github/workflows/build.yml
vendored
23
.github/workflows/build.yml
vendored
|
@ -48,14 +48,14 @@ jobs:
|
||||||
- uses: teaxyz/brewkit/actions/setup-codesign@v0
|
- uses: teaxyz/brewkit/actions/setup-codesign@v0
|
||||||
if: startsWith(inputs.platform, 'darwin+') && github.event.pull_request.head.repo.full_name == github.event.pull_request.base.repo.full_name
|
if: startsWith(inputs.platform, 'darwin+') && github.event.pull_request.head.repo.full_name == github.event.pull_request.base.repo.full_name
|
||||||
with:
|
with:
|
||||||
p12-file-base64: ${{ secrets.APPLE_CERTIFICATE_P12 }}
|
p12-file-base64: ${{ secrets.APPLE_CERTIFICATE_P12 }}
|
||||||
p12-password: ${{ secrets.APPLE_CERTIFICATE_P12_PASSWORD }}
|
p12-password: ${{ secrets.APPLE_CERTIFICATE_P12_PASSWORD }}
|
||||||
|
|
||||||
- run: pkg build ${{ needs.get-platform.outputs.available }}
|
- run: pkg build ${{ needs.get-platform.outputs.available }}
|
||||||
id: build
|
id: build
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ github.token }}
|
GITHUB_TOKEN: ${{ github.token }}
|
||||||
FORCE_UNSAFE_CONFIGURE: 1 # some configure scripts refuse to run as root
|
FORCE_UNSAFE_CONFIGURE: 1 # some configure scripts refuse to run as root
|
||||||
APPLE_IDENTITY: ${{ secrets.APPLE_IDENTITY || '-' }}
|
APPLE_IDENTITY: ${{ secrets.APPLE_IDENTITY || '-' }}
|
||||||
|
|
||||||
- run: |
|
- run: |
|
||||||
|
@ -77,11 +77,10 @@ jobs:
|
||||||
# tarring ourselves ∵ GHA-artifacts (ludicrously) lose permissions
|
# tarring ourselves ∵ GHA-artifacts (ludicrously) lose permissions
|
||||||
# /ref https://github.com/actions/upload-artifact/issues/38
|
# /ref https://github.com/actions/upload-artifact/issues/38
|
||||||
- name: create artifacts.tgz
|
- name: create artifacts.tgz
|
||||||
run:
|
run: tar czvf $GITHUB_WORKSPACE/artifacts.tgz
|
||||||
tar czvf $GITHUB_WORKSPACE/artifacts.tgz
|
${{ steps.build.outputs.relative-paths }}
|
||||||
${{ steps.build.outputs.relative-paths }}
|
${{ steps.build.outputs.srcs-relative-paths }}
|
||||||
${{ steps.build.outputs.srcs-relative-paths }}
|
built srcs
|
||||||
built srcs
|
|
||||||
working-directory: ${{ steps.tea.outputs.prefix }}
|
working-directory: ${{ steps.tea.outputs.prefix }}
|
||||||
|
|
||||||
- name: upload artifacts
|
- name: upload artifacts
|
||||||
|
@ -98,8 +97,7 @@ jobs:
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
platform: ${{ fromJson(needs.get-platform.outputs.test-matrix) }}
|
platform: ${{ fromJson(needs.get-platform.outputs.test-matrix) }}
|
||||||
name:
|
name: test ${{ matrix.platform.name-extra }}
|
||||||
test ${{ matrix.platform.name-extra }}
|
|
||||||
outputs:
|
outputs:
|
||||||
HAS_SECRETS: ${{ env.HAS_SECRETS }}
|
HAS_SECRETS: ${{ env.HAS_SECRETS }}
|
||||||
container: ${{ matrix.platform.container }}
|
container: ${{ matrix.platform.container }}
|
||||||
|
@ -136,9 +134,8 @@ jobs:
|
||||||
# ubuntu+container test matrix entries. :/
|
# ubuntu+container test matrix entries. :/
|
||||||
TEA_PANTRY_PATH: ${{ github.workspace }}
|
TEA_PANTRY_PATH: ${{ github.workspace }}
|
||||||
|
|
||||||
- name: '[post]'
|
- name: "[post]"
|
||||||
run:
|
run: echo "HAS_SECRETS=$HAS_SECRETS" >>$GITHUB_ENV
|
||||||
echo "HAS_SECRETS=$HAS_SECRETS" >>$GITHUB_ENV
|
|
||||||
env:
|
env:
|
||||||
HAS_SECRETS: ${{ secrets.AWS_S3_CACHE != null }}
|
HAS_SECRETS: ${{ secrets.AWS_S3_CACHE != null }}
|
||||||
|
|
||||||
|
|
26
projects/github.com/realm/SwiftLint/package.yml
Normal file
26
projects/github.com/realm/SwiftLint/package.yml
Normal file
|
@ -0,0 +1,26 @@
|
||||||
|
distributable:
|
||||||
|
url: https://github.com/realm/SwiftLint/archive/refs/tags/{{version}}.tar.gz
|
||||||
|
strip-components: 1
|
||||||
|
|
||||||
|
versions:
|
||||||
|
github: realm/SwiftLint/releases/tags
|
||||||
|
|
||||||
|
platforms:
|
||||||
|
- darwin
|
||||||
|
|
||||||
|
provides:
|
||||||
|
- bin/swiftlint
|
||||||
|
|
||||||
|
warnings:
|
||||||
|
- vendored
|
||||||
|
|
||||||
|
build:
|
||||||
|
working-directory: vendor
|
||||||
|
script: |
|
||||||
|
curl -Lfo swiftlint.zip "https://github.com/realm/SwiftLint/releases/download/{{version}}/portable_swiftlint.zip"
|
||||||
|
unzip -o swiftlint.zip
|
||||||
|
mkdir -p "{{prefix}}/bin"
|
||||||
|
mv swiftlint "{{prefix}}/bin"
|
||||||
|
|
||||||
|
test:
|
||||||
|
script: test "$(swiftlint --version)" = {{version}}
|
Loading…
Reference in a new issue