change matrix
This commit is contained in:
43
.github/workflows/build-module.yml
vendored
43
.github/workflows/build-module.yml
vendored
@@ -7,47 +7,39 @@ on:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
name: "v${{ matrix.tag }} - ${{ matrix.build_env.pkgarch}} :: ${{ matrix.build_env.target}}/${{ matrix.build_env.subtarget}} build"
|
name: "v${{ matrix.build_env.tag }} - ${{ matrix.build_env.pkgarch}} :: ${{ matrix.build_env.target}}/${{ matrix.build_env.subtarget}} build"
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
#tag: ['v23.05.0', 'v23.05.2', 'v22.03.4']
|
|
||||||
tag: ['23.05.0']
|
|
||||||
# tag: ['v22.03.4']
|
|
||||||
build_env:
|
build_env:
|
||||||
# - pkgarch: mips_24kc
|
- tag: "22.03.4"
|
||||||
# target: ath79
|
pkgarch: mips_24kc
|
||||||
# subtarget: nand
|
target: ath79
|
||||||
# - pkgarch: mipsel_24kc
|
subtarget: nand
|
||||||
# target: ramips
|
vermagic: "5c9be91b90bda5403fe3a7c4e8ddb26f"
|
||||||
# subtarget: mt7620
|
- tag: "23.05.0"
|
||||||
- pkgarch: mipsel_24kc
|
pkgarch: mipsel_24kc
|
||||||
target: ramips
|
target: ramips
|
||||||
subtarget: mt7621
|
subtarget: mt7621
|
||||||
vermagic: "9c242f353867f49a96054ff8c9f2c460"
|
vermagic: "9c242f353867f49a96054ff8c9f2c460"
|
||||||
# - pkgarch: arm_cortex-a7
|
|
||||||
# target: mediatek
|
|
||||||
# subtarget: mt7629
|
|
||||||
# - pkgarch: arm_cortex-a9
|
|
||||||
# target: linksys
|
|
||||||
# subtarget: wrt3200acm
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
repository: openwrt/openwrt
|
repository: openwrt/openwrt
|
||||||
ref: v${{ matrix.tag }}
|
ref: v${{ matrix.build_env.tag }}
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
|
||||||
- name: Cache Tools and Kernel
|
- name: Cache Tools and Kernel
|
||||||
id: cache-tools-kernel
|
id: cache-tools-kernel
|
||||||
uses: actions/cache@v4
|
uses: actions/cache@v4
|
||||||
env:
|
env:
|
||||||
cache-name: "cache-tools-kernel-${{ matrix.tag }}-${{ matrix.build_env.pkgarch}}-${{ matrix.build_env.target}}-${{ matrix.build_env.subtarget}}"
|
cache-name: "cache-tools-kernel-${{ matrix.build_env.tag }}-${{ matrix.build_env.pkgarch}}-${{ matrix.build_env.target}}-${{ matrix.build_env.subtarget}}"
|
||||||
with:
|
with:
|
||||||
|
path: "**"
|
||||||
key: ${{ runner.os }}-build-vm4-${{ env.cache-name }}
|
key: ${{ runner.os }}-build-vm4-${{ env.cache-name }}
|
||||||
restore-keys: |
|
restore-keys: |
|
||||||
${{ runner.os }}-build-vm4-cache-tools-kernel-${{ matrix.tag }}-${{ matrix.build_env.pkgarch}}-
|
${{ runner.os }}-build-vm4-cache-tools-kernel-${{ matrix.build_env.tag }}-${{ matrix.build_env.pkgarch}}-
|
||||||
|
|
||||||
- name: Building kernel and tools
|
- name: Building kernel and tools
|
||||||
if: ${{ steps.cache-tools-kernel.outputs.cache-hit != 'true' }}
|
if: ${{ steps.cache-tools-kernel.outputs.cache-hit != 'true' }}
|
||||||
@@ -55,12 +47,12 @@ jobs:
|
|||||||
echo "pkgarch: ${{ matrix.build_env.pkgarch}}, target:${{ matrix.build_env.target}}, subtarget: ${{ matrix.build_env.subtarget}}"
|
echo "pkgarch: ${{ matrix.build_env.pkgarch}}, target:${{ matrix.build_env.target}}, subtarget: ${{ matrix.build_env.subtarget}}"
|
||||||
|
|
||||||
# Setup & install feeds
|
# Setup & install feeds
|
||||||
wget https://downloads.openwrt.org/releases/${{ matrix.tag }}/targets/${{ matrix.build_env.target}}/${{ matrix.build_env.subtarget}}/feeds.buildinfo -O feeds.conf
|
wget https://downloads.openwrt.org/releases/${{ matrix.build_env.tag }}/targets/${{ matrix.build_env.target}}/${{ matrix.build_env.subtarget}}/feeds.buildinfo -O feeds.conf
|
||||||
echo "src-git awgopenwrt https://github.com/yury-sannikov/awg-openwrt.git" >> ./feeds.conf
|
echo "src-git awgopenwrt https://github.com/yury-sannikov/awg-openwrt.git" >> ./feeds.conf
|
||||||
./scripts/feeds update && ./scripts/feeds install -a
|
./scripts/feeds update && ./scripts/feeds install -a
|
||||||
|
|
||||||
# Setup config with AWG and dependencies
|
# Setup config with AWG and dependencies
|
||||||
wget https://downloads.openwrt.org/releases/${{ matrix.tag }}/targets/${{ matrix.build_env.target}}/${{ matrix.build_env.subtarget}}/config.buildinfo -O .config
|
wget https://downloads.openwrt.org/releases/${{ matrix.build_env.tag }}/targets/${{ matrix.build_env.target}}/${{ matrix.build_env.subtarget}}/config.buildinfo -O .config
|
||||||
echo "CONFIG_PACKAGE_kmod-amneziawg=m" >> .config
|
echo "CONFIG_PACKAGE_kmod-amneziawg=m" >> .config
|
||||||
echo "CONFIG_PACKAGE_amneziawg-tools=y" >> .config
|
echo "CONFIG_PACKAGE_amneziawg-tools=y" >> .config
|
||||||
echo "CONFIG_PACKAGE_luci-app-amneziawg=y" >> .config
|
echo "CONFIG_PACKAGE_luci-app-amneziawg=y" >> .config
|
||||||
@@ -104,8 +96,9 @@ jobs:
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
make package/kmod-amneziawg/{clean,download,prepare} V=s
|
# Ignore kmod build for some targets, replace with the awg-go
|
||||||
make package/kmod-amneziawg/compile V=s
|
make package/kmod-amneziawg/{clean,download,prepare} V=s || true
|
||||||
|
make package/kmod-amneziawg/compile V=s || true
|
||||||
|
|
||||||
make package/luci-app-amneziawg/{clean,download,prepare}
|
make package/luci-app-amneziawg/{clean,download,prepare}
|
||||||
make package/luci-app-amneziawg/compile V=s
|
make package/luci-app-amneziawg/compile V=s
|
||||||
@@ -117,7 +110,7 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
tag_name=${{ github.ref_name }}
|
tag_name=${{ github.ref_name }}
|
||||||
mkdir -p awgrelease
|
mkdir -p awgrelease
|
||||||
postfix="${tag_name}_v${{ matrix.tag }}_${{ matrix.build_env.pkgarch}}_${{ matrix.build_env.target}}_${{ matrix.build_env.subtarget}}"
|
postfix="${tag_name}_v${{ matrix.build_env.tag }}_${{ matrix.build_env.pkgarch}}_${{ matrix.build_env.target}}_${{ matrix.build_env.subtarget}}"
|
||||||
cp bin/packages/${{ matrix.build_env.pkgarch }}/awgopenwrt/amneziawg-tools_*.ipk awgrelease/amneziawg-tools_${postfix}.ipk
|
cp bin/packages/${{ matrix.build_env.pkgarch }}/awgopenwrt/amneziawg-tools_*.ipk awgrelease/amneziawg-tools_${postfix}.ipk
|
||||||
cp bin/packages/${{ matrix.build_env.pkgarch }}/awgopenwrt/luci-app-amneziawg_*.ipk awgrelease/luci-app-amneziawg_${postfix}.ipk
|
cp bin/packages/${{ matrix.build_env.pkgarch }}/awgopenwrt/luci-app-amneziawg_*.ipk awgrelease/luci-app-amneziawg_${postfix}.ipk
|
||||||
cp bin/targets/${{ matrix.build_env.target}}/${{ matrix.build_env.subtarget}}/packages/kmod-amneziawg_*.ipk awgrelease/kmod-amneziawg_${postfix}.ipk
|
cp bin/targets/${{ matrix.build_env.target}}/${{ matrix.build_env.subtarget}}/packages/kmod-amneziawg_*.ipk awgrelease/kmod-amneziawg_${postfix}.ipk
|
||||||
|
|||||||
Reference in New Issue
Block a user