mirror of
https://github.com/Ysurac/openmptcprouter.git
synced 2025-03-09 15:40:20 +00:00
auto
This commit is contained in:
parent
6c9ee31414
commit
08f7074dc3
1 changed files with 42 additions and 0 deletions
42
.github/workflows/stale.yml
vendored
42
.github/workflows/stale.yml
vendored
|
@ -18,3 +18,45 @@ jobs:
|
||||||
days-before-close: 5
|
days-before-close: 5
|
||||||
exempt-issue-labels: 'work-in-progress,enhancement'
|
exempt-issue-labels: 'work-in-progress,enhancement'
|
||||||
exempt-pr-labels: 'work-in-progress,enhancement'
|
exempt-pr-labels: 'work-in-progress,enhancement'
|
||||||
|
name: Initialization environment
|
||||||
|
env:
|
||||||
|
DEBIAN_FRONTEND: noninteractive
|
||||||
|
run: |
|
||||||
|
docker rmi `docker images -q`
|
||||||
|
echo "Deleting files, please wait ..."
|
||||||
|
sudo rm -rf /usr/share/dotnet /etc/mysql /etc/php
|
||||||
|
sudo -E apt-get -y purge azure-cli ghc* zulu* hhvm llvm* firefox google* dotnet* powershell openjdk* mysql* php*
|
||||||
|
sudo -E apt-get update
|
||||||
|
sudo -E apt-get -y install build-essential asciidoc binutils bzip2 gawk gettext git libncurses5-dev libz-dev patch unzip zlib1g-dev lib32gcc1 libc6-dev-i386 subversion flex uglifyjs git-core gcc-multilib p7zip p7zip-full msmtp libssl-dev texinfo libglib2.0-dev xmlto qemu-utils upx libelf-dev autoconf automake libtool autopoint device-tree-compiler
|
||||||
|
sudo -E apt-get -y autoremove --purge
|
||||||
|
sudo -E apt-get clean
|
||||||
|
- name: Update feeds
|
||||||
|
run: |
|
||||||
|
./scripts/feeds update -a
|
||||||
|
./scripts/feeds install -a
|
||||||
|
- name: Costom configure file
|
||||||
|
run: |
|
||||||
|
rm -f ./.config*
|
||||||
|
touch ./.config
|
||||||
|
|
||||||
|
sed -i 's/^[ \t]*//g' ./.config
|
||||||
|
make defconfig
|
||||||
|
- name: Make download
|
||||||
|
run: |
|
||||||
|
make download -j8
|
||||||
|
find dl -size -1024c -exec ls -l {} \;
|
||||||
|
find dl -size -1024c -exec rm -f {} \;
|
||||||
|
- name: Compile firmware
|
||||||
|
run: |
|
||||||
|
echo -e "$(nproc) thread build."
|
||||||
|
make -j$(nproc) V=s
|
||||||
|
- name: Assemble artifact
|
||||||
|
run: |
|
||||||
|
rm -rf ./artifact/
|
||||||
|
mkdir -p ./artifact/
|
||||||
|
find ./bin/targets/ -name "*combined*img*" | xargs -i mv -f {} ./artifact/
|
||||||
|
find ./bin/targets/ -name "*sysupgrade*bin*" | xargs -i mv -f {} ./artifact/
|
||||||
|
- name: Upload artifact
|
||||||
|
uses: actions/upload-artifact@master
|
||||||
|
with:
|
||||||
|
name: OpenWrt firmware
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue