Skip to content

Commit

Permalink
Create ipq807x.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
rmandrad authored Feb 6, 2024
1 parent 57b7c0a commit 94471e9
Showing 1 changed file with 65 additions and 0 deletions.
65 changes: 65 additions & 0 deletions .github/workflows/ipq807x.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
name: Build IPQ807x NSS

on: workflow_dispatch

jobs:
build:
name: Prepare and build IPQ807x NSS generic images
runs-on: self-hosted

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Update and install feeds
run: |
./scripts/feeds update -a
./scripts/feeds install -a
- name: Import full config for IPQ807x NSS Generic
run: |
mv .full_config .config
- name: QoL fixes on default config
run: |
mkdir -p files/etc/uci-defaults
cat > files/etc/uci-defaults/xxx_config << EOF
uci set wireless.radio0.country='US'
uci set wireless.radio1.country='US'
uci set wireless.radio2.country='US'
uci set wireless.radio1.disabled=0
uci set wireless.radio2.disabled=0
uci commit
EOF
- name: Download package sources
run: make download V=s

- name: Build tools
run: |
make tools/install -j$(nproc) V=s || \
make tools/install V=s
- name: Build toolchain
run: |
make toolchain/install -j$(nproc) V=s || \
make toolchain/install V=s
- name: Build target images
run: |
make -j$(nproc) V=s || \
make V=s
- name: Get the current date
run: echo "NOW=$(date +%F-%H%M)" >> $GITHUB_ENV

- name: Create a release
uses: "ncipollo/release-action@v1"
with:
name: "Updated prebuilt images ${{ env.NOW }}"
commit: "main"
tag: "ipq807x-${{ env.NOW }}"
generateReleaseNotes: true
makeLatest: true
artifacts: bin/targets/qualcommax/ipq807x/*
token: "${{ secrets.GITHUB_TOKEN }}"

0 comments on commit 94471e9

Please sign in to comment.