Skip to content

Commit

Permalink
ci: try fix goku binary
Browse files Browse the repository at this point in the history
  • Loading branch information
yqrashawn committed Feb 20, 2021
1 parent c3e3214 commit a9016fe
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 13 deletions.
24 changes: 11 additions & 13 deletions .github/workflows/build-and-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,11 @@ jobs:
echo 'watchexec -r -w `[[ -z $GOKU_EDN_CONFIG_FILE ]] && echo ~/.config/karabiner.edn || echo $GOKU_EDN_CONFIG_FILE` goku' >> gokuw
chmod +x gokuw
- name: Pack
run: tar czf goku.tar.gz goku gokuw
run: zip -r goku.zip goku.zip goku gokuw # https://github.com/actions/virtual-environments/issues/2619#issuecomment-778827140
- uses: actions/upload-artifact@v2
with:
name: goku-tar
path: goku.tar.gz
name: goku-zip
path: goku.zip

draft-release:
name: Draft Release
Expand All @@ -51,8 +51,7 @@ jobs:
steps:
- uses: actions/download-artifact@v2
with:
name: goku-tar

name: goku-zip
- name: Delete Other Draft Releases
uses: hugo19941994/delete-draft-releases@v0.1.0
env:
Expand All @@ -66,8 +65,8 @@ jobs:
with:
tag_name: ${{ github.sha }}
release_name: Release ${{ github.sha }}
body: |
goku.tar.gz sha256: ${{ hashFiles('./goku.tar.gz') }}
# body: |
# goku.zip sha256: ${{ hashFiles('goku.zip') }}
draft: true
prerelease: false
- name: Upload Release Asset
Expand All @@ -77,8 +76,8 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_draft_release.outputs.upload_url }}
asset_path: ./goku.tar.gz
asset_name: goku.tar.gz
asset_path: ./goku.zip
asset_name: goku.zip
asset_content_type: application/gzip

release:
Expand All @@ -89,7 +88,7 @@ jobs:
steps:
- uses: actions/download-artifact@v2
with:
name: goku-tar
name: goku-zip
- name: Create Release
id: create_release
uses: actions/create-release@v1
Expand All @@ -100,7 +99,6 @@ jobs:
release_name: Release ${{ github.ref }}
body: |
Checkout the changelog at https://github.com/yqrashawn/GokuRakuJoudo/blob/master/CHANGELOG.org
goku.tar.gz sha256: ${{ hashFiles('./goku.tar.gz') }}
draft: false
prerelease: false
- name: Upload Release Asset
Expand All @@ -110,6 +108,6 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./goku.tar.gz
asset_name: goku.tar.gz
asset_path: ./goku.zip
asset_name: goku.zip
asset_content_type: application/gzip
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ compile:
bin:
native-image $(GRAALVM_ARG) -jar $(TARGET_JAR)
mv $(JAR_NAME) goku
chmod +x goku
test-binary:
mkdir -p ~/.config/karabiner
cp ./resources/configurations/edn/yqrashawn.edn ~/.config/karabiner.edn
Expand Down
1 change: 1 addition & 0 deletions Makefile.local.example
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ compile:
bin:
$(GRAALVM) $(GRAALVM_ARG) -jar $(TARGET_JAR)
mv $(JAR_NAME) goku
chmod +x goku
test-binary:
# mkdir -p ~/.config/
# cp ./resources/configurations/yqrashawn.edn ~/.config/karabiner.edn
Expand Down

0 comments on commit a9016fe

Please sign in to comment.