From 920a8005e3f1bacfaa76dd30a1d62014a52f02d5 Mon Sep 17 00:00:00 2001 From: hegotit <153287866+hegotit@users.noreply.github.com> Date: Tue, 13 Aug 2024 15:35:00 +0800 Subject: [PATCH] feat: Run Go script in CI --- .github/workflows/release.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 1c9dc55f0..9a118de38 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -22,6 +22,22 @@ jobs: - name: Checkout 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 run: | mkdir dist