-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
79 additions
and
14 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,23 @@ | ||
name: Go | ||
on: | ||
push: | ||
branches: | ||
- master | ||
- main | ||
jobs: | ||
build: | ||
name: Build | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/setup-go@v5 | ||
with: | ||
go-version: ^1.23 | ||
check-latest: true | ||
cache-dependency-path: | | ||
**/go.sum | ||
**/go.mod | ||
- uses: actions/checkout@v4 | ||
- name: test and build | ||
run: | | ||
make |
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,41 @@ | ||
name: Release | ||
on: | ||
push: | ||
tags: | ||
- "v*.*.*" | ||
jobs: | ||
build: | ||
name: Build | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/setup-go@v5 | ||
with: | ||
go-version: ^1.23 | ||
check-latest: true | ||
cache-dependency-path: | | ||
**/go.sum | ||
**/go.mod | ||
- uses: actions/checkout@v4 | ||
- name: build matrix | ||
run: | | ||
make build GO='GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go' | ||
tar czvf contatto-linux-amd64.tar.gz ./bin/ ./etc/config/contatto.toml | ||
make clean | ||
make build GO='GOOS=linux GOARCH=arm CGO_ENABLED=0 go' | ||
tar czvf contatto-linux-arm.tar.gz ./bin/ ./etc/config/contatto.toml | ||
make clean | ||
make build GO='GOOS=linux GOARCH=arm64 CGO_ENABLED=0 go' | ||
tar czvf contatto-linux-arm64.tar.gz ./bin/ ./etc/config/contatto.toml | ||
make clean | ||
make build GO='GOOS=linux GOARCH=mips CGO_ENABLED=0 go' | ||
tar czvf contatto-linux-mips.tar.gz ./bin/ ./etc/config/contatto.toml | ||
make clean | ||
make build GO='GOOS=linux GOARCH=mipsle CGO_ENABLED=0 go' | ||
tar czvf contatto-linux-mipsle.tar.gz ./bin/ ./etc/config/contatto.toml | ||
make clean | ||
- uses: ncipollo/release-action@v1 | ||
with: | ||
artifacts: "*.tar.gz" | ||
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 |
---|---|---|
|
@@ -31,3 +31,4 @@ go.work.sum | |
**.env | ||
/bin | ||
/config.toml | ||
/contatto.toml |
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
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package conf | ||
package etc | ||
|
||
import ( | ||
"bytes" | ||
|
File renamed without changes.
File renamed without changes.
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
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