Skip to content

Commit

Permalink
Fixes to release workflow
Browse files Browse the repository at this point in the history
Signed-off-by: Aravinda Vishwanathapura <[email protected]>
  • Loading branch information
aravindavk committed Nov 29, 2021
1 parent 2c12af5 commit 37b1b03
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/on-release-tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,9 @@ jobs:
- uses: actions/checkout@v2
- name: Build the kadalu binary
run: |
cd mgr && shards build --production --release --static --no-debug --stats --time
- name: Rename the binary
cd mgr
shards build --production --release --static --no-debug --stats --time
- name: Rename kadalu to kadalu-amd64
run: |
mv mgr/bin/kadalu mgr/bin/kadalu-amd64
- name: Upload kadalu-amd64 to the release
Expand All @@ -44,8 +45,8 @@ jobs:
- name: Build
working-directory: .
run: |
docker run -i -v `pwd`:/workspace -w /workspace --rm multiarch/alpine:aarch64-latest-stable /bin/sh -c "echo '@edge http://dl-cdn.alpinelinux.org/alpine/edge/community' >>/etc/apk/repositories; apk add --update --no-cache --force-overwrite crystal@edge gc-dev gcc gmp-dev libatomic_ops libevent-static musl-dev pcre-dev libxml2-dev openssl-dev openssl-libs-static tzdata yaml-dev zlib-static make git llvm10-dev llvm10-static g++ shards@edge yaml-static; cd mgr && shards build --production --release --static --no-debug --stats --time"
- name: Rename
docker run -i -v `pwd`:/workspace -w /workspace --rm multiarch/alpine:aarch64-latest-stable /bin/sh -c "echo '@edge http://dl-cdn.alpinelinux.org/alpine/edge/community' >>/etc/apk/repositories; apk add --update --no-cache --force-overwrite crystal@edge gc-dev gcc gmp-dev libatomic_ops libevent-static musl-dev pcre-dev libxml2-dev openssl-dev openssl-libs-static tzdata yaml-dev zlib-static make git llvm10-dev llvm10-static g++ shards@edge yaml-static; cd mgr; shards build --production --release --static --no-debug --stats --time"
- name: Rename kadalu to kadalu-amd64
run: |
sudo mv mgr/bin/kadalu mgr/bin/kadalu-arm64
- name: Upload kadalu-arm64 to the release
Expand All @@ -58,6 +59,7 @@ jobs:
file_glob: true

upload_service_files:
runs-on: ubuntu-latest
steps:
- name: Upload kadalu-mgr.service and kadalu-agent.service to the release
uses: svenstaro/upload-release-action@v2
Expand Down

0 comments on commit 37b1b03

Please sign in to comment.