Skip to content

Commit 4e173a4

Browse files
committed
ci: try fix goku binary
1 parent c3e3214 commit 4e173a4

File tree

3 files changed

+20
-1
lines changed

3 files changed

+20
-1
lines changed

.github/workflows/build-and-release.yaml

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,15 @@ jobs:
3737
echo 'watchexec -r -w `[[ -z $GOKU_EDN_CONFIG_FILE ]] && echo ~/.config/karabiner.edn || echo $GOKU_EDN_CONFIG_FILE` goku' >> gokuw
3838
chmod +x gokuw
3939
- name: Pack
40-
run: tar czf goku.tar.gz goku gokuw
40+
run: sleep 5 && tar czf goku.tar.gz goku gokuw # https://github.com/actions/virtual-environments/issues/2619#issuecomment-778827140
4141
- uses: actions/upload-artifact@v2
4242
with:
4343
name: goku-tar
4444
path: goku.tar.gz
45+
- uses: actions/upload-artifact@v2
46+
with:
47+
name: goku-exec
48+
path: ./goku
4549

4650
draft-release:
4751
name: Draft Release
@@ -52,6 +56,9 @@ jobs:
5256
- uses: actions/download-artifact@v2
5357
with:
5458
name: goku-tar
59+
- uses: actions/download-artifact@v2
60+
with:
61+
name: goku-exec
5562

5663
- name: Delete Other Draft Releases
5764
uses: hugo19941994/delete-draft-releases@v0.1.0
@@ -80,6 +87,16 @@ jobs:
8087
asset_path: ./goku.tar.gz
8188
asset_name: goku.tar.gz
8289
asset_content_type: application/gzip
90+
- name: Upload Release Asset
91+
id: upload-release-asset2
92+
uses: actions/upload-release-asset@v1
93+
env:
94+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
95+
with:
96+
upload_url: ${{ steps.create_draft_release.outputs.upload_url }}
97+
asset_path: ./goku
98+
asset_name: goku
99+
asset_content_type: application/bin
83100

84101
release:
85102
name: Release

Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ compile:
1212
bin:
1313
native-image $(GRAALVM_ARG) -jar $(TARGET_JAR)
1414
mv $(JAR_NAME) goku
15+
chmod +x goku
1516
test-binary:
1617
mkdir -p ~/.config/karabiner
1718
cp ./resources/configurations/edn/yqrashawn.edn ~/.config/karabiner.edn

Makefile.local.example

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ compile:
1919
bin:
2020
$(GRAALVM) $(GRAALVM_ARG) -jar $(TARGET_JAR)
2121
mv $(JAR_NAME) goku
22+
chmod +x goku
2223
test-binary:
2324
# mkdir -p ~/.config/
2425
# cp ./resources/configurations/yqrashawn.edn ~/.config/karabiner.edn

0 commit comments

Comments
 (0)