File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -15,10 +15,12 @@ jobs:
15
15
matrix :
16
16
firmware : [Main]
17
17
target : [Release]
18
+ vendor : [Cypherock, Odix]
18
19
uses : ./.github/workflows/containerized-build.yml
19
20
with :
20
21
firmware : ${{ matrix.firmware }}
21
22
target : ${{ matrix.target }}
23
+ vendor : ${{ matrix.vendor }}
22
24
secrets : inherit
23
25
create-release :
24
26
needs : build-firmwares
38
40
REPOSITORY : ${{ github.repository }}
39
41
run : |
40
42
chkmain=$(sha256sum Main-Release-outputs/Cypherock-Main.bin | cut -f -1 -d ' ')
43
+ chkmain-Odix=$(sha256sum Main-Release-outputs/Cypherock-Main-Odix.bin | cut -f -1 -d ' ')
41
44
APP_VERSION=$(cat version.txt | grep firmware | cut -f 2-2 -d '=' | awk -F ':' '{ print 0+$1 "." 0+$2 "." $3*2**8 + $4 }')
42
45
HW_VERSION=$(cat version.txt | grep hardware | cut -f 2-2 -d '=' | awk -F ':' '{ print 0+$1 "." 0+$2 "." $3*2**8 + $4 }')
43
46
echo ${APP_VERSION}:${HW_VERSION}
49
52
run : |
50
53
content_type=$(file -b --mime-type Main-Release-outputs/Cypherock-Main.bin)
51
54
curl -X POST -H "Content-Type: ${content_type}" -H "Accept: application/vnd.github+json" -H "Authorization: Bearer ${auth_token}" -H "X-GitHub-Api-Version: 2022-11-28" ${upload_url}?name=Cypherock-Main.bin --data-binary @Main-Release-outputs/Cypherock-Main.bin
55
+ curl -X POST -H "Content-Type: ${content_type}" -H "Accept: application/vnd.github+json" -H "Authorization: Bearer ${auth_token}" -H "X-GitHub-Api-Version: 2022-11-28" ${upload_url}?name=Cypherock-Main-Odix.bin --data-binary @Main-Release-outputs/Cypherock-Main-Odix.bin
52
56
curl -X POST -H "Content-Type: ${content_type}" -H "Accept: application/vnd.github+json" -H "Authorization: Bearer ${auth_token}" -H "X-GitHub-Api-Version: 2022-11-28" ${upload_url}?name=version.txt --data-binary @version.txt
You can’t perform that action at this time.
0 commit comments