-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into dependabot/go_modules/github.com/ollama/olla…
…ma-0.3.6
- Loading branch information
Showing
13 changed files
with
1,417 additions
and
21 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,25 @@ | ||
name: goreleaser-build-test | ||
|
||
on: | ||
push: | ||
pull_request: | ||
|
||
jobs: | ||
goreleaser: # Add this new job for GoReleaser | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
- name: Set up Go | ||
uses: actions/setup-go@v5 | ||
with: | ||
go-version: 1.22 | ||
- name: Run GoReleaser | ||
uses: goreleaser/goreleaser-action@v6 | ||
with: | ||
version: v2.1.0 | ||
args: build --clean --snapshot | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
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,30 @@ | ||
name: goreleaser | ||
|
||
on: | ||
push: | ||
tags: | ||
- 'v*' # Add this line to trigger the workflow on tag pushes that match 'v*' | ||
|
||
permissions: | ||
id-token: write | ||
contents: read | ||
|
||
jobs: | ||
goreleaser: # Add this new job for GoReleaser | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
- name: Set up Go | ||
uses: actions/setup-go@v5 | ||
with: | ||
go-version: 1.22 | ||
- name: Run GoReleaser | ||
uses: goreleaser/goreleaser-action@v6 | ||
with: | ||
version: v2.1.0 | ||
args: release --clean | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
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,70 @@ | ||
name: static check | ||
on: pull_request | ||
|
||
jobs: | ||
imports: | ||
name: Imports | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@master | ||
- name: check | ||
uses: danhunsaker/[email protected] | ||
with: | ||
run: imports | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
errcheck: | ||
name: Errcheck | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@master | ||
- name: check | ||
uses: danhunsaker/[email protected] | ||
with: | ||
run: errcheck | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
lint: | ||
name: Lint | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@master | ||
- name: check | ||
uses: danhunsaker/[email protected] | ||
with: | ||
run: lint | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
shadow: | ||
name: Shadow | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@master | ||
- name: check | ||
uses: danhunsaker/[email protected] | ||
with: | ||
run: shadow | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
staticcheck: | ||
name: StaticCheck | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@master | ||
- name: check | ||
uses: danhunsaker/[email protected] | ||
with: | ||
run: staticcheck | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
sec: | ||
name: Sec | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@master | ||
- name: check | ||
uses: danhunsaker/[email protected] | ||
with: | ||
run: sec | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
flags: "-exclude=G104" |
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 |
---|---|---|
|
@@ -69,3 +69,6 @@ docs/api-reference.md | |
transcription.txt | ||
snippets.txt | ||
.env copy | ||
|
||
# Build result of goreleaser | ||
dist/ |
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,38 @@ | ||
# Make sure to check the documentation at http://goreleaser.com | ||
version: 2 | ||
builds: | ||
- main: ./cmd/masa-node/main.go | ||
ldflags: | ||
- -w -s | ||
- -X github.com/masa-finance/masa-oracle/internal.Version={{.Tag}} | ||
- -X github.com/masa-finance/masa-oracle/internal.Commit={{.Commit}} | ||
env: | ||
- CGO_ENABLED=0 | ||
goos: | ||
- linux | ||
- windows | ||
- darwin | ||
- freebsd | ||
goarch: | ||
- amd64 | ||
- arm | ||
- arm64 | ||
source: | ||
enabled: true | ||
name_template: '{{ .ProjectName }}-{{ .Tag }}-source' | ||
archives: | ||
# Default template uses underscores instead of - | ||
- name_template: >- | ||
{{ .ProjectName }}-{{ .Tag }}- | ||
{{- if eq .Os "freebsd" }}FreeBSD | ||
{{- else }}{{- title .Os }}{{end}}- | ||
{{- if eq .Arch "amd64" }}x86_64 | ||
{{- else if eq .Arch "386" }}i386 | ||
{{- else }}{{ .Arch }}{{end}} | ||
{{- if .Arm }}v{{ .Arm }}{{ end }} | ||
checksum: | ||
name_template: '{{ .ProjectName }}-{{ .Tag }}-checksums.txt' | ||
snapshot: | ||
name_template: "{{ .Tag }}-next" | ||
changelog: | ||
use: github-native |
Oops, something went wrong.