Skip to content

Commit

Permalink
cicd: Bump to ubuntu pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
pluveto committed Feb 4, 2023
1 parent c12dda6 commit 4d0c5c9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 13 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ on:
jobs:
build:
name: Build
runs-on: macos-latest
runs-on: ubuntu-latest
steps:
# Fetch depth 0 is required for Changelog generation
- name: Checkout
Expand Down
18 changes: 6 additions & 12 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
PROJECT_NAME=greet-app
BIN_NAMES=greet
GOARCHS=amd64 386 arm arm64
GOARCHS_MAC=amd64 arm64
Expand Down Expand Up @@ -39,22 +40,15 @@ mac: prepare
done

package: all
for BIN_NAME in $(BIN_NAMES); do \
[ -z "$$BIN_NAME" ] && continue; \
for GOARCH in $(GOARCHS); do \
zip -q -r dist/$$BIN_NAME-windows-$$GOARCH.zip dist/windows_$$GOARCH/; \
zip -q -r dist/$$BIN_NAME-linux-$$GOARCH.zip dist/linux_$$GOARCH/; \
done \
for GOARCH in $(GOARCHS); do \
zip -q -r dist/$(PROJECT_NAME)-windows-$$GOARCH.zip dist/windows_$$GOARCH/; \
zip -q -r dist/$(PROJECT_NAME)-linux-$$GOARCH.zip dist/linux_$$GOARCH/; \
done

for BIN_NAME in $(BIN_NAMES); do \
[ -z "$$BIN_NAME" ] && continue; \
for GOARCH in $(GOARCHS_MAC); do \
zip -q -r dist/$$BIN_NAME-mac-$$GOARCH.zip dist/mac_$$GOARCH/; \
done \
for GOARCH in $(GOARCHS_MAC); do \
zip -q -r dist/$(PROJECT_NAME)-mac-$$GOARCH.zip dist/mac_$$GOARCH/; \
done

# copy config to dist/*/
ARCH_RELEASE_DIRS=$$(find dist -type d -name "*_*"); \
for ARCH_RELEASE_DIR in $$ARCH_RELEASE_DIRS; do \
cp conf/config.default.toml $$ARCH_RELEASE_DIR/config.toml; \
Expand Down

0 comments on commit 4d0c5c9

Please sign in to comment.