forked from openwrt/openwrt
-
Notifications
You must be signed in to change notification settings - Fork 1
68 lines (55 loc) · 2.07 KB
/
build_mwlwifi.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
name: Build mwlwifi
on: [workflow_dispatch]
permissions: write-all
env:
BUILD_TARGET: 24.10-SNAPSHOT
GCCVER: 13.3.0
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@main
- name: Initialize environment
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
sudo apt update
sudo apt install build-essential clang flex bison g++ gawk gcc-multilib g++-multilib \
gettext git libncurses5-dev libssl-dev python3-distutils rsync unzip zlib1g-dev \
file wget
- name: Install sdk
run: |
cd $GITHUB_WORKSPACE
wget https://downloads.openwrt.org/releases/$BUILD_TARGET/targets/mvebu/cortexa9/config.buildinfo -O .config
wget https://downloads.openwrt.org/releases/$BUILD_TARGET/targets/mvebu/cortexa9/openwrt-sdk-$BUILD_TARGET-mvebu-cortexa9_gcc-$GCCVER_musl_eabi.Linux-x86_64.tar.zst
tar --zstd -xf openwrt-sdk-*.tar.zst
rsync -a openwrt-sdk-$BUILD_TARGET-mvebu-cortexa9_gcc-$GCCVER_musl_eabi.Linux-x86_64/* .
- name: Update feeds
run: cd $GITHUB_WORKSPACE && ./scripts/feeds update -a
- name: Install feeds
run: cd $GITHUB_WORKSPACE && ./scripts/feeds install -a
- name: Make defconfig
run: |
cd $GITHUB_WORKSPACE
rsync -a feeds/base/package/* feeds/base/.
make defconfig
- name: Build Image
run: |
cd $GITHUB_WORKSPACE
make -j$(nproc) package/kernel/mwlwifi/compile V=s
- name: Upload directories
uses: actions/upload-artifact@main
with:
name: build_upload
path: |
bin
- name: Upload files
uses: maggie44/actions/packages/automatic-releases@built-packages
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
automatic_release_tag: mwlwifi-jbsky-${{ env.BUILD_TARGET }}
prerelease: false
title: jbsky ${{ env.BUILD_TARGET }} mwlwifi
files: |
bin/targets/mvebu/cortexa9/packages/kmod-mwlwifi_*.ipk
bin/targets/mvebu/cortexa9/packages/mwlwifi-firmware-*.ipk