forked from openwrt/openwrt
-
Notifications
You must be signed in to change notification settings - Fork 1
140 lines (117 loc) · 4.74 KB
/
thingslink_mt7688.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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
# This is a basic workflow to help you get started with Actions
name: ThingsLink MT7688 SOC Firmware Build
# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the master branch
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: ubuntu-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2
# Cache dl folder
- name: Cache
uses: actions/[email protected]
with:
# A list of files, directories, and wildcard patterns to cache and restore
path: dl
# An explicit key for restoring and saving the cache
key: mt7688_build_dl_cache
# echo key_build stuff
- name: Create key_build
env:
key_build: ${{ secrets.KEY_BUILD }}
key_build_pub: ${{ secrets.KEY_BUILD_PUB }}
run: |
echo "${{ env.key_build }}" > key-build
echo "${{ env.key_build_pub }}" > key-build.pub
md5sum key-build
md5sum key-build.pub
# Update feeds & install
- name: Feeds Update
run: ./scripts/feeds update -a
# Update feeds
- name: Feeds Install
run: ./scripts/feeds install -a
# Copy configuration
- name: Configuration Copy C1
run: cp .config_tlink_c1 .config
# Copy configuration
- name: Make C1 Firmware
run: make
# Copy configuration
- name: Configuration Copy C2
run: cp .config_tlink_c2 .config
# Copy configuration
- name: Make C2 Firmware
run: make -j8
# Copy configuration
- name: Configuration Copy C2_16M
run: cp .config_tlink_c2_16m .config
# Copy configuration
- name: Make C2_16M Firmware
run: make -j8
# Copy configuration
- name: Configuration Copy C3
run: cp .config_tlink_c3 .config
# Copy configuration
- name: Make C3 Firmware
run: make -j8
# Copy configuration
- name: Configuration Copy C35
run: cp .config_tlink_c35 .config
# Copy configuration
- name: Make C35 Firmware
run: make -j8
# Copy configuration
- name: Configuration Copy Widora BIT5.1
run: cp .config_widora_32m .config
# Copy configuration
- name: Make Widora BIT5.1 Firmware
run: make -j8
# Remove unless files
- name: Cleanup before release files
run: |
rm -rf bin/packages/mipsel_24kc/base
rm -rf bin/packages/mipsel_24kc/freifunk
rm -rf bin/packages/mipsel_24kc/luci
rm -rf bin/packages/mipsel_24kc/packages
rm -rf bin/packages/mipsel_24kc/routing
rm -rf bin/packages/mipsel_24kc/telephony
rm -f bin/targets/ramips/mt76x8/*initramfs-kernel.bin
rm -f bin/targets/ramips/mt76x8/openwrt-toolchain*
- name: Compress files
run: cd bin && tar czvf ../release.tar.gz * > /dev/null
- name: Upload To Github Release
# You may pin to the exact commit or the version.
# uses: xresloader/upload-to-github-release@92f709ea49b05d55349e9c269754bea46887dc8f
uses: xresloader/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
# The files or file patterns to upload. You can upload multiple files by split them by semicolon. You can use the glob pattern to find the files.
file: "release.tar.gz"
# If you need to overwrite existing files, add overwrite: true to the with.
overwrite: true
# The resultant deployment is a draft Release that only repository collaborators can see. This gives you an opportunity to examine and edit the draft release.
draft: true
# The resultant deployment is a Prerelease. This gives you an opportunity to examine and edit the prerelease.
prerelease: false
# With tags: true, your Releases deployment will trigger if and only if the build is a tagged build.
tags: false
# Only work on these branches(splited by semicolon), set to nothing to accept all branches.
branches: master
# With verbose: true, be verbose.
verbose: false
# Set custom tag name.
tag_name: ThingLink_MT7688-${{ github.run_number }}
# If try to update latest release.
update_latest_release: true