Skip to content

Commit 90d4be5

Browse files
committed
Workflow fix + some patches
1 parent 481d5b3 commit 90d4be5

5 files changed

Lines changed: 1359 additions & 27 deletions

File tree

.github/workflows/NanoPi-r2s-21.02.yml

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -70,25 +70,25 @@ jobs:
7070
df -h
7171
- name: Get OpenWrt source 21.02
7272
run: |
73-
./steps/01_clone_openwrt_2102.sh
73+
/bin/bash ./steps/01_clone_openwrt_2102.sh
7474
- name: Get ImmortalWrt source 21.02
7575
run: |
76-
./steps/01_clone_immortal_2102.sh
76+
/bin/bash ./steps/01_clone_immortalwrt_2102.sh
7777
- name: Make working copy of OpenWrt source
7878
run: |
79-
./steps/02_prepare_openwrt_folder_2102.sh
79+
/bin/bash ./steps/02_prepare_openwrt_folder_2102.sh
8080
- name: Patch OpenWrt source R2S / 21.02
8181
run: |
82-
./steps/r2s/03_patch_openwrt_2102.sh
82+
/bin/bash ./steps/r2s/03_patch_openwrt_2102.sh
8383
- name: Prepare package
8484
run: |
85-
./steps/04-prepare_package.sh
85+
/bin/bash ./steps/04-prepare_package.sh
8686
- name: Add ACL
8787
run: |
88-
./steps/05-create_luci_acl.sh
88+
/bin/bash ./steps/05-create_luci_acl.sh
8989
- name: Load ao Config
9090
run: |
91-
./steps/06-create_config_from_seed.sh
91+
/bin/bash ./steps/06-create_config_from_seed.sh
9292
9393
- name: Download package
9494
id: package
@@ -124,6 +124,12 @@ jobs:
124124
cat build/openwrt/.config
125125
echo '================================================================'
126126
cd build/openwrt && make -j1 V=s
127+
- name: Set env
128+
run: |
129+
echo "TZ=Europe/Paris" >>$GITHUB_ENV
130+
echo "Build_Date=$(date +%Y-%m-%d %H:%M)" >> $GITHUB_ENV
131+
echo "RELTAG=v$(date +'%Y%m%d.%H%M')" >> $GITHUB_ENV
132+
127133
- name: Organize files
128134
id: organize
129135
run: |
@@ -135,12 +141,12 @@ jobs:
135141
gzip -d *.gz && exit 0
136142
gzip --best *.img
137143
ls -Ahl
138-
sha256sum openwrt*r2s* | tee NanoPI-R2S-AO-$(date +%Y%m%d)-21.02.sha256sum
139-
sha256sum openwrt*r4s* | tee NanoPI-R4S-AO-$(date +%Y%m%d)-21.02.sha256sum
140-
zip NanoPI-R2S-AO-$(date +%Y%m%d)-21.02-ext4.zip *r2s*ext4*
141-
zip NanoPI-R2S-AO-$(date +%Y%m%d)-21.02-sfs.zip *r2s*squashfs*
142-
zip NanoPI-R4S-AO-$(date +%Y%m%d)-21.02-ext4.zip *r4s*ext4*
143-
zip NanoPI-R4S-AO-$(date +%Y%m%d)-21.02-sfs.zip *r4s*squashfs*
144+
sha256sum openwrt*r2s* | tee NanoPI-R2S-AO-$RELTAG-21.02.sha256sum
145+
sha256sum openwrt*r4s* | tee NanoPI-R4S-AO-$RELTAG-21.02.sha256sum
146+
zip NanoPI-R2S-AO-$RELTAG-21.02-ext4.zip *r2s*ext4*
147+
zip NanoPI-R2S-AO-$RELTAG-21.02-sfs.zip *r2s*squashfs*
148+
zip NanoPI-R4S-AO-$RELTAG-21.02-ext4.zip *r4s*ext4*
149+
zip NanoPI-R4S-AO-$RELTAG-21.02-sfs.zip *r4s*squashfs*
144150
cp ../build/openwrt/*.config ./
145151
ls -Ahl
146152
- name: Upload artifact
@@ -149,21 +155,15 @@ jobs:
149155
with:
150156
name: OpenWRT_21.02
151157
path: ./artifact/
152-
153-
- name: Set env
154-
run: |
155-
echo "TZ=Europe/Paris" >>$GITHUB_ENV
156-
echo "Build_Date=$(date +%Y-%m-%d %H:%M)" >> $GITHUB_ENV
157-
echo "RELTAG=v$(date +'%Y%m%d.%H%M%S')" >> $GITHUB_ENV
158158

159159
- name: Create release
160160
id: create_release
161-
uses: ncipollo/release-action@v1.8.0
161+
uses: ncipollo/release-action@v1.8.4
162162
if: env.UPLOAD_RELEASE == 'true' && !cancelled()
163163
with:
164-
name: OpenWrt 21.02 ${{ env.Build_Date }}
164+
name: OpenWrt 21.02
165165
allowUpdates: true
166-
tag: ${{ env.RELTAG }}
166+
tag: r2s-21.02
167167
commit: main
168168
replacesArtifacts: true
169169
token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)