This commit is contained in:
root
2020-09-12 18:44:22 +08:00
parent 4a9c72026f
commit 7326b4b65f

View File

@@ -30,7 +30,7 @@ jobs:
- name: Clone Source - name: Clone Source
run: | run: |
git clone https://github.com/project-openwrt/openwrt --depth=1 -b openwrt-18.06-k5.4 git clone https://github.com/project-openwrt/openwrt --depth=1 -b openwrt-18.06-k5.4
git clone https://github.com/openwrt/openwrt --depth=1 oopenwrt #git clone https://github.com/openwrt/openwrt --depth=1 oopenwrt
#cd oopenwrt && echo 'package/boot/arm-trusted-firmware-rockchip #cd oopenwrt && echo 'package/boot/arm-trusted-firmware-rockchip
#package/boot/uboot-rockchip #package/boot/uboot-rockchip
#target/linux/rockchip #target/linux/rockchip
@@ -42,6 +42,7 @@ jobs:
echo 'CONFIG_TARGET_rockchip=y echo 'CONFIG_TARGET_rockchip=y
CONFIG_TARGET_rockchip_armv8=y CONFIG_TARGET_rockchip_armv8=y
CONFIG_TARGET_rockchip_armv8_DEVICE_friendlyarm_nanopi-r2s=y' > .config CONFIG_TARGET_rockchip_armv8_DEVICE_friendlyarm_nanopi-r2s=y' > .config
cat ../minimal_config.seed >> .config
- name: Compile - name: Compile
run: | run: |
@@ -49,13 +50,13 @@ jobs:
./scripts/feeds update -a && ./scripts/feeds install -a ./scripts/feeds update -a && ./scripts/feeds install -a
make defconfig make defconfig
make download -j8 make download -j8
make -j$(($(nproc) + 1)) -s make -j$(($(nproc) + 1)) -s
- name: Assemble Artifact - name: Assemble Artifact
id: assemble_artifact id: assemble_artifact
run: | run: |
#gzip openwrt/bin/targets/*/*/*img* #gzip openwrt/bin/targets/*/*/*img*
mv openwrt/bin/targets/*/*/*img.gz ./artifact.img.gz mv openwrt/bin/targets/*/*/*squashfs*img.gz ./artifact.img.gz
release_tag="R2S-native-$(date +%Y-%m-%d)-dev" release_tag="R2S-native-$(date +%Y-%m-%d)-dev"
echo "##[set-output name=release_tag;]$release_tag" echo "##[set-output name=release_tag;]$release_tag"
- name: Create Release - name: Create Release