@@ -22,15 +22,35 @@ jobs:
22
22
run : DOCKER_TARGETS=libedgetpu make docker-build
23
23
- name : Release
24
24
run : |
25
- mkdir -p edgetpu_runtime
26
- mv out edgetpu_runtime/libedgetpu
27
- cp ./tflite/public/edgetpu.h edgetpu_runtime/libedgetpu/
28
- cp ./tflite/public/edgetpu_c.h edgetpu_runtime/libedgetpu/
29
- cp ./debian/edgetpu-accelerator.rules edgetpu_runtime/libedgetpu/
30
- cp ./LICENSE edgetpu_runtime/libedgetpu/
31
- cp ./scripts/*.sh edgetpu_runtime/
32
- export ZIP_FILENAME="edgetpu_runtime_$(date '+%Y%m%d')_linux"
33
- zip -r -9 -y "${ZIP_FILENAME}" edgetpu_runtime
25
+ export PACK_DIR=edgetpu_runtime
26
+
27
+ export LIBEDGETPU_NAME=k8
28
+ export TRIPLET=x86_64-linux-gnu
29
+ bash scripts/pack.sh out "${LIBEDGETPU_NAME}" "${TRIPLET}" "${PACK_DIR}"
30
+ export ZIP_FILENAME="edgetpu_runtime_${TRIPLET}_$(date '+%Y%m%d')"
31
+ zip -r -9 -y "${ZIP_FILENAME}.zip" "${PACK_DIR}"
32
+ rm -rf "${PACK_DIR}"
33
+
34
+ export LIBEDGETPU_NAME=armv7a
35
+ export TRIPLET=armv7l-linux-gnueabihf
36
+ bash scripts/pack.sh out "${LIBEDGETPU_NAME}" "${TRIPLET}" "${PACK_DIR}"
37
+ export ZIP_FILENAME="edgetpu_runtime_${TRIPLET}_$(date '+%Y%m%d')"
38
+ zip -r -9 -y "${ZIP_FILENAME}.zip" "${PACK_DIR}"
39
+ rm -rf "${PACK_DIR}"
40
+
41
+ export LIBEDGETPU_NAME=aarch64
42
+ export TRIPLET=aarch64-linux-gnu
43
+ bash scripts/pack.sh out "${LIBEDGETPU_NAME}" "${TRIPLET}" "${PACK_DIR}"
44
+ export ZIP_FILENAME="edgetpu_runtime_${TRIPLET}_$(date '+%Y%m%d')"
45
+ zip -r -9 -y "${ZIP_FILENAME}.zip" "${PACK_DIR}"
46
+ rm -rf "${PACK_DIR}"
47
+
48
+ export LIBEDGETPU_NAME=riscv64
49
+ export TRIPLET=riscv64-linux-gnu
50
+ bash scripts/pack.sh out "${LIBEDGETPU_NAME}" "${TRIPLET}" "${PACK_DIR}"
51
+ export ZIP_FILENAME="edgetpu_runtime_${TRIPLET}_$(date '+%Y%m%d')"
52
+ zip -r -9 -y "${ZIP_FILENAME}.zip" "${PACK_DIR}"
53
+ rm -rf "${PACK_DIR}"
34
54
- uses : softprops/action-gh-release@v1
35
55
with :
36
56
tag_name : grouper
@@ -74,41 +94,21 @@ jobs:
74
94
fi
75
95
- name : Release
76
96
run : |
77
- mkdir -p edgetpu_runtime
78
- mv out edgetpu_runtime/libedgetpu
79
- cp ./tflite/public/edgetpu.h edgetpu_runtime/libedgetpu/
80
- cp ./tflite/public/edgetpu_c.h edgetpu_runtime/libedgetpu/
81
- cp ./LICENSE edgetpu_runtime/libedgetpu/
82
- cp ./scripts/*.sh edgetpu_runtime/
83
- export ZIP_FILENAME="edgetpu_runtime_$(date '+%Y%m%d')_macos"
84
- zip -r -9 -y "${ZIP_FILENAME}" edgetpu_runtime
85
- - uses : softprops/action-gh-release@v1
86
- with :
87
- tag_name : grouper
88
- files : " edgetpu_runtime_*.zip"
97
+ export PACK_DIR=edgetpu_runtime
89
98
90
- build_windows :
91
- runs-on : ubuntu-20.04
92
- steps :
93
- - name : Download official builds
94
- run : |
95
- # too much pain to acutally build this on windows
96
- # I gave up... Just download official builds...
97
- wget https://github.com/google-coral/libedgetpu/releases/download/release-grouper/edgetpu_runtime_20220308.zip
98
- unzip edgetpu_runtime_20220308.zip
99
- rm -f edgetpu_runtime_20220308.zip
100
- mv edgetpu_runtime edgetpu_runtime_20220308
101
- mkdir -p edgetpu_runtime/libedgetpu
102
- cp -a ./edgetpu_runtime_20220308/*.bat edgetpu_runtime
103
- cp -a ./edgetpu_runtime_20220308/third_party edgetpu_runtime/third_party
104
- cp ./edgetpu_runtime_20220308/libedgetpu/edgetpu.h edgetpu_runtime/libedgetpu/
105
- cp ./edgetpu_runtime_20220308/libedgetpu/edgetpu_c.h edgetpu_runtime/libedgetpu/
106
- mkdir -p edgetpu_runtime/libedgetpu/throttled
107
- cp -a ./edgetpu_runtime_20220308/libedgetpu/throttled/x64_windows edgetpu_runtime/libedgetpu/throttled/
108
- mkdir -p edgetpu_runtime/libedgetpu/direct
109
- cp -a ./edgetpu_runtime_20220308/libedgetpu/direct/x64_windows edgetpu_runtime/libedgetpu/direct/
110
- export ZIP_FILENAME="edgetpu_runtime_$(date '+%Y%m%d')_windows"
111
- zip -r -9 -y "${ZIP_FILENAME}" edgetpu_runtime
99
+ export LIBEDGETPU_NAME=darwin_arm64
100
+ export TRIPLET=arm64-apple-darwin
101
+ bash scripts/pack.sh out "${LIBEDGETPU_NAME}" "${TRIPLET}" "${PACK_DIR}"
102
+ export ZIP_FILENAME="edgetpu_runtime_${TRIPLET}_$(date '+%Y%m%d')"
103
+ zip -r -9 -y "${ZIP_FILENAME}.zip" "${PACK_DIR}"
104
+ rm -rf "${PACK_DIR}"
105
+
106
+ export LIBEDGETPU_NAME=darwin_x86_64
107
+ export TRIPLET=x86_64-apple-darwin
108
+ bash scripts/pack.sh out "${LIBEDGETPU_NAME}" "${TRIPLET}" "${PACK_DIR}"
109
+ export ZIP_FILENAME="edgetpu_runtime_${TRIPLET}_$(date '+%Y%m%d')"
110
+ zip -r -9 -y "${ZIP_FILENAME}.zip" "${PACK_DIR}"
111
+ rm -rf "${PACK_DIR}"
112
112
- uses : softprops/action-gh-release@v1
113
113
with :
114
114
tag_name : grouper
0 commit comments