mirror of
https://github.com/mikefarah/yq.git
synced 2026-07-09 16:09:07 +00:00
test remote build
This commit is contained in:
parent
040ee533de
commit
d63af5f219
15
.github/workflows/snap-release.yml
vendored
15
.github/workflows/snap-release.yml
vendored
@ -20,14 +20,19 @@ jobs:
|
|||||||
buildSnap:
|
buildSnap:
|
||||||
environment: snap
|
environment: snap
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
|
matrix:
|
||||||
|
arch: [amd64, arm64]
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v5
|
- uses: actions/checkout@v5
|
||||||
- uses: snapcore/action-build@v1
|
- uses: snapcore/action-build@v1
|
||||||
id: build
|
id: build
|
||||||
- uses: snapcore/action-publish@v1
|
|
||||||
if: ${{ github.event_name == 'release' || github.event.inputs.publish == 'true' }}
|
|
||||||
env:
|
env:
|
||||||
SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.STORE_LOGIN }}
|
SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.SNAPCRAFT_STORE_CREDENTIALS }}
|
||||||
with:
|
with:
|
||||||
snap: ${{ steps.build.outputs.snap }}
|
snapcraft-args: "--remote-build --target-arch=${{ matrix.arch }}"
|
||||||
release: stable
|
- uses: actions/upload-artifact@v4
|
||||||
|
with:
|
||||||
|
name: yq-${{ matrix.arch }}
|
||||||
|
path: ${{ steps.build.outputs.snap }}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user