|
|
@ -14,42 +14,52 @@ jobs: |
|
|
|
target: x86_64-unknown-linux-gnu |
|
|
|
os: ubuntu-latest |
|
|
|
archive_ext: tar |
|
|
|
docker_platforms: linux/amd64 |
|
|
|
- bin: taker |
|
|
|
target: armv7-unknown-linux-gnueabihf |
|
|
|
os: ubuntu-latest |
|
|
|
archive_ext: tar |
|
|
|
docker_platforms: linux/arm/v7 |
|
|
|
- bin: taker |
|
|
|
target: aarch64-unknown-linux-gnu |
|
|
|
os: ubuntu-latest |
|
|
|
archive_ext: tar |
|
|
|
docker_platforms: linux/arm64 |
|
|
|
- bin: taker |
|
|
|
target: x86_64-apple-darwin |
|
|
|
os: macos-latest |
|
|
|
archive_ext: tar |
|
|
|
docker_platforms: None |
|
|
|
- bin: taker |
|
|
|
target: x86_64-pc-windows-msvc |
|
|
|
os: windows-latest |
|
|
|
archive_ext: zip |
|
|
|
docker_platforms: None |
|
|
|
- bin: maker |
|
|
|
target: x86_64-unknown-linux-gnu |
|
|
|
os: ubuntu-latest |
|
|
|
archive_ext: tar |
|
|
|
docker_platforms: linux/amd64 |
|
|
|
- bin: maker |
|
|
|
target: armv7-unknown-linux-gnueabihf |
|
|
|
os: ubuntu-latest |
|
|
|
archive_ext: tar |
|
|
|
docker_platforms: linux/arm64 |
|
|
|
- bin: maker |
|
|
|
target: aarch64-unknown-linux-gnu |
|
|
|
os: ubuntu-latest |
|
|
|
archive_ext: tar |
|
|
|
docker_platforms: linux/arm64 |
|
|
|
- bin: maker |
|
|
|
target: x86_64-apple-darwin |
|
|
|
os: macos-latest |
|
|
|
archive_ext: tar |
|
|
|
docker_platforms: None |
|
|
|
- bin: maker |
|
|
|
target: x86_64-pc-windows-msvc |
|
|
|
os: windows-latest |
|
|
|
archive_ext: zip |
|
|
|
docker_platforms: None |
|
|
|
runs-on: ${{ matrix.os }} |
|
|
|
steps: |
|
|
|
- name: Checkout tagged commit |
|
|
@ -144,3 +154,29 @@ jobs: |
|
|
|
asset_path: ./${{ steps.create-archive-name.outputs.archive }} |
|
|
|
asset_name: ${{ steps.create-archive-name.outputs.archive }} |
|
|
|
asset_content_type: application/gzip |
|
|
|
|
|
|
|
- name: Set up QEMU |
|
|
|
if: matrix.os != 'windows-latest' && matrix.os != 'macos-latest' |
|
|
|
uses: docker/setup-qemu-action@v1 |
|
|
|
|
|
|
|
- name: Set up Docker Buildx |
|
|
|
if: matrix.os != 'windows-latest' && matrix.os != 'macos-latest' |
|
|
|
uses: docker/setup-buildx-action@v1 |
|
|
|
|
|
|
|
- name: Login into github registry |
|
|
|
uses: docker/login-action@v1.10.0 |
|
|
|
if: matrix.os != 'windows-latest' && matrix.os != 'macos-latest' |
|
|
|
with: |
|
|
|
registry: ghcr.io |
|
|
|
username: ${{ github.actor }} |
|
|
|
password: ${{ secrets.GITHUB_TOKEN }} |
|
|
|
|
|
|
|
- name: Build and publish docker image |
|
|
|
if: matrix.os != 'windows-latest' && matrix.os != 'macos-latest' |
|
|
|
run: | |
|
|
|
docker buildx build \ |
|
|
|
--push \ |
|
|
|
--platform=${{ matrix.docker_platforms }} \ |
|
|
|
--tag ghcr.io/${{ github.actor }}/hermes-${{ matrix.bin }}-${{ matrix.target }} \ |
|
|
|
--build-arg BINARY_PATH=target/${{ matrix.target }}/release/${{ matrix.bin }} \ |
|
|
|
. |
|
|
|