Skip to content

Mannual Trigger Workflow #3

Mannual Trigger Workflow

Mannual Trigger Workflow #3

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@v4
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
with:
commitMode: true
- 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: echo changelog
run: echo "${{steps.build_changelog.outputs.changelog}}"
- 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