Skip to content

Commit

Permalink
optimize the logic for --edit/generate-config; pronounce: change nati…
Browse files Browse the repository at this point in the history
…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
Karmenzind committed Oct 19, 2024
1 parent eb5025e commit 441d704
Show file tree
Hide file tree
Showing 36 changed files with 2,614 additions and 2,494 deletions.
87 changes: 87 additions & 0 deletions .github/workflows/manual-trigger.yml
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
22 changes: 11 additions & 11 deletions .github/workflows/release-tags.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
# This workflow will build a golang project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go

name: release-tags

on:
Expand All @@ -19,20 +16,22 @@ jobs:
permissions:
contents: write
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: "Build Changelog"
id: build_changelog
uses: mikepenz/release-changelog-builder-action@v4
uses: mikepenz/release-changelog-builder-action@v5
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
with:
commitMode: true
mode: "COMMIT"
failOnError: true

- name: Set up Go
uses: actions/setup-go@v4
uses: actions/setup-go@v5
with:
go-version: "1.21.x"
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
Expand Down Expand Up @@ -67,11 +66,12 @@ jobs:
permissions:
contents: write
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v4
uses: actions/setup-go@v5
with:
go-version: "1.21.x"
check-latest: true
go-version-file: go.mod

- name: Install dependencies
run: go mod tidy
Expand Down
Loading

0 comments on commit 441d704

Please sign in to comment.