Skip to content

Commit aa44c96

Browse files
committed
Added actions
1 parent f4f2d28 commit aa44c96

1 file changed

Lines changed: 39 additions & 0 deletions

File tree

.github/workflows/build.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: build
2+
3+
on:
4+
push:
5+
branches:
6+
- '*'
7+
pull_request:
8+
branches:
9+
- '*'
10+
create:
11+
tags:
12+
- v*
13+
14+
jobs:
15+
build:
16+
runs-on: ubuntu-latest
17+
strategy:
18+
max-parallel: 5
19+
matrix:
20+
platform: [
21+
android-arm, android-arm64, android-x64, android-x86,
22+
darwin-x64, darwin-x86,
23+
linux-armv6, linux-armv7, linux-armv7_softfp, linux-arm64, linux-x64, linux-x86,
24+
windows-x64, windows-x86 ]
25+
steps:
26+
- name: Checkout
27+
uses: actions/checkout@v4
28+
29+
- name: Build ${{ matrix.platform }} docker image
30+
shell: bash
31+
run: |
32+
make ${{ matrix.platform }}
33+
34+
- name: Publish ${{ matrix.platform }} docker image
35+
if: success() && github.event_name == 'create' && startsWith(github.ref, 'refs/tags/')
36+
shell: bash
37+
run: |
38+
docker login -u="${{ secrets.DOCKER_USERNAME }}" -p="${{ secrets.DOCKER_PASSWORD }}"
39+
make push-${{ matrix.platform }}

0 commit comments

Comments
 (0)