Skip to content

Commit

Permalink
build fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
mmchougule committed Sep 17, 2023
1 parent e81adb8 commit 11bfe14
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,17 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-20.04, arm-mac, amd-mac]
os: [ubuntu-20.04]
include:
- os: ubuntu-20.04
output_file: vimana-linux-amd64.zip
make_command: build-linux
- os: arm-mac
output_file: vimana-macos-amd64.zip
make_command: build
- os: amd-mac
output_file: vimana-macos-amd64.zip
make_command: build
# - os: arm-mac # , arm-mac, amd-mac
# output_file: vimana-macos-arm64.zip
# make_command: build
# - os: amd-mac
# output_file: vimana-macos-amd64.zip
# make_command: build

steps:
- name: Checkout code
Expand All @@ -39,7 +39,7 @@ jobs:
run: make test

- name: Build Vimana
run: make ${{ matrix.make_command }}
run: make ${{ matrix.make_command }} && make build

- name: Package Vimana into ZIP
run: zip ${{ matrix.output_file }} ${{ matrix.make_command == 'build' && 'vimana' || 'vimana-linux-amd64' }}
Expand Down
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ LDFLAGS=-ldflags "-X main.Version=${VERSION} -X main.BuildTime=${BUILD_TIME}"
# Default command when simply typing `make`
all: build

# Compiles the binary
# Compiles the binary for mac
build:
@echo "Building..."
go build ${LDFLAGS} -o ${BINARY_NAME} -v ./...
@echo "Building for Mac..."
GOOS=darwin GOARCH=amd64 go build ${LDFLAGS} -o ${BINARY_NAME} -v ./...
mkdir -p ${HOME}/.vimana
cp config.toml ${HOME}/.vimana/config.toml

Expand Down

0 comments on commit 11bfe14

Please sign in to comment.