Skip to content

Commit

Permalink
Fix ci
Browse files Browse the repository at this point in the history
  • Loading branch information
zw963 committed Oct 27, 2024
1 parent 6a07171 commit d6762b1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/alpine_x86_64_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,13 @@ jobs:
run: crystal spec --order=random --error-on-warnings
- name: package information
run: |
echo "BINARY_NAME=bin/procodile" >> $GITHUB_ENV
echo "BINARY_NAME=bin/$(cat shard.yml |grep targets -A1|tail -n1 |sed 's#[ :]##g')" >> $GITHUB_ENV
echo "PKG_ARCH=x86_64" >> $GITHUB_ENV
echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
echo "PLATFORM=unknown-linux-musl.tar.gz" >> $GITHUB_ENV
echo "BUILD_ARGS=--static --link-flags=\"-s -Wl,-z,relro,-z,now\"" >> $GITHUB_ENV
- name: set asset name
run: |
echo "ASSERT_NAME=${{env.BINARY_NAME}}-${{env.RELEASE_VERSION}}-${{env.PKG_ARCH}}-${{env.PLATFORM}}" >> $GITHUB_ENV
echo "ASSERT_NAME=${{env.BINARY_NAME}}-${{github.ref_name}}-${{env.PKG_ARCH}}-${{env.PLATFORM}}" >> $GITHUB_ENV
- name: release binary
id: release
run: |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,13 @@ jobs:
run: crystal spec --order=random --error-on-warnings
- name: package information
run: |
echo "BINARY_NAME=bin/procodile" >> $GITHUB_ENV
echo "BINARY_NAME=bin/$(cat shard.yml |grep targets -A1|tail -n1 |sed 's#[ :]##g')" >> $GITHUB_ENV
echo "PKG_ARCH=x86_64" >> $GITHUB_ENV
echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
echo "PLATFORM=apple-darwin.tar.gz" >> $GITHUB_ENV
echo "BUILD_ARGS=" >> $GITHUB_ENV
- name: set asset name
run: |
echo "ASSERT_NAME=${{env.BINARY_NAME}}-${{env.RELEASE_VERSION}}-${{env.PKG_ARCH}}-${{env.PLATFORM}}" >> $GITHUB_ENV
echo "ASSERT_NAME=${{env.BINARY_NAME}}-${{github.ref_name}}-${{env.PKG_ARCH}}-${{env.PLATFORM}}" >> $GITHUB_ENV
- name: release binary
id: release
run: |
Expand Down

0 comments on commit d6762b1

Please sign in to comment.