release: v24.04_b202410102114 #374
Workflow file for this run
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
#================================================= | |
# Description: Build X-WRT using GitHub Actions | |
# Lisence: MIT | |
# Author: ptpt52 | |
#================================================= | |
name: Build Jobs 24.04_b202410102114 | |
on: | |
push: | |
tags: | |
- 'v*' | |
jobs: | |
release: | |
name: Create Github Release | |
if: contains(github.ref, 'tags/v') | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: Create Release | |
id: create_release | |
uses: ncipollo/release-action@v1 | |
with: | |
token: ${{ secrets.WORKFLOW_TOKEN }} | |
name: X-WRT ${{ github.ref_name }} | |
draft: false | |
allowUpdates: true | |
- name: Output Release URL File | |
run: echo "${{ steps.create_release.outputs.upload_url }}" > release_url.txt | |
- name: Save Release URL File for publish | |
uses: actions/upload-artifact@v4 | |
with: | |
name: release_url | |
path: release_url.txt | |
build-ath79-generic_ath79-generic-nosymbol: | |
if: contains(github.ref, 'tags/v') | |
needs: release | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Pre Initialization environment | |
run: | | |
docker rmi `docker images -q` | |
sudo -E df -h | |
sudo ls -lh /mnt | |
- name: Initialization environment | |
env: | |
DEBIAN_FRONTEND: noninteractive | |
run: | | |
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 tzdata python3-pyelftools python3-dev | |
sudo -E apt-get -y autoremove --purge | |
sudo -E apt-get clean | |
- name: Clean up disk | |
run: sudo rm -rf /opt/* | |
- name: Clone source code | |
run: | | |
sudo -E mkdir /mnt/work | |
sudo -E chmod 777 /mnt/work | |
git clone --depth 1 --branch `cat release.tag` https://github.com/x-wrt/x-wrt.git /mnt/work/x-wrt | |
- name: Update feeds | |
run: cd /mnt/work/x-wrt && ./scripts/feeds update -a | |
- name: Install feeds | |
run: cd /mnt/work/x-wrt && ./scripts/feeds install -a | |
- name: Building | |
run: | | |
cp *.sh /mnt/work/x-wrt/ | |
cp release.tag /mnt/work/x-wrt/ | |
cd /mnt/work/x-wrt | |
echo -e "$(nproc) thread build." | |
BTARGET="ath79-generic ath79-generic-nosymbol" sh build.sh $(nproc) | |
- name : Upload make.log if failure | |
uses: actions/upload-artifact@v4 | |
if: failure() | |
with: | |
name: build-failure-log-ath79-generic_ath79-generic-nosymbol | |
path: make.log | |
- name: Load Release URL File from release job | |
uses: actions/download-artifact@v4 | |
with: | |
name: release_url | |
path: release_url | |
- name: Get Release Upload URL | |
id: get_release_info | |
run: | | |
value=`cat release_url/release_url.txt || cat release_url.txt` | |
echo "upload_url=$value" >> $GITHUB_OUTPUT | |
env: | |
TAG_REF_NAME: ${{ github.ref }} | |
REPOSITORY_NAME: ${{ github.repository }} | |
- name: Upload Release Asset x-wrt-24.04_b202410102114-ath79-generic | |
id: asset-dd1562496bea9186897c930ea7d9330c | |
uses: shogo82148/actions-upload-release-asset@v1 | |
with: | |
github_token: ${{ secrets.WORKFLOW_TOKEN }} | |
upload_url: ${{ steps.get_release_info.outputs.upload_url }} | |
asset_path: /mnt/work/x-wrt/x-wrt-24.04_b202410102114-ath79-generic.zip | |
asset_name: x-wrt-24.04_b202410102114-ath79-generic.zip | |
asset_content_type: application/zip | |
overwrite: true | |
- name: Upload Release Asset x-wrt-24.04_b202410102114-ath79-generic-nosymbol | |
id: asset-9e8703796f3612e6f5228e25f285a801 | |
uses: shogo82148/actions-upload-release-asset@v1 | |
with: | |
github_token: ${{ secrets.WORKFLOW_TOKEN }} | |
upload_url: ${{ steps.get_release_info.outputs.upload_url }} | |
asset_path: /mnt/work/x-wrt/x-wrt-24.04_b202410102114-ath79-generic-nosymbol.zip | |
asset_name: x-wrt-24.04_b202410102114-ath79-generic-nosymbol.zip | |
asset_content_type: application/zip | |
overwrite: true | |
build-ath79-nand: | |
if: contains(github.ref, 'tags/v') | |
needs: release | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Pre Initialization environment | |
run: | | |
docker rmi `docker images -q` | |
sudo -E df -h | |
sudo ls -lh /mnt | |
- name: Initialization environment | |
env: | |
DEBIAN_FRONTEND: noninteractive | |
run: | | |
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 tzdata python3-pyelftools python3-dev | |
sudo -E apt-get -y autoremove --purge | |
sudo -E apt-get clean | |
- name: Clean up disk | |
run: sudo rm -rf /opt/* | |
- name: Clone source code | |
run: | | |
sudo -E mkdir /mnt/work | |
sudo -E chmod 777 /mnt/work | |
git clone --depth 1 --branch `cat release.tag` https://github.com/x-wrt/x-wrt.git /mnt/work/x-wrt | |
- name: Update feeds | |
run: cd /mnt/work/x-wrt && ./scripts/feeds update -a | |
- name: Install feeds | |
run: cd /mnt/work/x-wrt && ./scripts/feeds install -a | |
- name: Building | |
run: | | |
cp *.sh /mnt/work/x-wrt/ | |
cp release.tag /mnt/work/x-wrt/ | |
cd /mnt/work/x-wrt | |
echo -e "$(nproc) thread build." | |
BTARGET="ath79-nand" sh build.sh $(nproc) | |
- name : Upload make.log if failure | |
uses: actions/upload-artifact@v4 | |
if: failure() | |
with: | |
name: build-failure-log-ath79-nand | |
path: make.log | |
- name: Load Release URL File from release job | |
uses: actions/download-artifact@v4 | |
with: | |
name: release_url | |
path: release_url | |
- name: Get Release Upload URL | |
id: get_release_info | |
run: | | |
value=`cat release_url/release_url.txt || cat release_url.txt` | |
echo "upload_url=$value" >> $GITHUB_OUTPUT | |
env: | |
TAG_REF_NAME: ${{ github.ref }} | |
REPOSITORY_NAME: ${{ github.repository }} | |
- name: Upload Release Asset x-wrt-24.04_b202410102114-ath79-nand | |
id: asset-bae8d6b246ceb130aea4211262172b0d | |
uses: shogo82148/actions-upload-release-asset@v1 | |
with: | |
github_token: ${{ secrets.WORKFLOW_TOKEN }} | |
upload_url: ${{ steps.get_release_info.outputs.upload_url }} | |
asset_path: /mnt/work/x-wrt/x-wrt-24.04_b202410102114-ath79-nand.zip | |
asset_name: x-wrt-24.04_b202410102114-ath79-nand.zip | |
asset_content_type: application/zip | |
overwrite: true | |
build-ipq40xx-generic: | |
if: contains(github.ref, 'tags/v') | |
needs: release | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Pre Initialization environment | |
run: | | |
docker rmi `docker images -q` | |
sudo -E df -h | |
sudo ls -lh /mnt | |
- name: Initialization environment | |
env: | |
DEBIAN_FRONTEND: noninteractive | |
run: | | |
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 tzdata python3-pyelftools python3-dev | |
sudo -E apt-get -y autoremove --purge | |
sudo -E apt-get clean | |
- name: Clean up disk | |
run: sudo rm -rf /opt/* | |
- name: Clone source code | |
run: | | |
sudo -E mkdir /mnt/work | |
sudo -E chmod 777 /mnt/work | |
git clone --depth 1 --branch `cat release.tag` https://github.com/x-wrt/x-wrt.git /mnt/work/x-wrt | |
- name: Update feeds | |
run: cd /mnt/work/x-wrt && ./scripts/feeds update -a | |
- name: Install feeds | |
run: cd /mnt/work/x-wrt && ./scripts/feeds install -a | |
- name: Building | |
run: | | |
cp *.sh /mnt/work/x-wrt/ | |
cp release.tag /mnt/work/x-wrt/ | |
cd /mnt/work/x-wrt | |
echo -e "$(nproc) thread build." | |
BTARGET="ipq40xx-generic" sh build.sh $(nproc) | |
- name : Upload make.log if failure | |
uses: actions/upload-artifact@v4 | |
if: failure() | |
with: | |
name: build-failure-log-ipq40xx-generic | |
path: make.log | |
- name: Load Release URL File from release job | |
uses: actions/download-artifact@v4 | |
with: | |
name: release_url | |
path: release_url | |
- name: Get Release Upload URL | |
id: get_release_info | |
run: | | |
value=`cat release_url/release_url.txt || cat release_url.txt` | |
echo "upload_url=$value" >> $GITHUB_OUTPUT | |
env: | |
TAG_REF_NAME: ${{ github.ref }} | |
REPOSITORY_NAME: ${{ github.repository }} | |
- name: Upload Release Asset x-wrt-24.04_b202410102114-ipq40xx-generic | |
id: asset-03ec5863ebf648b74816d1feda2d41ca | |
uses: shogo82148/actions-upload-release-asset@v1 | |
with: | |
github_token: ${{ secrets.WORKFLOW_TOKEN }} | |
upload_url: ${{ steps.get_release_info.outputs.upload_url }} | |
asset_path: /mnt/work/x-wrt/x-wrt-24.04_b202410102114-ipq40xx-generic.zip | |
asset_name: x-wrt-24.04_b202410102114-ipq40xx-generic.zip | |
asset_content_type: application/zip | |
overwrite: true | |
build-bcm27xx-bcm2709: | |
if: contains(github.ref, 'tags/v') | |
needs: release | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Pre Initialization environment | |
run: | | |
docker rmi `docker images -q` | |
sudo -E df -h | |
sudo ls -lh /mnt | |
- name: Initialization environment | |
env: | |
DEBIAN_FRONTEND: noninteractive | |
run: | | |
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 tzdata python3-pyelftools python3-dev | |
sudo -E apt-get -y autoremove --purge | |
sudo -E apt-get clean | |
- name: Clean up disk | |
run: sudo rm -rf /opt/* | |
- name: Clone source code | |
run: | | |
sudo -E mkdir /mnt/work | |
sudo -E chmod 777 /mnt/work | |
git clone --depth 1 --branch `cat release.tag` https://github.com/x-wrt/x-wrt.git /mnt/work/x-wrt | |
- name: Update feeds | |
run: cd /mnt/work/x-wrt && ./scripts/feeds update -a | |
- name: Install feeds | |
run: cd /mnt/work/x-wrt && ./scripts/feeds install -a | |
- name: Building | |
run: | | |
cp *.sh /mnt/work/x-wrt/ | |
cp release.tag /mnt/work/x-wrt/ | |
cd /mnt/work/x-wrt | |
echo -e "$(nproc) thread build." | |
BTARGET="bcm27xx-bcm2709" sh build.sh $(nproc) | |
- name : Upload make.log if failure | |
uses: actions/upload-artifact@v4 | |
if: failure() | |
with: | |
name: build-failure-log-bcm27xx-bcm2709 | |
path: make.log | |
- name: Load Release URL File from release job | |
uses: actions/download-artifact@v4 | |
with: | |
name: release_url | |
path: release_url | |
- name: Get Release Upload URL | |
id: get_release_info | |
run: | | |
value=`cat release_url/release_url.txt || cat release_url.txt` | |
echo "upload_url=$value" >> $GITHUB_OUTPUT | |
env: | |
TAG_REF_NAME: ${{ github.ref }} | |
REPOSITORY_NAME: ${{ github.repository }} | |
- name: Upload Release Asset x-wrt-24.04_b202410102114-bcm27xx-bcm2709 | |
id: asset-775b575da8170ff208247ef8847345a0 | |
uses: shogo82148/actions-upload-release-asset@v1 | |
with: | |
github_token: ${{ secrets.WORKFLOW_TOKEN }} | |
upload_url: ${{ steps.get_release_info.outputs.upload_url }} | |
asset_path: /mnt/work/x-wrt/x-wrt-24.04_b202410102114-bcm27xx-bcm2709.zip | |
asset_name: x-wrt-24.04_b202410102114-bcm27xx-bcm2709.zip | |
asset_content_type: application/zip | |
overwrite: true | |
build-bcm27xx-bcm2710: | |
if: contains(github.ref, 'tags/v') | |
needs: release | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Pre Initialization environment | |
run: | | |
docker rmi `docker images -q` | |
sudo -E df -h | |
sudo ls -lh /mnt | |
- name: Initialization environment | |
env: | |
DEBIAN_FRONTEND: noninteractive | |
run: | | |
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 tzdata python3-pyelftools python3-dev | |
sudo -E apt-get -y autoremove --purge | |
sudo -E apt-get clean | |
- name: Clean up disk | |
run: sudo rm -rf /opt/* | |
- name: Clone source code | |
run: | | |
sudo -E mkdir /mnt/work | |
sudo -E chmod 777 /mnt/work | |
git clone --depth 1 --branch `cat release.tag` https://github.com/x-wrt/x-wrt.git /mnt/work/x-wrt | |
- name: Update feeds | |
run: cd /mnt/work/x-wrt && ./scripts/feeds update -a | |
- name: Install feeds | |
run: cd /mnt/work/x-wrt && ./scripts/feeds install -a | |
- name: Building | |
run: | | |
cp *.sh /mnt/work/x-wrt/ | |
cp release.tag /mnt/work/x-wrt/ | |
cd /mnt/work/x-wrt | |
echo -e "$(nproc) thread build." | |
BTARGET="bcm27xx-bcm2710" sh build.sh $(nproc) | |
- name : Upload make.log if failure | |
uses: actions/upload-artifact@v4 | |
if: failure() | |
with: | |
name: build-failure-log-bcm27xx-bcm2710 | |
path: make.log | |
- name: Load Release URL File from release job | |
uses: actions/download-artifact@v4 | |
with: | |
name: release_url | |
path: release_url | |
- name: Get Release Upload URL | |
id: get_release_info | |
run: | | |
value=`cat release_url/release_url.txt || cat release_url.txt` | |
echo "upload_url=$value" >> $GITHUB_OUTPUT | |
env: | |
TAG_REF_NAME: ${{ github.ref }} | |
REPOSITORY_NAME: ${{ github.repository }} | |
- name: Upload Release Asset x-wrt-24.04_b202410102114-bcm27xx-bcm2710 | |
id: asset-a9e40219c20b83486e28e56587988a64 | |
uses: shogo82148/actions-upload-release-asset@v1 | |
with: | |
github_token: ${{ secrets.WORKFLOW_TOKEN }} | |
upload_url: ${{ steps.get_release_info.outputs.upload_url }} | |
asset_path: /mnt/work/x-wrt/x-wrt-24.04_b202410102114-bcm27xx-bcm2710.zip | |
asset_name: x-wrt-24.04_b202410102114-bcm27xx-bcm2710.zip | |
asset_content_type: application/zip | |
overwrite: true | |
build-mediatek-mt7622: | |
if: contains(github.ref, 'tags/v') | |
needs: release | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Pre Initialization environment | |
run: | | |
docker rmi `docker images -q` | |
sudo -E df -h | |
sudo ls -lh /mnt | |
- name: Initialization environment | |
env: | |
DEBIAN_FRONTEND: noninteractive | |
run: | | |
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 tzdata python3-pyelftools python3-dev | |
sudo -E apt-get -y autoremove --purge | |
sudo -E apt-get clean | |
- name: Clean up disk | |
run: sudo rm -rf /opt/* | |
- name: Clone source code | |
run: | | |
sudo -E mkdir /mnt/work | |
sudo -E chmod 777 /mnt/work | |
git clone --depth 1 --branch `cat release.tag` https://github.com/x-wrt/x-wrt.git /mnt/work/x-wrt | |
- name: Update feeds | |
run: cd /mnt/work/x-wrt && ./scripts/feeds update -a | |
- name: Install feeds | |
run: cd /mnt/work/x-wrt && ./scripts/feeds install -a | |
- name: Building | |
run: | | |
cp *.sh /mnt/work/x-wrt/ | |
cp release.tag /mnt/work/x-wrt/ | |
cd /mnt/work/x-wrt | |
echo -e "$(nproc) thread build." | |
BTARGET="mediatek-mt7622" sh build.sh $(nproc) | |
- name : Upload make.log if failure | |
uses: actions/upload-artifact@v4 | |
if: failure() | |
with: | |
name: build-failure-log-mediatek-mt7622 | |
path: make.log | |
- name: Load Release URL File from release job | |
uses: actions/download-artifact@v4 | |
with: | |
name: release_url | |
path: release_url | |
- name: Get Release Upload URL | |
id: get_release_info | |
run: | | |
value=`cat release_url/release_url.txt || cat release_url.txt` | |
echo "upload_url=$value" >> $GITHUB_OUTPUT | |
env: | |
TAG_REF_NAME: ${{ github.ref }} | |
REPOSITORY_NAME: ${{ github.repository }} | |
- name: Upload Release Asset x-wrt-24.04_b202410102114-mediatek-mt7622 | |
id: asset-a42296a685f82e4ddff75660fe278ba9 | |
uses: shogo82148/actions-upload-release-asset@v1 | |
with: | |
github_token: ${{ secrets.WORKFLOW_TOKEN }} | |
upload_url: ${{ steps.get_release_info.outputs.upload_url }} | |
asset_path: /mnt/work/x-wrt/x-wrt-24.04_b202410102114-mediatek-mt7622.zip | |
asset_name: x-wrt-24.04_b202410102114-mediatek-mt7622.zip | |
asset_content_type: application/zip | |
overwrite: true | |
build-mediatek-filogic: | |
if: contains(github.ref, 'tags/v') | |
needs: release | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Pre Initialization environment | |
run: | | |
docker rmi `docker images -q` | |
sudo -E df -h | |
sudo ls -lh /mnt | |
- name: Initialization environment | |
env: | |
DEBIAN_FRONTEND: noninteractive | |
run: | | |
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 tzdata python3-pyelftools python3-dev | |
sudo -E apt-get -y autoremove --purge | |
sudo -E apt-get clean | |
- name: Clean up disk | |
run: sudo rm -rf /opt/* | |
- name: Clone source code | |
run: | | |
sudo -E mkdir /mnt/work | |
sudo -E chmod 777 /mnt/work | |
git clone --depth 1 --branch `cat release.tag` https://github.com/x-wrt/x-wrt.git /mnt/work/x-wrt | |
- name: Update feeds | |
run: cd /mnt/work/x-wrt && ./scripts/feeds update -a | |
- name: Install feeds | |
run: cd /mnt/work/x-wrt && ./scripts/feeds install -a | |
- name: Building | |
run: | | |
cp *.sh /mnt/work/x-wrt/ | |
cp release.tag /mnt/work/x-wrt/ | |
cd /mnt/work/x-wrt | |
echo -e "$(nproc) thread build." | |
BTARGET="mediatek-filogic" sh build.sh $(nproc) | |
- name : Upload make.log if failure | |
uses: actions/upload-artifact@v4 | |
if: failure() | |
with: | |
name: build-failure-log-mediatek-filogic | |
path: make.log | |
- name: Load Release URL File from release job | |
uses: actions/download-artifact@v4 | |
with: | |
name: release_url | |
path: release_url | |
- name: Get Release Upload URL | |
id: get_release_info | |
run: | | |
value=`cat release_url/release_url.txt || cat release_url.txt` | |
echo "upload_url=$value" >> $GITHUB_OUTPUT | |
env: | |
TAG_REF_NAME: ${{ github.ref }} | |
REPOSITORY_NAME: ${{ github.repository }} | |
- name: Upload Release Asset x-wrt-24.04_b202410102114-mediatek-filogic | |
id: asset-218e3d246c537baf87b1947a65ece926 | |
uses: shogo82148/actions-upload-release-asset@v1 | |
with: | |
github_token: ${{ secrets.WORKFLOW_TOKEN }} | |
upload_url: ${{ steps.get_release_info.outputs.upload_url }} | |
asset_path: /mnt/work/x-wrt/x-wrt-24.04_b202410102114-mediatek-filogic.zip | |
asset_name: x-wrt-24.04_b202410102114-mediatek-filogic.zip | |
asset_content_type: application/zip | |
overwrite: true | |
build-mediatek-filogic-uncommon: | |
if: contains(github.ref, 'tags/v') | |
needs: release | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Pre Initialization environment | |
run: | | |
docker rmi `docker images -q` | |
sudo -E df -h | |
sudo ls -lh /mnt | |
- name: Initialization environment | |
env: | |
DEBIAN_FRONTEND: noninteractive | |
run: | | |
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 tzdata python3-pyelftools python3-dev | |
sudo -E apt-get -y autoremove --purge | |
sudo -E apt-get clean | |
- name: Clean up disk | |
run: sudo rm -rf /opt/* | |
- name: Clone source code | |
run: | | |
sudo -E mkdir /mnt/work | |
sudo -E chmod 777 /mnt/work | |
git clone --depth 1 --branch `cat release.tag` https://github.com/x-wrt/x-wrt.git /mnt/work/x-wrt | |
- name: Update feeds | |
run: cd /mnt/work/x-wrt && ./scripts/feeds update -a | |
- name: Install feeds | |
run: cd /mnt/work/x-wrt && ./scripts/feeds install -a | |
- name: Building | |
run: | | |
cp *.sh /mnt/work/x-wrt/ | |
cp release.tag /mnt/work/x-wrt/ | |
cd /mnt/work/x-wrt | |
echo -e "$(nproc) thread build." | |
BTARGET="mediatek-filogic-uncommon" sh build.sh $(nproc) | |
- name : Upload make.log if failure | |
uses: actions/upload-artifact@v4 | |
if: failure() | |
with: | |
name: build-failure-log-mediatek-filogic-uncommon | |
path: make.log | |
- name: Load Release URL File from release job | |
uses: actions/download-artifact@v4 | |
with: | |
name: release_url | |
path: release_url | |
- name: Get Release Upload URL | |
id: get_release_info | |
run: | | |
value=`cat release_url/release_url.txt || cat release_url.txt` | |
echo "upload_url=$value" >> $GITHUB_OUTPUT | |
env: | |
TAG_REF_NAME: ${{ github.ref }} | |
REPOSITORY_NAME: ${{ github.repository }} | |
- name: Upload Release Asset x-wrt-24.04_b202410102114-mediatek-filogic-uncommon | |
id: asset-f5d5ba59af23bc5940e4f401a7f867cc | |
uses: shogo82148/actions-upload-release-asset@v1 | |
with: | |
github_token: ${{ secrets.WORKFLOW_TOKEN }} | |
upload_url: ${{ steps.get_release_info.outputs.upload_url }} | |
asset_path: /mnt/work/x-wrt/x-wrt-24.04_b202410102114-mediatek-filogic-uncommon.zip | |
asset_name: x-wrt-24.04_b202410102114-mediatek-filogic-uncommon.zip | |
asset_content_type: application/zip | |
overwrite: true | |
build-qualcommax-ipq807x_qualcommax-ipq60xx: | |
if: contains(github.ref, 'tags/v') | |
needs: release | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Pre Initialization environment | |
run: | | |
docker rmi `docker images -q` | |
sudo -E df -h | |
sudo ls -lh /mnt | |
- name: Initialization environment | |
env: | |
DEBIAN_FRONTEND: noninteractive | |
run: | | |
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 tzdata python3-pyelftools python3-dev | |
sudo -E apt-get -y autoremove --purge | |
sudo -E apt-get clean | |
- name: Clean up disk | |
run: sudo rm -rf /opt/* | |
- name: Clone source code | |
run: | | |
sudo -E mkdir /mnt/work | |
sudo -E chmod 777 /mnt/work | |
git clone --depth 1 --branch `cat release.tag` https://github.com/x-wrt/x-wrt.git /mnt/work/x-wrt | |
- name: Update feeds | |
run: cd /mnt/work/x-wrt && ./scripts/feeds update -a | |
- name: Install feeds | |
run: cd /mnt/work/x-wrt && ./scripts/feeds install -a | |
- name: Building | |
run: | | |
cp *.sh /mnt/work/x-wrt/ | |
cp release.tag /mnt/work/x-wrt/ | |
cd /mnt/work/x-wrt | |
echo -e "$(nproc) thread build." | |
BTARGET="qualcommax-ipq807x qualcommax-ipq60xx" sh build.sh $(nproc) | |
- name : Upload make.log if failure | |
uses: actions/upload-artifact@v4 | |
if: failure() | |
with: | |
name: build-failure-log-qualcommax-ipq807x_qualcommax-ipq60xx | |
path: make.log | |
- name: Load Release URL File from release job | |
uses: actions/download-artifact@v4 | |
with: | |
name: release_url | |
path: release_url | |
- name: Get Release Upload URL | |
id: get_release_info | |
run: | | |
value=`cat release_url/release_url.txt || cat release_url.txt` | |
echo "upload_url=$value" >> $GITHUB_OUTPUT | |
env: | |
TAG_REF_NAME: ${{ github.ref }} | |
REPOSITORY_NAME: ${{ github.repository }} | |
- name: Upload Release Asset x-wrt-24.04_b202410102114-qualcommax-ipq807x | |
id: asset-4522c85a4f06b95ac7240a364624ece5 | |
uses: shogo82148/actions-upload-release-asset@v1 | |
with: | |
github_token: ${{ secrets.WORKFLOW_TOKEN }} | |
upload_url: ${{ steps.get_release_info.outputs.upload_url }} | |
asset_path: /mnt/work/x-wrt/x-wrt-24.04_b202410102114-qualcommax-ipq807x.zip | |
asset_name: x-wrt-24.04_b202410102114-qualcommax-ipq807x.zip | |
asset_content_type: application/zip | |
overwrite: true | |
- name: Upload Release Asset x-wrt-24.04_b202410102114-qualcommax-ipq60xx | |
id: asset-967859249379c9607f14eabb8cedbfa6 | |
uses: shogo82148/actions-upload-release-asset@v1 | |
with: | |
github_token: ${{ secrets.WORKFLOW_TOKEN }} | |
upload_url: ${{ steps.get_release_info.outputs.upload_url }} | |
asset_path: /mnt/work/x-wrt/x-wrt-24.04_b202410102114-qualcommax-ipq60xx.zip | |
asset_name: x-wrt-24.04_b202410102114-qualcommax-ipq60xx.zip | |
asset_content_type: application/zip | |
overwrite: true | |
build-bcm27xx-bcm2711: | |
if: contains(github.ref, 'tags/v') | |
needs: release | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Pre Initialization environment | |
run: | | |
docker rmi `docker images -q` | |
sudo -E df -h | |
sudo ls -lh /mnt | |
- name: Initialization environment | |
env: | |
DEBIAN_FRONTEND: noninteractive | |
run: | | |
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 tzdata python3-pyelftools python3-dev | |
sudo -E apt-get -y autoremove --purge | |
sudo -E apt-get clean | |
- name: Clean up disk | |
run: sudo rm -rf /opt/* | |
- name: Clone source code | |
run: | | |
sudo -E mkdir /mnt/work | |
sudo -E chmod 777 /mnt/work | |
git clone --depth 1 --branch `cat release.tag` https://github.com/x-wrt/x-wrt.git /mnt/work/x-wrt | |
- name: Update feeds | |
run: cd /mnt/work/x-wrt && ./scripts/feeds update -a | |
- name: Install feeds | |
run: cd /mnt/work/x-wrt && ./scripts/feeds install -a | |
- name: Building | |
run: | | |
cp *.sh /mnt/work/x-wrt/ | |
cp release.tag /mnt/work/x-wrt/ | |
cd /mnt/work/x-wrt | |
echo -e "$(nproc) thread build." | |
BTARGET="bcm27xx-bcm2711" sh build.sh $(nproc) | |
- name : Upload make.log if failure | |
uses: actions/upload-artifact@v4 | |
if: failure() | |
with: | |
name: build-failure-log-bcm27xx-bcm2711 | |
path: make.log | |
- name: Load Release URL File from release job | |
uses: actions/download-artifact@v4 | |
with: | |
name: release_url | |
path: release_url | |
- name: Get Release Upload URL | |
id: get_release_info | |
run: | | |
value=`cat release_url/release_url.txt || cat release_url.txt` | |
echo "upload_url=$value" >> $GITHUB_OUTPUT | |
env: | |
TAG_REF_NAME: ${{ github.ref }} | |
REPOSITORY_NAME: ${{ github.repository }} | |
- name: Upload Release Asset x-wrt-24.04_b202410102114-bcm27xx-bcm2711 | |
id: asset-bfb272d4dc1bc25cb18ec3e520c28434 | |
uses: shogo82148/actions-upload-release-asset@v1 | |
with: | |
github_token: ${{ secrets.WORKFLOW_TOKEN }} | |
upload_url: ${{ steps.get_release_info.outputs.upload_url }} | |
asset_path: /mnt/work/x-wrt/x-wrt-24.04_b202410102114-bcm27xx-bcm2711.zip | |
asset_name: x-wrt-24.04_b202410102114-bcm27xx-bcm2711.zip | |
asset_content_type: application/zip | |
overwrite: true | |
build-bcm27xx-bcm2712: | |
if: contains(github.ref, 'tags/v') | |
needs: release | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Pre Initialization environment | |
run: | | |
docker rmi `docker images -q` | |
sudo -E df -h | |
sudo ls -lh /mnt | |
- name: Initialization environment | |
env: | |
DEBIAN_FRONTEND: noninteractive | |
run: | | |
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 tzdata python3-pyelftools python3-dev | |
sudo -E apt-get -y autoremove --purge | |
sudo -E apt-get clean | |
- name: Clean up disk | |
run: sudo rm -rf /opt/* | |
- name: Clone source code | |
run: | | |
sudo -E mkdir /mnt/work | |
sudo -E chmod 777 /mnt/work | |
git clone --depth 1 --branch `cat release.tag` https://github.com/x-wrt/x-wrt.git /mnt/work/x-wrt | |
- name: Update feeds | |
run: cd /mnt/work/x-wrt && ./scripts/feeds update -a | |
- name: Install feeds | |
run: cd /mnt/work/x-wrt && ./scripts/feeds install -a | |
- name: Building | |
run: | | |
cp *.sh /mnt/work/x-wrt/ | |
cp release.tag /mnt/work/x-wrt/ | |
cd /mnt/work/x-wrt | |
echo -e "$(nproc) thread build." | |
BTARGET="bcm27xx-bcm2712" sh build.sh $(nproc) | |
- name : Upload make.log if failure | |
uses: actions/upload-artifact@v4 | |
if: failure() | |
with: | |
name: build-failure-log-bcm27xx-bcm2712 | |
path: make.log | |
- name: Load Release URL File from release job | |
uses: actions/download-artifact@v4 | |
with: | |
name: release_url | |
path: release_url | |
- name: Get Release Upload URL | |
id: get_release_info | |
run: | | |
value=`cat release_url/release_url.txt || cat release_url.txt` | |
echo "upload_url=$value" >> $GITHUB_OUTPUT | |
env: | |
TAG_REF_NAME: ${{ github.ref }} | |
REPOSITORY_NAME: ${{ github.repository }} | |
- name: Upload Release Asset x-wrt-24.04_b202410102114-bcm27xx-bcm2712 | |
id: asset-20881bbef32256d9a828dd59cbc1413f | |
uses: shogo82148/actions-upload-release-asset@v1 | |
with: | |
github_token: ${{ secrets.WORKFLOW_TOKEN }} | |
upload_url: ${{ steps.get_release_info.outputs.upload_url }} | |
asset_path: /mnt/work/x-wrt/x-wrt-24.04_b202410102114-bcm27xx-bcm2712.zip | |
asset_name: x-wrt-24.04_b202410102114-bcm27xx-bcm2712.zip | |
asset_content_type: application/zip | |
overwrite: true | |
build-bcm53xx-generic: | |
if: contains(github.ref, 'tags/v') | |
needs: release | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Pre Initialization environment | |
run: | | |
docker rmi `docker images -q` | |
sudo -E df -h | |
sudo ls -lh /mnt | |
- name: Initialization environment | |
env: | |
DEBIAN_FRONTEND: noninteractive | |
run: | | |
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 tzdata python3-pyelftools python3-dev | |
sudo -E apt-get -y autoremove --purge | |
sudo -E apt-get clean | |
- name: Clean up disk | |
run: sudo rm -rf /opt/* | |
- name: Clone source code | |
run: | | |
sudo -E mkdir /mnt/work | |
sudo -E chmod 777 /mnt/work | |
git clone --depth 1 --branch `cat release.tag` https://github.com/x-wrt/x-wrt.git /mnt/work/x-wrt | |
- name: Update feeds | |
run: cd /mnt/work/x-wrt && ./scripts/feeds update -a | |
- name: Install feeds | |
run: cd /mnt/work/x-wrt && ./scripts/feeds install -a | |
- name: Building | |
run: | | |
cp *.sh /mnt/work/x-wrt/ | |
cp release.tag /mnt/work/x-wrt/ | |
cd /mnt/work/x-wrt | |
echo -e "$(nproc) thread build." | |
BTARGET="bcm53xx-generic" sh build.sh $(nproc) | |
- name : Upload make.log if failure | |
uses: actions/upload-artifact@v4 | |
if: failure() | |
with: | |
name: build-failure-log-bcm53xx-generic | |
path: make.log | |
- name: Load Release URL File from release job | |
uses: actions/download-artifact@v4 | |
with: | |
name: release_url | |
path: release_url | |
- name: Get Release Upload URL | |
id: get_release_info | |
run: | | |
value=`cat release_url/release_url.txt || cat release_url.txt` | |
echo "upload_url=$value" >> $GITHUB_OUTPUT | |
env: | |
TAG_REF_NAME: ${{ github.ref }} | |
REPOSITORY_NAME: ${{ github.repository }} | |
- name: Upload Release Asset x-wrt-24.04_b202410102114-bcm53xx-generic | |
id: asset-68e1a5c88e09a30635d876c00ff502a3 | |
uses: shogo82148/actions-upload-release-asset@v1 | |
with: | |
github_token: ${{ secrets.WORKFLOW_TOKEN }} | |
upload_url: ${{ steps.get_release_info.outputs.upload_url }} | |
asset_path: /mnt/work/x-wrt/x-wrt-24.04_b202410102114-bcm53xx-generic.zip | |
asset_name: x-wrt-24.04_b202410102114-bcm53xx-generic.zip | |
asset_content_type: application/zip | |
overwrite: true | |
build-ipq806x-generic: | |
if: contains(github.ref, 'tags/v') | |
needs: release | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Pre Initialization environment | |
run: | | |
docker rmi `docker images -q` | |
sudo -E df -h | |
sudo ls -lh /mnt | |
- name: Initialization environment | |
env: | |
DEBIAN_FRONTEND: noninteractive | |
run: | | |
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 tzdata python3-pyelftools python3-dev | |
sudo -E apt-get -y autoremove --purge | |
sudo -E apt-get clean | |
- name: Clean up disk | |
run: sudo rm -rf /opt/* | |
- name: Clone source code | |
run: | | |
sudo -E mkdir /mnt/work | |
sudo -E chmod 777 /mnt/work | |
git clone --depth 1 --branch `cat release.tag` https://github.com/x-wrt/x-wrt.git /mnt/work/x-wrt | |
- name: Update feeds | |
run: cd /mnt/work/x-wrt && ./scripts/feeds update -a | |
- name: Install feeds | |
run: cd /mnt/work/x-wrt && ./scripts/feeds install -a | |
- name: Building | |
run: | | |
cp *.sh /mnt/work/x-wrt/ | |
cp release.tag /mnt/work/x-wrt/ | |
cd /mnt/work/x-wrt | |
echo -e "$(nproc) thread build." | |
BTARGET="ipq806x-generic" sh build.sh $(nproc) | |
- name : Upload make.log if failure | |
uses: actions/upload-artifact@v4 | |
if: failure() | |
with: | |
name: build-failure-log-ipq806x-generic | |
path: make.log | |
- name: Load Release URL File from release job | |
uses: actions/download-artifact@v4 | |
with: | |
name: release_url | |
path: release_url | |
- name: Get Release Upload URL | |
id: get_release_info | |
run: | | |
value=`cat release_url/release_url.txt || cat release_url.txt` | |
echo "upload_url=$value" >> $GITHUB_OUTPUT | |
env: | |
TAG_REF_NAME: ${{ github.ref }} | |
REPOSITORY_NAME: ${{ github.repository }} | |
- name: Upload Release Asset x-wrt-24.04_b202410102114-ipq806x-generic | |
id: asset-4eaffeb75b722c95f859a21ff5f87a0f | |
uses: shogo82148/actions-upload-release-asset@v1 | |
with: | |
github_token: ${{ secrets.WORKFLOW_TOKEN }} | |
upload_url: ${{ steps.get_release_info.outputs.upload_url }} | |
asset_path: /mnt/work/x-wrt/x-wrt-24.04_b202410102114-ipq806x-generic.zip | |
asset_name: x-wrt-24.04_b202410102114-ipq806x-generic.zip | |
asset_content_type: application/zip | |
overwrite: true | |
build-kirkwood-generic: | |
if: contains(github.ref, 'tags/v') | |
needs: release | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Pre Initialization environment | |
run: | | |
docker rmi `docker images -q` | |
sudo -E df -h | |
sudo ls -lh /mnt | |
- name: Initialization environment | |
env: | |
DEBIAN_FRONTEND: noninteractive | |
run: | | |
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 tzdata python3-pyelftools python3-dev | |
sudo -E apt-get -y autoremove --purge | |
sudo -E apt-get clean | |
- name: Clean up disk | |
run: sudo rm -rf /opt/* | |
- name: Clone source code | |
run: | | |
sudo -E mkdir /mnt/work | |
sudo -E chmod 777 /mnt/work | |
git clone --depth 1 --branch `cat release.tag` https://github.com/x-wrt/x-wrt.git /mnt/work/x-wrt | |
- name: Update feeds | |
run: cd /mnt/work/x-wrt && ./scripts/feeds update -a | |
- name: Install feeds | |
run: cd /mnt/work/x-wrt && ./scripts/feeds install -a | |
- name: Building | |
run: | | |
cp *.sh /mnt/work/x-wrt/ | |
cp release.tag /mnt/work/x-wrt/ | |
cd /mnt/work/x-wrt | |
echo -e "$(nproc) thread build." | |
BTARGET="kirkwood-generic" sh build.sh $(nproc) | |
- name : Upload make.log if failure | |
uses: actions/upload-artifact@v4 | |
if: failure() | |
with: | |
name: build-failure-log-kirkwood-generic | |
path: make.log | |
- name: Load Release URL File from release job | |
uses: actions/download-artifact@v4 | |
with: | |
name: release_url | |
path: release_url | |
- name: Get Release Upload URL | |
id: get_release_info | |
run: | | |
value=`cat release_url/release_url.txt || cat release_url.txt` | |
echo "upload_url=$value" >> $GITHUB_OUTPUT | |
env: | |
TAG_REF_NAME: ${{ github.ref }} | |
REPOSITORY_NAME: ${{ github.repository }} | |
- name: Upload Release Asset x-wrt-24.04_b202410102114-kirkwood-generic | |
id: asset-f318103ed9fa7b0c92af91742887fc5f | |
uses: shogo82148/actions-upload-release-asset@v1 | |
with: | |
github_token: ${{ secrets.WORKFLOW_TOKEN }} | |
upload_url: ${{ steps.get_release_info.outputs.upload_url }} | |
asset_path: /mnt/work/x-wrt/x-wrt-24.04_b202410102114-kirkwood-generic.zip | |
asset_name: x-wrt-24.04_b202410102114-kirkwood-generic.zip | |
asset_content_type: application/zip | |
overwrite: true | |
build-mvebu-cortexa9: | |
if: contains(github.ref, 'tags/v') | |
needs: release | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Pre Initialization environment | |
run: | | |
docker rmi `docker images -q` | |
sudo -E df -h | |
sudo ls -lh /mnt | |
- name: Initialization environment | |
env: | |
DEBIAN_FRONTEND: noninteractive | |
run: | | |
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 tzdata python3-pyelftools python3-dev | |
sudo -E apt-get -y autoremove --purge | |
sudo -E apt-get clean | |
- name: Clean up disk | |
run: sudo rm -rf /opt/* | |
- name: Clone source code | |
run: | | |
sudo -E mkdir /mnt/work | |
sudo -E chmod 777 /mnt/work | |
git clone --depth 1 --branch `cat release.tag` https://github.com/x-wrt/x-wrt.git /mnt/work/x-wrt | |
- name: Update feeds | |
run: cd /mnt/work/x-wrt && ./scripts/feeds update -a | |
- name: Install feeds | |
run: cd /mnt/work/x-wrt && ./scripts/feeds install -a | |
- name: Building | |
run: | | |
cp *.sh /mnt/work/x-wrt/ | |
cp release.tag /mnt/work/x-wrt/ | |
cd /mnt/work/x-wrt | |
echo -e "$(nproc) thread build." | |
BTARGET="mvebu-cortexa9" sh build.sh $(nproc) | |
- name : Upload make.log if failure | |
uses: actions/upload-artifact@v4 | |
if: failure() | |
with: | |
name: build-failure-log-mvebu-cortexa9 | |
path: make.log | |
- name: Load Release URL File from release job | |
uses: actions/download-artifact@v4 | |
with: | |
name: release_url | |
path: release_url | |
- name: Get Release Upload URL | |
id: get_release_info | |
run: | | |
value=`cat release_url/release_url.txt || cat release_url.txt` | |
echo "upload_url=$value" >> $GITHUB_OUTPUT | |
env: | |
TAG_REF_NAME: ${{ github.ref }} | |
REPOSITORY_NAME: ${{ github.repository }} | |
- name: Upload Release Asset x-wrt-24.04_b202410102114-mvebu-cortexa9 | |
id: asset-2e7b7b3a10cf975b81e840879aa424d2 | |
uses: shogo82148/actions-upload-release-asset@v1 | |
with: | |
github_token: ${{ secrets.WORKFLOW_TOKEN }} | |
upload_url: ${{ steps.get_release_info.outputs.upload_url }} | |
asset_path: /mnt/work/x-wrt/x-wrt-24.04_b202410102114-mvebu-cortexa9.zip | |
asset_name: x-wrt-24.04_b202410102114-mvebu-cortexa9.zip | |
asset_content_type: application/zip | |
overwrite: true | |
build-ramips-mt7620_ramips-mt7620-nosymbol: | |
if: contains(github.ref, 'tags/v') | |
needs: release | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Pre Initialization environment | |
run: | | |
docker rmi `docker images -q` | |
sudo -E df -h | |
sudo ls -lh /mnt | |
- name: Initialization environment | |
env: | |
DEBIAN_FRONTEND: noninteractive | |
run: | | |
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 tzdata python3-pyelftools python3-dev | |
sudo -E apt-get -y autoremove --purge | |
sudo -E apt-get clean | |
- name: Clean up disk | |
run: sudo rm -rf /opt/* | |
- name: Clone source code | |
run: | | |
sudo -E mkdir /mnt/work | |
sudo -E chmod 777 /mnt/work | |
git clone --depth 1 --branch `cat release.tag` https://github.com/x-wrt/x-wrt.git /mnt/work/x-wrt | |
- name: Update feeds | |
run: cd /mnt/work/x-wrt && ./scripts/feeds update -a | |
- name: Install feeds | |
run: cd /mnt/work/x-wrt && ./scripts/feeds install -a | |
- name: Building | |
run: | | |
cp *.sh /mnt/work/x-wrt/ | |
cp release.tag /mnt/work/x-wrt/ | |
cd /mnt/work/x-wrt | |
echo -e "$(nproc) thread build." | |
BTARGET="ramips-mt7620 ramips-mt7620-nosymbol" sh build.sh $(nproc) | |
- name : Upload make.log if failure | |
uses: actions/upload-artifact@v4 | |
if: failure() | |
with: | |
name: build-failure-log-ramips-mt7620_ramips-mt7620-nosymbol | |
path: make.log | |
- name: Load Release URL File from release job | |
uses: actions/download-artifact@v4 | |
with: | |
name: release_url | |
path: release_url | |
- name: Get Release Upload URL | |
id: get_release_info | |
run: | | |
value=`cat release_url/release_url.txt || cat release_url.txt` | |
echo "upload_url=$value" >> $GITHUB_OUTPUT | |
env: | |
TAG_REF_NAME: ${{ github.ref }} | |
REPOSITORY_NAME: ${{ github.repository }} | |
- name: Upload Release Asset x-wrt-24.04_b202410102114-ramips-mt7620 | |
id: asset-84a158e91d5bafc17b3c0da1eae21416 | |
uses: shogo82148/actions-upload-release-asset@v1 | |
with: | |
github_token: ${{ secrets.WORKFLOW_TOKEN }} | |
upload_url: ${{ steps.get_release_info.outputs.upload_url }} | |
asset_path: /mnt/work/x-wrt/x-wrt-24.04_b202410102114-ramips-mt7620.zip | |
asset_name: x-wrt-24.04_b202410102114-ramips-mt7620.zip | |
asset_content_type: application/zip | |
overwrite: true | |
- name: Upload Release Asset x-wrt-24.04_b202410102114-ramips-mt7620-nosymbol | |
id: asset-07a14ec33a65c1d3eb209aad34b8fcb5 | |
uses: shogo82148/actions-upload-release-asset@v1 | |
with: | |
github_token: ${{ secrets.WORKFLOW_TOKEN }} | |
upload_url: ${{ steps.get_release_info.outputs.upload_url }} | |
asset_path: /mnt/work/x-wrt/x-wrt-24.04_b202410102114-ramips-mt7620-nosymbol.zip | |
asset_name: x-wrt-24.04_b202410102114-ramips-mt7620-nosymbol.zip | |
asset_content_type: application/zip | |
overwrite: true | |
build-ramips-mt7621_ramips-mt7621-nosymbol: | |
if: contains(github.ref, 'tags/v') | |
needs: release | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Pre Initialization environment | |
run: | | |
docker rmi `docker images -q` | |
sudo -E df -h | |
sudo ls -lh /mnt | |
- name: Initialization environment | |
env: | |
DEBIAN_FRONTEND: noninteractive | |
run: | | |
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 tzdata python3-pyelftools python3-dev | |
sudo -E apt-get -y autoremove --purge | |
sudo -E apt-get clean | |
- name: Clean up disk | |
run: sudo rm -rf /opt/* | |
- name: Clone source code | |
run: | | |
sudo -E mkdir /mnt/work | |
sudo -E chmod 777 /mnt/work | |
git clone --depth 1 --branch `cat release.tag` https://github.com/x-wrt/x-wrt.git /mnt/work/x-wrt | |
- name: Update feeds | |
run: cd /mnt/work/x-wrt && ./scripts/feeds update -a | |
- name: Install feeds | |
run: cd /mnt/work/x-wrt && ./scripts/feeds install -a | |
- name: Building | |
run: | | |
cp *.sh /mnt/work/x-wrt/ | |
cp release.tag /mnt/work/x-wrt/ | |
cd /mnt/work/x-wrt | |
echo -e "$(nproc) thread build." | |
BTARGET="ramips-mt7621 ramips-mt7621-nosymbol" sh build.sh $(nproc) | |
- name : Upload make.log if failure | |
uses: actions/upload-artifact@v4 | |
if: failure() | |
with: | |
name: build-failure-log-ramips-mt7621_ramips-mt7621-nosymbol | |
path: make.log | |
- name: Load Release URL File from release job | |
uses: actions/download-artifact@v4 | |
with: | |
name: release_url | |
path: release_url | |
- name: Get Release Upload URL | |
id: get_release_info | |
run: | | |
value=`cat release_url/release_url.txt || cat release_url.txt` | |
echo "upload_url=$value" >> $GITHUB_OUTPUT | |
env: | |
TAG_REF_NAME: ${{ github.ref }} | |
REPOSITORY_NAME: ${{ github.repository }} | |
- name: Upload Release Asset x-wrt-24.04_b202410102114-ramips-mt7621 | |
id: asset-ab3505b6983e322f296ab82b3ba10a1d | |
uses: shogo82148/actions-upload-release-asset@v1 | |
with: | |
github_token: ${{ secrets.WORKFLOW_TOKEN }} | |
upload_url: ${{ steps.get_release_info.outputs.upload_url }} | |
asset_path: /mnt/work/x-wrt/x-wrt-24.04_b202410102114-ramips-mt7621.zip | |
asset_name: x-wrt-24.04_b202410102114-ramips-mt7621.zip | |
asset_content_type: application/zip | |
overwrite: true | |
- name: Upload Release Asset x-wrt-24.04_b202410102114-ramips-mt7621-nosymbol | |
id: asset-76703cf767296c0b02e55d2493f4e057 | |
uses: shogo82148/actions-upload-release-asset@v1 | |
with: | |
github_token: ${{ secrets.WORKFLOW_TOKEN }} | |
upload_url: ${{ steps.get_release_info.outputs.upload_url }} | |
asset_path: /mnt/work/x-wrt/x-wrt-24.04_b202410102114-ramips-mt7621-nosymbol.zip | |
asset_name: x-wrt-24.04_b202410102114-ramips-mt7621-nosymbol.zip | |
asset_content_type: application/zip | |
overwrite: true | |
build-ramips-mt76x8_ramips-mt76x8-nosymbol: | |
if: contains(github.ref, 'tags/v') | |
needs: release | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Pre Initialization environment | |
run: | | |
docker rmi `docker images -q` | |
sudo -E df -h | |
sudo ls -lh /mnt | |
- name: Initialization environment | |
env: | |
DEBIAN_FRONTEND: noninteractive | |
run: | | |
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 tzdata python3-pyelftools python3-dev | |
sudo -E apt-get -y autoremove --purge | |
sudo -E apt-get clean | |
- name: Clean up disk | |
run: sudo rm -rf /opt/* | |
- name: Clone source code | |
run: | | |
sudo -E mkdir /mnt/work | |
sudo -E chmod 777 /mnt/work | |
git clone --depth 1 --branch `cat release.tag` https://github.com/x-wrt/x-wrt.git /mnt/work/x-wrt | |
- name: Update feeds | |
run: cd /mnt/work/x-wrt && ./scripts/feeds update -a | |
- name: Install feeds | |
run: cd /mnt/work/x-wrt && ./scripts/feeds install -a | |
- name: Building | |
run: | | |
cp *.sh /mnt/work/x-wrt/ | |
cp release.tag /mnt/work/x-wrt/ | |
cd /mnt/work/x-wrt | |
echo -e "$(nproc) thread build." | |
BTARGET="ramips-mt76x8 ramips-mt76x8-nosymbol" sh build.sh $(nproc) | |
- name : Upload make.log if failure | |
uses: actions/upload-artifact@v4 | |
if: failure() | |
with: | |
name: build-failure-log-ramips-mt76x8_ramips-mt76x8-nosymbol | |
path: make.log | |
- name: Load Release URL File from release job | |
uses: actions/download-artifact@v4 | |
with: | |
name: release_url | |
path: release_url | |
- name: Get Release Upload URL | |
id: get_release_info | |
run: | | |
value=`cat release_url/release_url.txt || cat release_url.txt` | |
echo "upload_url=$value" >> $GITHUB_OUTPUT | |
env: | |
TAG_REF_NAME: ${{ github.ref }} | |
REPOSITORY_NAME: ${{ github.repository }} | |
- name: Upload Release Asset x-wrt-24.04_b202410102114-ramips-mt76x8 | |
id: asset-9d342144cd985273524b807482649ecb | |
uses: shogo82148/actions-upload-release-asset@v1 | |
with: | |
github_token: ${{ secrets.WORKFLOW_TOKEN }} | |
upload_url: ${{ steps.get_release_info.outputs.upload_url }} | |
asset_path: /mnt/work/x-wrt/x-wrt-24.04_b202410102114-ramips-mt76x8.zip | |
asset_name: x-wrt-24.04_b202410102114-ramips-mt76x8.zip | |
asset_content_type: application/zip | |
overwrite: true | |
- name: Upload Release Asset x-wrt-24.04_b202410102114-ramips-mt76x8-nosymbol | |
id: asset-dbca46dce038c09e6aa92e49e925cab7 | |
uses: shogo82148/actions-upload-release-asset@v1 | |
with: | |
github_token: ${{ secrets.WORKFLOW_TOKEN }} | |
upload_url: ${{ steps.get_release_info.outputs.upload_url }} | |
asset_path: /mnt/work/x-wrt/x-wrt-24.04_b202410102114-ramips-mt76x8-nosymbol.zip | |
asset_name: x-wrt-24.04_b202410102114-ramips-mt76x8-nosymbol.zip | |
asset_content_type: application/zip | |
overwrite: true | |
build-rockchip-armv8_armsr-armv8: | |
if: contains(github.ref, 'tags/v') | |
needs: release | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Pre Initialization environment | |
run: | | |
docker rmi `docker images -q` | |
sudo -E df -h | |
sudo ls -lh /mnt | |
- name: Initialization environment | |
env: | |
DEBIAN_FRONTEND: noninteractive | |
run: | | |
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 tzdata python3-pyelftools python3-dev | |
sudo -E apt-get -y autoremove --purge | |
sudo -E apt-get clean | |
- name: Clean up disk | |
run: sudo rm -rf /opt/* | |
- name: Clone source code | |
run: | | |
sudo -E mkdir /mnt/work | |
sudo -E chmod 777 /mnt/work | |
git clone --depth 1 --branch `cat release.tag` https://github.com/x-wrt/x-wrt.git /mnt/work/x-wrt | |
- name: Update feeds | |
run: cd /mnt/work/x-wrt && ./scripts/feeds update -a | |
- name: Install feeds | |
run: cd /mnt/work/x-wrt && ./scripts/feeds install -a | |
- name: Building | |
run: | | |
cp *.sh /mnt/work/x-wrt/ | |
cp release.tag /mnt/work/x-wrt/ | |
cd /mnt/work/x-wrt | |
echo -e "$(nproc) thread build." | |
BTARGET="rockchip-armv8 armsr-armv8" sh build.sh $(nproc) | |
- name : Upload make.log if failure | |
uses: actions/upload-artifact@v4 | |
if: failure() | |
with: | |
name: build-failure-log-rockchip-armv8_armsr-armv8 | |
path: make.log | |
- name: Load Release URL File from release job | |
uses: actions/download-artifact@v4 | |
with: | |
name: release_url | |
path: release_url | |
- name: Get Release Upload URL | |
id: get_release_info | |
run: | | |
value=`cat release_url/release_url.txt || cat release_url.txt` | |
echo "upload_url=$value" >> $GITHUB_OUTPUT | |
env: | |
TAG_REF_NAME: ${{ github.ref }} | |
REPOSITORY_NAME: ${{ github.repository }} | |
- name: Upload Release Asset x-wrt-24.04_b202410102114-rockchip-armv8 | |
id: asset-8331a772056e7d56b5088426edf3c057 | |
uses: shogo82148/actions-upload-release-asset@v1 | |
with: | |
github_token: ${{ secrets.WORKFLOW_TOKEN }} | |
upload_url: ${{ steps.get_release_info.outputs.upload_url }} | |
asset_path: /mnt/work/x-wrt/x-wrt-24.04_b202410102114-rockchip-armv8.zip | |
asset_name: x-wrt-24.04_b202410102114-rockchip-armv8.zip | |
asset_content_type: application/zip | |
overwrite: true | |
- name: Upload Release Asset x-wrt-24.04_b202410102114-armsr-armv8 | |
id: asset-b2c164ecce857c43e55c79dc2b5510ec | |
uses: shogo82148/actions-upload-release-asset@v1 | |
with: | |
github_token: ${{ secrets.WORKFLOW_TOKEN }} | |
upload_url: ${{ steps.get_release_info.outputs.upload_url }} | |
asset_path: /mnt/work/x-wrt/x-wrt-24.04_b202410102114-armsr-armv8.zip | |
asset_name: x-wrt-24.04_b202410102114-armsr-armv8.zip | |
asset_content_type: application/zip | |
overwrite: true | |
build-x86_64: | |
if: contains(github.ref, 'tags/v') | |
needs: release | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Pre Initialization environment | |
run: | | |
docker rmi `docker images -q` | |
sudo -E df -h | |
sudo ls -lh /mnt | |
- name: Initialization environment | |
env: | |
DEBIAN_FRONTEND: noninteractive | |
run: | | |
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 tzdata python3-pyelftools python3-dev | |
sudo -E apt-get -y autoremove --purge | |
sudo -E apt-get clean | |
- name: Clean up disk | |
run: sudo rm -rf /opt/* | |
- name: Clone source code | |
run: | | |
sudo -E mkdir /mnt/work | |
sudo -E chmod 777 /mnt/work | |
git clone --depth 1 --branch `cat release.tag` https://github.com/x-wrt/x-wrt.git /mnt/work/x-wrt | |
- name: Update feeds | |
run: cd /mnt/work/x-wrt && ./scripts/feeds update -a | |
- name: Install feeds | |
run: cd /mnt/work/x-wrt && ./scripts/feeds install -a | |
- name: Building | |
run: | | |
cp *.sh /mnt/work/x-wrt/ | |
cp release.tag /mnt/work/x-wrt/ | |
cd /mnt/work/x-wrt | |
echo -e "$(nproc) thread build." | |
BTARGET="x86_64" sh build.sh $(nproc) | |
- name : Upload make.log if failure | |
uses: actions/upload-artifact@v4 | |
if: failure() | |
with: | |
name: build-failure-log-x86_64 | |
path: make.log | |
- name: Load Release URL File from release job | |
uses: actions/download-artifact@v4 | |
with: | |
name: release_url | |
path: release_url | |
- name: Get Release Upload URL | |
id: get_release_info | |
run: | | |
value=`cat release_url/release_url.txt || cat release_url.txt` | |
echo "upload_url=$value" >> $GITHUB_OUTPUT | |
env: | |
TAG_REF_NAME: ${{ github.ref }} | |
REPOSITORY_NAME: ${{ github.repository }} | |
- name: Upload Release Asset x-wrt-24.04_b202410102114-x86_64 | |
id: asset-e27037bda782004fee4323ceaef49258 | |
uses: shogo82148/actions-upload-release-asset@v1 | |
with: | |
github_token: ${{ secrets.WORKFLOW_TOKEN }} | |
upload_url: ${{ steps.get_release_info.outputs.upload_url }} | |
asset_path: /mnt/work/x-wrt/x-wrt-24.04_b202410102114-x86_64.zip | |
asset_name: x-wrt-24.04_b202410102114-x86_64.zip | |
asset_content_type: application/zip | |
overwrite: true | |
build-x86_64-docker: | |
if: contains(github.ref, 'tags/v') | |
needs: release | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Pre Initialization environment | |
run: | | |
docker rmi `docker images -q` | |
sudo -E df -h | |
sudo ls -lh /mnt | |
- name: Initialization environment | |
env: | |
DEBIAN_FRONTEND: noninteractive | |
run: | | |
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 tzdata python3-pyelftools python3-dev | |
sudo -E apt-get -y autoremove --purge | |
sudo -E apt-get clean | |
- name: Clean up disk | |
run: sudo rm -rf /opt/* | |
- name: Clone source code | |
run: | | |
sudo -E mkdir /mnt/work | |
sudo -E chmod 777 /mnt/work | |
git clone --depth 1 --branch `cat release.tag` https://github.com/x-wrt/x-wrt.git /mnt/work/x-wrt | |
- name: Update feeds | |
run: cd /mnt/work/x-wrt && ./scripts/feeds update -a | |
- name: Install feeds | |
run: cd /mnt/work/x-wrt && ./scripts/feeds install -a | |
- name: Building | |
run: | | |
cp *.sh /mnt/work/x-wrt/ | |
cp release.tag /mnt/work/x-wrt/ | |
cd /mnt/work/x-wrt | |
echo -e "$(nproc) thread build." | |
BTARGET="x86_64-docker" sh build.sh $(nproc) | |
- name : Upload make.log if failure | |
uses: actions/upload-artifact@v4 | |
if: failure() | |
with: | |
name: build-failure-log-x86_64-docker | |
path: make.log | |
- name: Load Release URL File from release job | |
uses: actions/download-artifact@v4 | |
with: | |
name: release_url | |
path: release_url | |
- name: Get Release Upload URL | |
id: get_release_info | |
run: | | |
value=`cat release_url/release_url.txt || cat release_url.txt` | |
echo "upload_url=$value" >> $GITHUB_OUTPUT | |
env: | |
TAG_REF_NAME: ${{ github.ref }} | |
REPOSITORY_NAME: ${{ github.repository }} | |
- name: Upload Release Asset x-wrt-24.04_b202410102114-x86_64-docker | |
id: asset-2e00f726cf59109805ac3ed673ec991e | |
uses: shogo82148/actions-upload-release-asset@v1 | |
with: | |
github_token: ${{ secrets.WORKFLOW_TOKEN }} | |
upload_url: ${{ steps.get_release_info.outputs.upload_url }} | |
asset_path: /mnt/work/x-wrt/x-wrt-24.04_b202410102114-x86_64-docker.zip | |
asset_name: x-wrt-24.04_b202410102114-x86_64-docker.zip | |
asset_content_type: application/zip | |
overwrite: true |