Skip to content

Commit

Permalink
chore: build linux binaries for multiple archs
Browse files Browse the repository at this point in the history
  • Loading branch information
Hanssen0 committed Dec 22, 2023
1 parent 9bf93fb commit e95e108
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,42 @@ on:
- 'edited'

jobs:
build-linux:
strategy:
fail-fast: false
matrix:
platform:
- os: linux
arch: amd64
- os: linux
arch: arm64

runs-on: 'ubuntu-latest'

steps:
- name: Check out code
uses: actions/checkout@v4
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Build Docker Image
id: build
uses: docker/build-push-action@v5
with:
context: .
platforms: ${{ matrix.platform.os }}/${{ matrix.platform.arch }}
outputs: docker-output
cache-from: type=gha
cache-to: type=gha,mode=max
- run: mkdir dist
- run: cp docker-output/app/telegramus dist/telegramus-${{ matrix.platform.os}}-${{ matrix.platform.arch }}
- name: Release
uses: softprops/action-gh-release@v1
with:
files: |
dist/*
build:
strategy:
fail-fast: false
Expand Down

0 comments on commit e95e108

Please sign in to comment.