mirror of
https://github.com/openwrt-xiaomi/builder.git
synced 2025-12-14 10:34:29 +05:00
test 1
This commit is contained in:
19
.github/workflows/build.yml
vendored
19
.github/workflows/build.yml
vendored
@@ -9,7 +9,7 @@ on:
|
|||||||
env:
|
env:
|
||||||
REPO_URL: https://github.com/openwrt-xiaomi/openwrt.git
|
REPO_URL: https://github.com/openwrt-xiaomi/openwrt.git
|
||||||
REPO_BRANCH: xq-24.10
|
REPO_BRANCH: xq-24.10
|
||||||
BUILD_ROOT: ${{ github.workspace }}
|
BUILD_ROOT: ${{ github.workspace }}/openwrt
|
||||||
DEPENDENCIES: ${{ github.workspace }}/dependencies-ubuntu.txt
|
DEPENDENCIES: ${{ github.workspace }}/dependencies-ubuntu.txt
|
||||||
CUSTOM_FEEDS_SH: ${{ github.workspace }}/custom-feeds.sh
|
CUSTOM_FEEDS_SH: ${{ github.workspace }}/custom-feeds.sh
|
||||||
CUSTOM_PACKAGES_SH: ${{ github.workspace }}/custom-packages.sh
|
CUSTOM_PACKAGES_SH: ${{ github.workspace }}/custom-packages.sh
|
||||||
@@ -45,6 +45,7 @@ jobs:
|
|||||||
echo "date=$(date --utc -d $DATE +%Y%m%d)"
|
echo "date=$(date --utc -d $DATE +%Y%m%d)"
|
||||||
echo "sha=$(gh api repos/$REPO/commits/$BRANCH --jq '.sha[0:7]')"
|
echo "sha=$(gh api repos/$REPO/commits/$BRANCH --jq '.sha[0:7]')"
|
||||||
echo "url=$(gh api repos/$REPO/commits/$BRANCH --jq '.html_url')"
|
echo "url=$(gh api repos/$REPO/commits/$BRANCH --jq '.html_url')"
|
||||||
|
echo "build_root=$BUILD_ROOT"
|
||||||
echo "message<<EOF"
|
echo "message<<EOF"
|
||||||
gh api repos/$REPO/commits/$BRANCH --jq '.commit.message'
|
gh api repos/$REPO/commits/$BRANCH --jq '.commit.message'
|
||||||
echo EOF
|
echo EOF
|
||||||
@@ -85,7 +86,8 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
DEBIAN_FRONTEND: noninteractive
|
DEBIAN_FRONTEND: noninteractive
|
||||||
run: |
|
run: |
|
||||||
sudo apt-get -qq update && sudo apt-get -qq upgrade
|
#sudo apt-get -qq update && sudo apt-get -qq upgrade
|
||||||
|
sudo apt-get -qq update
|
||||||
sudo apt-get -qq install $(cat $DEPENDENCIES)
|
sudo apt-get -qq install $(cat $DEPENDENCIES)
|
||||||
sudo apt-get -qq autoremove --purge
|
sudo apt-get -qq autoremove --purge
|
||||||
sudo apt-get -qq clean
|
sudo apt-get -qq clean
|
||||||
@@ -100,12 +102,21 @@ jobs:
|
|||||||
remove-codeql: true
|
remove-codeql: true
|
||||||
remove-docker-images: true
|
remove-docker-images: true
|
||||||
|
|
||||||
#- name: Checkout builder
|
- name: Checkout builder
|
||||||
# uses: actions/checkout@main
|
uses: actions/checkout@main
|
||||||
|
|
||||||
- name: Download OpenWrt sources
|
- name: Download OpenWrt sources
|
||||||
run: git clone --branch $REPO_BRANCH $REPO_URL $BUILD_ROOT
|
run: git clone --branch $REPO_BRANCH $REPO_URL $BUILD_ROOT
|
||||||
|
|
||||||
|
- name: Init builder
|
||||||
|
env:
|
||||||
|
BLDROOT: ${{ github.workspace }}
|
||||||
|
shell: bash
|
||||||
|
run: |
|
||||||
|
rsync -av --exclude=".*" $BLDROOT $BUILD_ROOT
|
||||||
|
cd $ $BUILD_ROOT
|
||||||
|
wget https://github.com/fantastic-packages/packages/raw/refs/heads/24.10/keys/usign/53FF2B6672243D28.pub
|
||||||
|
|
||||||
- name: Info
|
- name: Info
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
Reference in New Issue
Block a user