Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
arix00 committed Nov 20, 2024
1 parent c936836 commit 37a129b
Show file tree
Hide file tree
Showing 2 changed files with 69 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .github/workflows/build_foss_snapshot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,17 +35,26 @@ jobs:
- name: Checkout
uses: actions/checkout@v4
with:
ref: 'mx4300-foss'

- name: Update feeds
run: scripts/feeds update -a && scripts/feeds install -a

- name: Get script
run: |
wget https://github.com/arix00/openwrt-mx4300/blob/buildscript/release_foss.sh
wget https://raw.githubusercontent.com/arix00/openwrt-mx4300/refs/heads/buildscript/genconfig_foss.sh
- name: Generate config
run: sh genconfig_foss.sh snapshot


- name: Build firmware images
run: make -j$(($(nproc)+1)) world

- name: Check build version
run: cat `find staging_dir -name banner`

- name: Prepare release
run: sh release_foss.sh ${{ env.ver }}

Expand Down
59 changes: 59 additions & 0 deletions .github/workflows/build_foss_snapshot_test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
name: build foss snapshot image
on: workflow_dispatch

jobs:
build:
name: build foss snapshot image
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Install packages
run: |
sudo apt-get update && \
sudo apt-get install -y \
build-essential \
clang \
flex \
bison \
g++ \
gawk \
gcc-multilib \
g++-multilib \
gettext \
git \
libncurses-dev \
libssl-dev \
python3-setuptools \
rsync \
unzip \
zlib1g-dev \
file \
jq \
wget && \
sudo apt-get clean
- name: Checkout
uses: actions/checkout@v4
with:
ref: 'mx4300-foss'

- name: Update feeds
run: scripts/feeds update -a && scripts/feeds install -a

- name: Get script
run: |
wget https://github.com/arix00/openwrt-mx4300/blob/buildscript/release_foss.sh
wget https://raw.githubusercontent.com/arix00/openwrt-mx4300/refs/heads/buildscript/genconfig_foss.sh
- name: Generate config
run: sh genconfig_foss.sh snapshot

- name: Build firmware images
run: make -j$(($(nproc)+1)) world

- name: Check build version
run: cat `find staging_dir -name banner`

- name: Prepare release
run: sh release_foss.sh ${{ env.ver }}

0 comments on commit 37a129b

Please sign in to comment.