-
-
Notifications
You must be signed in to change notification settings - Fork 12
62 lines (57 loc) · 1.45 KB
/
build.yml
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
name: Build
on:
push:
branches:
- main
tags:
- '*'
pull_request:
branches:
- main
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Build
run: |
sudo apt-get update
DEBIAN_FRONTEND=noninteractive TZ=Etc/UTC sudo apt-get -y install git make wget gcc libevent-dev libcsfml-dev file g++ cpio unzip rsync bc bzip2
./build.sh goke
./build.sh hisi
./build.sh star6b0
./build.sh star6e
./build.sh x86
- name: Upload binary
uses: actions/upload-artifact@v4
with:
name: build-results
path: |
msposd_goke
msposd_hisi
msposd_star6b0
msposd_star6e
msposd_x86
- name: Versioned release
if: startsWith(github.ref, 'refs/tags/')
uses: softprops/action-gh-release@v2
with:
files: |
msposd_goke
msposd_hisi
msposd_star6b0
msposd_star6e
msposd_x86
- name: Upload latest
if: github.event_name != 'pull_request' && startsWith(github.ref, 'main')
uses: softprops/action-gh-release@v2
with:
tag_name: latest
files: |
msposd_goke
msposd_hisi
msposd_star6b0
msposd_star6e
msposd_x86