-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (34 loc) · 1.11 KB
/
github_release.yaml
File metadata and controls
42 lines (34 loc) · 1.11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: Create GitHub release
on:
push:
tags:
- '*'
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
include:
- os: ubuntu-22.04
platform: amd64
- os: ubuntu-22.04-arm
platform: arm64
steps:
- uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Build
run: docker buildx build . -o tdlib-java-${{ matrix.platform }}
- name: Zip libtdjni.so
run: zip -r libtdjni-${{ github.ref_name }}-${{ matrix.platform }}.zip -j tdlib-java-${{ matrix.platform }}/libtdjni.so
- name: Release libtdjni.so
uses: softprops/action-gh-release@v2
with:
files: libtdjni-${{ github.ref_name }}-${{ matrix.platform }}.zip
- run: cp tdlib-java-${{ matrix.platform }}/tdlib.jar tdlib-${{ github.ref_name }}.jar
if: matrix.platform == 'amd64'
- name: Release tdlib.jar
uses: softprops/action-gh-release@v2
with:
files: tdlib-${{ github.ref_name }}.jar
if: matrix.platform == 'amd64'