Skip to content

Commit dfb52d1

Browse files
feat: Updated github build worklow to build odix vendor app
1 parent 12c9fc2 commit dfb52d1

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.github/workflows/build.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,12 @@ jobs:
1515
matrix:
1616
firmware: [Main]
1717
target: [Release]
18+
vendor: [Cypherock, Odix]
1819
uses: ./.github/workflows/containerized-build.yml
1920
with:
2021
firmware: ${{ matrix.firmware }}
2122
target: ${{ matrix.target }}
23+
vendor: ${{ matrix.vendor }}
2224
secrets: inherit
2325
create-release:
2426
needs: build-firmwares
@@ -38,6 +40,7 @@ jobs:
3840
REPOSITORY: ${{ github.repository }}
3941
run: |
4042
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 ' ')
4144
APP_VERSION=$(cat version.txt | grep firmware | cut -f 2-2 -d '=' | awk -F ':' '{ print 0+$1 "." 0+$2 "." $3*2**8 + $4 }')
4245
HW_VERSION=$(cat version.txt | grep hardware | cut -f 2-2 -d '=' | awk -F ':' '{ print 0+$1 "." 0+$2 "." $3*2**8 + $4 }')
4346
echo ${APP_VERSION}:${HW_VERSION}
@@ -49,4 +52,5 @@ jobs:
4952
run: |
5053
content_type=$(file -b --mime-type Main-Release-outputs/Cypherock-Main.bin)
5154
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
5256
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

0 commit comments

Comments
 (0)