Skip to content

Commit

Permalink
Merge pull request #18 from merschformann/merschformann/clean-workflows
Browse files Browse the repository at this point in the history
Cleanup workflows
  • Loading branch information
merschformann authored Jan 11, 2025
2 parents 586c957 + 799b3b9 commit ea0701f
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 49 deletions.
38 changes: 18 additions & 20 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,27 +2,25 @@ name: build
on: [push]

jobs:
build:
name: build
runs-on: ubuntu-latest
steps:
- name: set up go
uses: actions/setup-go@v2
with:
go-version: 1.19.3
id: go
build:
name: build
runs-on: ubuntu-latest
steps:
- name: git clone
uses: actions/checkout@v4

- name: git clone
uses: actions/checkout@v2
- name: set up go
uses: actions/setup-go@v5
with:
go-version: 1.23.4

- name: go build
run: go build -v
- name: go build
run: go build -v

- name: go test
run: go test -v -cover -coverpkg=./... -race ./...
- name: go test
run: go test -v -cover -coverpkg=./... -race ./...

- name: golangci-lint
uses: golangci/golangci-lint-action@v3
with:
version: v1.49.0
working-directory: ${{ env.working-directory }}
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
with:
version: v1.63.4
58 changes: 29 additions & 29 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,35 +1,35 @@
name: publish

on:
release:
types: [created]
release:
types: [created]

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
deploy:
runs-on: ubuntu-latest
steps:
- name: git clone
uses: actions/checkout@v4

- name: set up go
uses: actions/setup-go@v2
with:
go-version: 1.19.3
id: go

- name: compile
run: |
echo "go version:"
go version
echo "go env:"
go env
bash material/scripts/buildall.sh
- name: Upload binaries to release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: build/gotz*
file_glob: true
tag: ${{ github.ref }}
overwrite: true
body: "gotz binaries"
- name: set up go
uses: actions/setup-go@v5
with:
go-version: 1.23.4

- name: compile
run: |
echo "go version:"
go version
echo "go env:"
go env
bash material/scripts/buildall.sh
- name: Upload binaries to release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: build/gotz*
file_glob: true
tag: ${{ github.ref }}
overwrite: true
body: "gotz binaries"

0 comments on commit ea0701f

Please sign in to comment.