-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (41 loc) · 1.4 KB
/
linux_rkdeveloptool.yaml
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
name: Build linux:rkdeveloptool
on:
workflow_dispatch:
inputs:
branch:
description: 'target branch of remote repository'
required: false
default: 'master'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up environment
run: |
sudo apt-get update
sudo apt-get install -y libudev-dev libusb-1.0-0-dev dh-autoreconf pkg-config libusb-1.0 build-essential git wget
- name: Clone And Patch
env:
GH_TOKEN: ${{ github.token }}
run: |
git config --global user.email "${GITHUB_ACTOR_ID}+${GITHUB_ACTOR}@users.noreply.github.com"
git config --global user.name "$(gh api /users/${GITHUB_ACTOR} | jq .name -r)"
git clone https://github.com/rockchip-linux/rkdeveloptool.git
cd rkdeveloptool
git checkout ${{ github.event.inputs.branch }}
wget https://patch-diff.githubusercontent.com/raw/rockchip-linux/rkdeveloptool/pull/73.patch
wget https://patch-diff.githubusercontent.com/raw/rockchip-linux/rkdeveloptool/pull/85.patch
git am *.patch
- name: Build
run: |
cd rkdeveloptool
autoreconf -i
./configure
make -j $(nproc)
- name: Upload
uses: actions/upload-artifact@v3
with:
name: rkdeveloptool-linux-amd64
path: ./rkdeveloptool/rkdeveloptool