Skip to content

Commit

Permalink
temp comment out arm linux
Browse files Browse the repository at this point in the history
  • Loading branch information
xEricL committed Jun 10, 2024
1 parent 87563ae commit 457a256
Showing 1 changed file with 39 additions and 32 deletions.
71 changes: 39 additions & 32 deletions .github/workflows/go-build-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -414,43 +414,50 @@ jobs:
--build ~/debbuild/alpine-client
"build/out/alpine-client_${VERSION}-${RELEASE}_amd64.deb"
- name: Swap AMD64 binary for ARM64
run: |
# Remove amd64 binaries
rm -f ~/rpmbuild/SOURCES/pinnacle-darwin-amd64
rm -f ~/debbuild/alpine-client/usr/bin/alpine-client
# Edit arch & binary name in spec/control files
sed -i -e 's/linux-amd64/linux-arm64/g' -e 's/x86_64/aarch64/g' ~/rpmbuild/SPECS/pinnacle.spec
sed -i 's/amd64/arm64/g' ~/debbuild/alpine-client/DEBIAN/control
# Copy arm64 binaries
cp bin/pinnacle-linux-arm64 ~/rpmbuild/SOURCES/
cp bin/pinnacle-linux-arm64 ~/debbuild/alpine-client/usr/bin/alpine-client
# Make binaries executable
chmod +x ~/rpmbuild/SOURCES/pinnacle-linux-arm64
chmod +x ~/debbuild/alpine-client/usr/bin/alpine-client
- name: Package ARM64 RPM
run: >-
rpmbuild -bb
~/rpmbuild/SPECS/pinnacle.spec
--define "_rpmdir build/out"
--target=aarch64
- name: Package ARM64 DEB
run: >-
dpkg-deb -Zgzip
--build ~/debbuild/alpine-client
"build/out/alpine-client_${VERSION}-${RELEASE}_arm64.deb"
# - name: Swap AMD64 binary for ARM64
# run: |
# # Remove amd64 binaries
# rm -f ~/rpmbuild/SOURCES/pinnacle-darwin-amd64
# rm -f ~/debbuild/alpine-client/usr/bin/alpine-client
#
# # Edit arch & binary name in spec/control files
# sed -i -e 's/linux-amd64/linux-arm64/g' -e 's/x86_64/aarch64/g' ~/rpmbuild/SPECS/pinnacle.spec
# sed -i 's/amd64/arm64/g' ~/debbuild/alpine-client/DEBIAN/control
#
# # Copy arm64 binaries
# cp bin/pinnacle-linux-arm64 ~/rpmbuild/SOURCES/
# cp bin/pinnacle-linux-arm64 ~/debbuild/alpine-client/usr/bin/alpine-client
#
# # Make binaries executable
# chmod +x ~/rpmbuild/SOURCES/pinnacle-linux-arm64
# chmod +x ~/debbuild/alpine-client/usr/bin/alpine-client
#
# - name: Package ARM64 RPM
# run: >-
# rpmbuild -bb
# ~/rpmbuild/SPECS/pinnacle.spec
# --define "_rpmdir build/out"
# --target=aarch64
#
# - name: Package ARM64 DEB
# run: >-
# dpkg-deb -Zgzip
# --build ~/debbuild/alpine-client
# "build/out/alpine-client_${VERSION}-${RELEASE}_arm64.deb"

- name: Tidy artifact
run: |
cp -r build/out/x86_64/* build/out/
rm -rf build/out/x86_64
cp -r build/out/aarch64/* build/out/
rm -rf build/out/aarch64
# cp -r build/out/aarch64/* build/out/
# rm -rf build/out/aarch64
# - name: Tidy artifact
# run: |
# cp -r build/out/x86_64/* build/out/
# rm -rf build/out/x86_64
# cp -r build/out/aarch64/* build/out/
# rm -rf build/out/aarch64

- name: Upload artifact
uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3
Expand Down

0 comments on commit 457a256

Please sign in to comment.