File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -29,18 +29,19 @@ jobs:
29
29
- name : Build and Package for Darwin
30
30
run : |
31
31
make build
32
- mv ./build/opinitd ./build/opinitd.arm64
32
+ pushd build
33
+ tar -czf "$GITHUB_WORKSPACE"/opinitd_"$VERSION"_Darwin_aarch64.tar.gz ./opinitd
34
+ rm ./opinitd; popd
33
35
GOARCH=amd64 make build
34
- mv ./build/opinitd ./build/opinitd.amd64
35
- lipo -create -output ./build/opinitd ./build/opinitd.arm64 ./build/opinitd.amd64
36
36
pushd build
37
- tar -czf "$GITHUB_WORKSPACE"/opinitd_"$VERSION"_Darwin .tar.gz ./opinitd
38
- rm ./opinitd.arm64 ./opinitd.amd64 ./opinitd ; popd
37
+ tar -czf "$GITHUB_WORKSPACE"/opinitd_"$VERSION"_Darwin_x86_64 .tar.gz ./opinitd
38
+ rm ./opinitd; popd
39
39
40
40
- name : Release
41
41
uses : softprops/action-gh-release@v2
42
42
with :
43
43
files : |
44
- opinitd_${{ env.VERSION }}_Darwin.tar.gz
44
+ opinitd_${{ env.VERSION }}_Darwin_x86_64.tar.gz
45
+ opinitd_${{ env.VERSION }}_Darwin_aarch64.tar.gz
45
46
env :
46
47
VERSION : ${{ env.VERSION }}
You can’t perform that action at this time.
0 commit comments