-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
optimize the logic for --edit/generate-config; pronounce: change nati…
…on -> English while only_english is on; add a dummy progress bar to file downloading func; install.sh: change HOME/.local/bin -> /usr/local/bin; formatting; update golang version in github workflow file; test new workflow
- Loading branch information
1 parent
eb5025e
commit 441d704
Showing
36 changed files
with
2,614 additions
and
2,494 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,87 @@ | ||
name: Mannual Trigger Workflow | ||
|
||
on: | ||
workflow_dispatch: | ||
# inputs: | ||
# branch_name: | ||
# description: 'Branch name to checkout' | ||
# required: true | ||
# default: 'dev' | ||
# | ||
jobs: | ||
linux-part: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: write | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: "Build Changelog" | ||
id: build_changelog | ||
uses: mikepenz/release-changelog-builder-action@v5 | ||
env: | ||
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} | ||
with: | ||
mode: "COMMIT" | ||
failOnError: true | ||
|
||
- name: echo changelog | ||
run: echo "${{steps.build_changelog.outputs.changelog}}" | ||
|
||
- name: "Set up Go" | ||
uses: actions/setup-go@v5 | ||
with: | ||
check-latest: true | ||
go-version-file: go.mod | ||
|
||
- name: "Install system dependencies" | ||
run: sudo apt-get install -y gcc-mingw-w64-x86-64 gcc-aarch64-linux-gnu | ||
|
||
- name: "Install dependencies" | ||
run: go mod tidy | ||
|
||
- name: "Build" | ||
run: | | ||
bash scripts/build.sh linux amd64 | ||
bash scripts/build.sh linux arm64 | ||
bash scripts/build.sh windows amd64 | ||
- name: "Save artifacts" | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: linux-and-win | ||
path: build | ||
if-no-files-found: error | ||
retention-days: 15 | ||
overwrite: true | ||
|
||
mac-part: | ||
runs-on: macos-latest | ||
permissions: | ||
contents: write | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: "Set up Go" | ||
uses: actions/setup-go@v5 | ||
with: | ||
check-latest: true | ||
go-version-file: go.mod | ||
|
||
- name: "Install dependencies" | ||
run: go mod tidy | ||
|
||
- name: "Build" | ||
run: | | ||
bash scripts/build.sh darwin arm64 | ||
bash scripts/build.sh darwin amd64 | ||
- name: "Save artifacts" | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: macos | ||
path: build | ||
if-no-files-found: error | ||
retention-days: 15 | ||
overwrite: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.