mirror of
https://github.com/ivabus/pantry
synced 2024-11-30 04:05:06 +03:00
move codesigning before tests, since it can affect them
This commit is contained in:
parent
f37576096c
commit
f7ac88207e
2 changed files with 20 additions and 16 deletions
15
.github/workflows/bottle.yml
vendored
15
.github/workflows/bottle.yml
vendored
|
@ -75,23 +75,10 @@ jobs:
|
||||||
- run: tar xzvf artifacts.tgz
|
- run: tar xzvf artifacts.tgz
|
||||||
|
|
||||||
- run: |
|
- run: |
|
||||||
for file in built relative-paths srcs; do
|
for file in built srcs; do
|
||||||
echo "$file=$(cat $file)" >>$GITHUB_ENV
|
echo "$file=$(cat $file)" >>$GITHUB_ENV
|
||||||
done
|
done
|
||||||
|
|
||||||
- uses: actions/checkout@v3
|
|
||||||
if: startsWith(inputs.platform, 'darwin+')
|
|
||||||
with:
|
|
||||||
path: pantry
|
|
||||||
repository: teaxyz/pantry.core
|
|
||||||
- uses: ./pantry/.github/actions/apple-signing
|
|
||||||
if: startsWith(inputs.platform, 'darwin+')
|
|
||||||
with:
|
|
||||||
p12-file-base64: ${{ secrets.APPLE_CERTIFICATE_P12 }}
|
|
||||||
p12-password: ${{ secrets.APPLE_CERTIFICATE_P12_PASSWORD }}
|
|
||||||
identity: "Developer ID Application: Tea Inc. (7WV56FL599)"
|
|
||||||
paths: ${{ env.relative-paths}}
|
|
||||||
|
|
||||||
- run: |
|
- run: |
|
||||||
tea +gnupg.org gpg-agent --daemon || true
|
tea +gnupg.org gpg-agent --daemon || true
|
||||||
echo $GPG_PRIVATE_KEY | \
|
echo $GPG_PRIVATE_KEY | \
|
||||||
|
|
21
.github/workflows/build.yml
vendored
21
.github/workflows/build.yml
vendored
|
@ -72,11 +72,28 @@ jobs:
|
||||||
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
|
||||||
|
|
||||||
|
- run: |
|
||||||
|
ABS_PATHS=$(echo $PATHS | tr ' ' '\n' | sed -e "s_^_$TEA_PREFIX/_" | tr '\n' ' ')
|
||||||
|
echo "paths=$ABS_PATHS" >> $GITHUB_OUTPUT
|
||||||
|
if: startsWith(inputs.platform, 'darwin+')
|
||||||
|
id: absolute-paths
|
||||||
|
env:
|
||||||
|
PATHS: ${{ steps.build.outputs.relative-paths }}
|
||||||
|
TEA_PREFIX: ${{ steps.tea.outputs.prefix }}
|
||||||
|
|
||||||
|
# sign macOS binaries
|
||||||
|
- uses: teaxyz/pantry.core/.github/actions/apple-signing@main
|
||||||
|
if: startsWith(inputs.platform, 'darwin+')
|
||||||
|
with:
|
||||||
|
p12-file-base64: ${{ secrets.APPLE_CERTIFICATE_P12 }}
|
||||||
|
p12-password: ${{ secrets.APPLE_CERTIFICATE_P12_PASSWORD }}
|
||||||
|
identity: "Developer ID Application: Tea Inc. (7WV56FL599)"
|
||||||
|
paths: ${{ steps.absolute-paths.outputs.paths }}
|
||||||
|
|
||||||
# cache data we'll need in the bottling job
|
# cache data we'll need in the bottling job
|
||||||
- name: assemble artifact metadata
|
- name: assemble artifact metadata
|
||||||
run: |
|
run: |
|
||||||
echo ${{ steps.build.outputs.pkgs }} >built
|
echo ${{ steps.build.outputs.pkgs }} >built
|
||||||
echo ${{ steps.build.outputs.relative-paths }} >relative-paths
|
|
||||||
echo ${{ steps.build.outputs.srcs }} >srcs
|
echo ${{ steps.build.outputs.srcs }} >srcs
|
||||||
working-directory: ${{ steps.tea.outputs.prefix }}
|
working-directory: ${{ steps.tea.outputs.prefix }}
|
||||||
|
|
||||||
|
@ -87,7 +104,7 @@ jobs:
|
||||||
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 relative-paths srcs
|
built srcs
|
||||||
working-directory: ${{ steps.tea.outputs.prefix }}
|
working-directory: ${{ steps.tea.outputs.prefix }}
|
||||||
|
|
||||||
- name: upload artifacts
|
- name: upload artifacts
|
||||||
|
|
Loading…
Reference in a new issue