-
Notifications
You must be signed in to change notification settings - Fork 31
46 lines (44 loc) · 1.2 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
name: build
on:
# push:
# branches:
# - "*"
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
target: [MI-R4A]
steps:
- uses: actions/checkout@v4
- uses: hendrikmuhs/[email protected]
with:
key: ${{ matrix.target }}
- uses: actions/setup-go@v5
with:
go-version: '1.21'
check-latest: true
cache: false
- uses: actions/setup-node@v3
with:
node-version: 18
check-latest: true
- name: Prepare environment
run: |
sudo apt update
sudo apt install libtool-bin gperf python3-docutils autopoint gettext ccache
- name: Start Build
run: |
make ${{ matrix.target }}
echo "TAG_ANME=$(TZ='Asia/Shanghai' date +%Y.%m.%d-%H%M)" >> $GITHUB_ENV
- uses: actions/upload-artifact@v4
with:
name: ${{ matrix.target }}-${{ env.TAG_ANME }}
path: trunk/images/*.trx
- uses: ncipollo/release-action@v1
with:
commit: ${{ github.sha }}
tag: ${{ env.TAG_ANME }}
artifacts: trunk/images/*.trx
allowUpdates: true