Skip to content

Commit

Permalink
chore(deps): increase golang version
Browse files Browse the repository at this point in the history
  • Loading branch information
akiletour committed Oct 13, 2024
1 parent 6491949 commit 213785c
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 33 deletions.
65 changes: 34 additions & 31 deletions .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,12 @@ name: Build
on:
push:
branches:
- master
- master

tags:
- '*'
- "*"

workflow_dispatch:

pull_request:

Expand All @@ -15,36 +17,37 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
arch: [amd64,arm64]
arch: [amd64, arm64]
env:
GOOS: linux
GOARCH: ${{ matrix.arch }}
steps:
- uses: actions/checkout@v2
- name: Install Go
uses: actions/setup-go@v2
with:
go-version: 1.16
- name: build
run: make
- name: test
# @fixme: return test for non-amd64 arch when github will add support for other architectures (arm64)
if: ${{ matrix.arch == 'amd64' }}
run: make test
- name: prepare artifact
if: startsWith(github.ref, 'refs/tags/')
run: make package
- name: Get the version
if: startsWith(github.ref, 'refs/tags/')
id: get_version
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//}
- uses: xresloader/upload-to-github-release@v1
if: startsWith(github.ref, 'refs/tags/')
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
file: gotpl-*.tar.gz
overwrite: false
tags: true
draft: false
tag_name: ${{ steps.get_version.outputs.VERSION }}
- uses: actions/checkout@v4
- name: Install Go
uses: actions/setup-go@v5
with:
go-version: 1.23
check-latest: true
- name: build
run: make
- name: test
# @fixme: return test for non-amd64 arch when github will add support for other architectures (arm64)
if: ${{ matrix.arch == 'amd64' }}
run: make test
- name: prepare artifact
if: startsWith(github.ref, 'refs/tags/')
run: make package
- name: Get the version
if: startsWith(github.ref, 'refs/tags/')
id: get_version
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//}
- uses: xresloader/upload-to-github-release@v1
if: startsWith(github.ref, 'refs/tags/')
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
file: gotpl-*.tar.gz
overwrite: false
tags: true
draft: false
tag_name: ${{ steps.get_version.outputs.VERSION }}
4 changes: 2 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module github.com/wodby/gotpl
module github.com/inrage/gotpl

go 1.15
go 1.23

0 comments on commit 213785c

Please sign in to comment.