Skip to content

Commit

Permalink
Remove unnecessary installs. Rename qasectl -> qli
Browse files Browse the repository at this point in the history
  • Loading branch information
kirugan committed Sep 17, 2023
1 parent 625697e commit e288d6b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 12 deletions.
18 changes: 7 additions & 11 deletions .github/workflows/build-binaries.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,7 @@ jobs:

- name: Install dependencies (Ubuntu)
if: runner.os == 'Linux'
run: sudo apt-get update -qq && sudo apt-get install -y upx-ucl build-essential cargo git golang

- name: Install dependencies (macOS)
if: runner.os == 'macOS'
run: brew install upx cargo-c
run: sudo apt-get update -qq && sudo apt-get install -y git

- name: Set up Go
uses: actions/[email protected]
Expand All @@ -40,21 +36,21 @@ jobs:
- name: Build binary
run: |
GOARCH=${{ matrix.architecture }} make build
mv build/qasectl qasectl-${{ env.TAG }}-${{ runner.os }}-${{ matrix.architecture }}
mv build/qli qli-${{ env.TAG }}-${{ runner.os }}-${{ matrix.architecture }}
- name: Generate Checksum
id: checksum
run: |
if [[ "${{ runner.os }}" == "macOS" ]]; then
shasum -a 256 qasectl-${{ env.TAG }}-${{ runner.os }}-${{ matrix.architecture }} > qasectl-${{ env.TAG }}-${{ runner.os }}-${{ matrix.architecture }}.sha256
shasum -a 256 qli-${{ env.TAG }}-${{ runner.os }}-${{ matrix.architecture }} > qli-${{ env.TAG }}-${{ runner.os }}-${{ matrix.architecture }}.sha256
else
sha256sum qasectl-${{ env.TAG }}-${{ runner.os }}-${{ matrix.architecture }} > qasectl-${{ env.TAG }}-${{ runner.os }}-${{ matrix.architecture }}.sha256
sha256sum qli-${{ env.TAG }}-${{ runner.os }}-${{ matrix.architecture }} > qli-${{ env.TAG }}-${{ runner.os }}-${{ matrix.architecture }}.sha256
fi
- name: Upload Artifact
uses: actions/upload-artifact@v3
with:
name: qasectl-${{ env.TAG }}-${{ runner.os }}-${{ matrix.architecture }}
name: qli-${{ env.TAG }}-${{ runner.os }}-${{ matrix.architecture }}
path: |
qasectl-${{ env.TAG }}-${{ runner.os }}-${{ matrix.architecture }}
qasectl-${{ env.TAG }}-${{ runner.os }}-${{ matrix.architecture }}.sha256
qli-${{ env.TAG }}-${{ runner.os }}-${{ matrix.architecture }}
qli-${{ env.TAG }}-${{ runner.os }}-${{ matrix.architecture }}.sha256
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
.PHONY: build
build:
@mkdir -p build
@go build -a -ldflags="-X github.com/qase-tms/qasectl/internal.Version=$(shell git describe --tags)" -o build/qasectl ./main.go
@go build -a -ldflags="-X github.com/qase-tms/qasectl/internal.Version=$(shell git describe --tags)" -o build/qli ./main.go

clean:
@rm -rf ./build/*

0 comments on commit e288d6b

Please sign in to comment.