feat: Run Go script in CI

This commit is contained in:
hegotit 2024-08-13 15:35:00 +08:00
parent 0460c173aa
commit a3669f8b0b

View File

@ -22,6 +22,22 @@ jobs:
- name: Checkout - name: Checkout
uses: actions/checkout@v4 uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.22'
- name: Install dependencies
run: |
cd others/script
go mod tidy
- name: Build and Run
run: |
cd others/script
echo "Running script with custom Rime path..."
go run main.go --rime_path "${{ github.workspace }}" --auto_confirm
- name: Pack dicts - name: Pack dicts
run: | run: |
mkdir dist mkdir dist
@ -58,7 +74,7 @@ jobs:
- `LICENSE.txt`:开源协议 - `LICENSE.txt`:开源协议
tag_name: nightly tag_name: nightly
name: "nightly build" name: "Nightly Build"
make_latest: true make_latest: true
files: | files: |
dist/* dist/*