-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove unnecessary installs. Rename qasectl -> qli
- Loading branch information
Showing
2 changed files
with
8 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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] | ||
|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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/* |