forked from nlroel/openwrt-switch-lan-play
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
upgrade version to 0.2.3 and enable github action build
- Loading branch information
Showing
4 changed files
with
76 additions
and
3 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
name: CI | ||
|
||
|
||
on: | ||
push: | ||
branches: [ master ] | ||
pull_request: | ||
branches: [ master ] | ||
|
||
jobs: | ||
ramips-mt7620: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Build ipk | ||
run: docker build . -t htynkn/openwrt-switch-lan-play:latest | ||
|
||
- name: Copy ipk | ||
run: docker run -v $PWD:/opt/mount --rm --entrypoint cp htynkn/openwrt-switch-lan-play:latest /sdk/openwrt-sdk/target.zip /opt/mount/target-ramips-mt7620.zip | ||
- name: Check files | ||
run: ls | ||
|
||
- name: Save ipk | ||
uses: actions/upload-artifact@v1 | ||
with: | ||
name: ramips-mt7620 | ||
path: target-ramips-mt7620.zip | ||
|
||
ramips-mt7621: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Build ipk | ||
run: docker build --build-arg sdkURL=https://downloads.openwrt.org/releases/19.07.3/targets/ramips/mt7621/openwrt-sdk-19.07.3-ramips-mt7621_gcc-7.5.0_musl.Linux-x86_64.tar.xz . -t htynkn/openwrt-switch-lan-play:latest | ||
|
||
- name: Copy ipk | ||
run: docker run -v $PWD:/opt/mount --rm --entrypoint cp htynkn/openwrt-switch-lan-play:latest /sdk/openwrt-sdk/target.zip /opt/mount/target-ramips-mt7621.zip | ||
- name: Check files | ||
run: ls | ||
|
||
- name: Save ipk | ||
uses: actions/upload-artifact@v1 | ||
with: | ||
name: ramips-mt7621 | ||
path: target-ramips-mt7621.zip |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
FROM ubuntu:16.04 | ||
|
||
RUN apt-get update && apt-get install bzip2 file python gcc g++ libncurses5-dev gawk zip xz-utils wget libgetopt-complete-perl make cmake git -y -qq | ||
|
||
ARG sdkURL=https://downloads.openwrt.org/releases/19.07.3/targets/ramips/mt7620/openwrt-sdk-19.07.3-ramips-mt7620_gcc-7.5.0_musl.Linux-x86_64.tar.xz | ||
ENV sdkURL ${sdkURL} | ||
|
||
RUN echo ${sdkURL} | ||
RUN wget -q ${sdkURL} -O /sdk.tar.xz && mkdir /sdk && tar -xf /sdk.tar.xz -C /sdk && cp -R /sdk/openwrt-* /sdk/openwrt-sdk | ||
|
||
WORKDIR /sdk/openwrt-sdk | ||
RUN cp feeds.conf.default feeds.conf && echo "src-git openwrt_switch_lan_play https://github.com/htynkn/openwrt-switch-lan-play.git" >> feeds.conf | ||
|
||
RUN ./scripts/feeds update -a && ./scripts/feeds install -a | ||
RUN wget https://raw.githubusercontent.com/torvalds/linux/v4.7/scripts/kconfig/merge_config.sh && chmod +x merge_config.sh | ||
RUN make defconfig | ||
RUN echo "CONFIG_PACKAGE_luci-app-switch-lan-play=y" >> .config-fragment | ||
RUN echo "CONFIG_PACKAGE_switch-lan-play=y" >> .config-fragment | ||
|
||
RUN ./merge_config.sh -m .config .config-fragment | ||
|
||
|
||
RUN make package/luci-app-switch-lan-play/compile && make package/switch-lan-play/compile | ||
RUN find . | grep lan-play | grep ipk | xargs zip -ur target.zip |
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
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