Skip to content

Commit

Permalink
chore(ci): auto discover git ref of librime artifacts
Browse files Browse the repository at this point in the history
  • Loading branch information
ksqsf committed Sep 9, 2024
1 parent a30a6e9 commit fdf0ed6
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/commit-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ jobs:

- name: Configure build environment
run: |
brew install jq
echo git_ref_name="$(git describe --always)" >> $GITHUB_ENV
- name: Build Squirrel
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/release-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ jobs:
- name: Lint
run: swiftlint

- name: Configure build environment
run: brew install jq

- name: Build Squirrel
run: ./action-build.sh archive

Expand Down
2 changes: 1 addition & 1 deletion action-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
set -e

rime_version=latest
rime_git_hash=24f0f7b
rime_git_hash=`curl https://api.github.com/repos/rime/librime/releases/tags/latest | jq '.assets | .[] | select(.name | contains("macOS")) | .name' | jq -s '.[0]' -r | cut -d- -f2`
sparkle_version=2.6.2

rime_archive="rime-${rime_git_hash}-macOS-universal.tar.bz2"
Expand Down

0 comments on commit fdf0ed6

Please sign in to comment.