mirror of
https://git.asonix.dog/asonix/pict-rs
synced 2024-12-22 11:21:24 +00:00
Matrix pls
This commit is contained in:
parent
e601de6767
commit
678cbba120
1 changed files with 9 additions and 9 deletions
|
@ -46,7 +46,7 @@ jobs:
|
|||
strategy:
|
||||
matrix:
|
||||
fail-fast: false
|
||||
include:
|
||||
info:
|
||||
- target: x86_64-unknown-linux-musl
|
||||
artifact: linux-amd64
|
||||
platform: linux/amd64
|
||||
|
@ -73,21 +73,21 @@ jobs:
|
|||
"aarch64-unknown-linux-musl"]
|
||||
-
|
||||
name: Compile pict-rs
|
||||
run: cargo zigbuild --target ${{ matrix.target }} --release
|
||||
run: cargo zigbuild --target ${{ matrix.info.target }} --release
|
||||
-
|
||||
name: Prepare artifacts
|
||||
run: |
|
||||
mkdir artifacts
|
||||
cp target/${{ matrix.target }}/release/pict-rs artifacts/pict-rs-${{ matrix.artifact }}
|
||||
cp target/${{ matrix.info.target }}/release/pict-rs artifacts/pict-rs-${{ matrix.info.artifact }}
|
||||
-
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: ${{ matrix.artifact }}
|
||||
name: ${{ matrix.info.artifact }}
|
||||
path: artifacts/
|
||||
-
|
||||
name: Prepare Platform
|
||||
run: |
|
||||
platform=${{ matrix.platform }}
|
||||
platform=${{ matrix.info.platform }}
|
||||
echo "PLATFORM_PAIR=${platform//\//-}" >> $GITHUB_ENV
|
||||
-
|
||||
name: Docker meta
|
||||
|
@ -109,13 +109,13 @@ jobs:
|
|||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||
-
|
||||
name: Prepare binary
|
||||
run: cp target/${{ matrix.target }}/release/pict-rs docker/forgejo/pict-rs
|
||||
run: cp target/${{ matrix.info.target }}/release/pict-rs docker/forgejo/pict-rs
|
||||
-
|
||||
name: Build and push ${{ matrix.platform }} docker image
|
||||
name: Build and push ${{ matrix.info.platform }} docker image
|
||||
uses: docker/build-push-action@v5
|
||||
with:
|
||||
context: ./docker/forgejo"
|
||||
platforms: ${{ matrix.platform }}
|
||||
platforms: ${{ matrix.info.platform }}
|
||||
labels: ${{ steps.meta.outputs.labels }}
|
||||
outputs: type=image,name=${{ env.REGISTRY_IMAGE }},push-by-digest=true,name-canonical=true,push=true
|
||||
-
|
||||
|
@ -125,7 +125,7 @@ jobs:
|
|||
digest="${{ steps.build.outputs.digest }}"
|
||||
touch "/tmp/digests/${digest#sha256:}"
|
||||
-
|
||||
name: Upload ${{ matrix.platform }} digest
|
||||
name: Upload ${{ matrix.info.platform }} digest
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: digests
|
||||
|
|
Loading…
Reference in a new issue