Build linux:rkdeveloptool #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |