Skip to content

Commit

Permalink
Merge branch 'release/0.11.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
tomodian committed Aug 20, 2022
2 parents 45622a2 + cd48b4f commit d6717a9
Show file tree
Hide file tree
Showing 5 changed files with 51 additions and 17 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,16 @@

## [Unreleased]

## [0.11.0] - 2022-08-20

### Added

- Added build test

### Fixed

- Replaced broken actions/release with gh cli

## [0.8.0] - 2021-04-27

### Added
Expand Down
23 changes: 7 additions & 16 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,32 +15,23 @@ jobs:
# https://github.com/actions/setup-go/issues/27#issuecomment-549102955
- name: Build
run: |
go get github.com/mitchellh/gox
export PATH=${PATH}:`go env GOPATH`/bin
make install
make build
- name: Create release
id: create_release
uses: actions/create-release@v1.0.0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: ${{ github.ref }}
draft: false
prerelease: false

- name: Upload assets
- name: Create a release and upload assets
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
set -x
tag_name="${GITHUB_REF##*/}"
gh release create $tag_name --generate-notes
assets=()
for asset in ./build/*.zip ; do
assets+=("-a" "$asset")
assets+=(" " "$asset")
done
tag_name="${GITHUB_REF##*/}"
hub release edit "${assets[@]}" -m "$tag_name" "$tag_name"
gh release upload $tag_name "${assets[@]}"
21 changes: 21 additions & 0 deletions .github/workflows/test.build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Build test

on:
pull_request:
branches:
- develop
- master

jobs:
build:
runs-on: ubuntu-18.04

steps:
- name: Checkout
uses: actions/checkout@v1

- name: Build
run: |
export PATH=${PATH}:`go env GOPATH`/bin
make install
make build
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,16 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [0.11.0] - 2022-08-20

### Added

- Added build configuration for darwin/arm64

### Changed

- Switched to go install

## [0.10.0] - 2022-08-20

### Added
Expand Down
4 changes: 3 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
BUILD := ./build

install:
go get github.com/mitchellh/gox
go install github.com/mitchellh/gox@latest

clean:
mkdir -p $(BUILD)
Expand All @@ -19,6 +19,7 @@ build: clean
@echo "Building.."
gox -output="$(BUILD)/{{.Dir}}_{{.OS}}_{{.Arch}}" \
-osarch="darwin/amd64" \
-osarch="darwin/arm64" \
-osarch="linux/arm" \
-osarch="linux/amd64" \
-osarch="windows/amd64"
Expand All @@ -29,6 +30,7 @@ build: clean
build-darwin: clean
@echo "Building.."
gox -output="$(BUILD)/{{.Dir}}_{{.OS}}_{{.Arch}}" \
-osarch="darwin/amd64" \
-osarch="darwin/arm64"
@echo "Bundling.."
$(MAKE) bundle-nix
Expand Down

0 comments on commit d6717a9

Please sign in to comment.