commit c9bc15f439cb6d8dcd74dc0b6425e15d114b6950
parent 9c2ec2374267b2315493b4ead6554c59ae7aa951
Author: Sean Enck <sean@ttypty.com>
Date: Sun, 3 Sep 2023 17:49:34 -0400
ci update/install target
Diffstat:
2 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
@@ -20,7 +20,7 @@ jobs:
- name: "deps"
run: apk add go make git bash
- name: "build"
- run: make .runci
+ run: make check VERSION=${GITHUB_SHA}
ubuntu-build:
runs-on: ubuntu-latest
steps:
@@ -28,10 +28,10 @@ jobs:
- name: "deps"
run: sudo apt-get install -y golang
- name: "build"
- run: make .runci
+ run: make check VERSION=${GITHUB_SHA}
macos-build:
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
- name: "build"
- run: make .runci
+ run: make check VERSION=${GITHUB_SHA}
diff --git a/Makefile b/Makefile
@@ -2,6 +2,7 @@ BUILD := bin/
TARGET := $(BUILD)lb
VERSION ?= $(shell git log -n 1 --format=%h)
VARS := LOCKBOX_ENV=none
+DESTDIR := /usr/local/bin/
all: $(TARGET)
@@ -26,6 +27,5 @@ clean:
@find internal/ -type f -wholename "*testdata*" -delete
@find internal/ -type d -empty -delete
-.runci:
- rm -rf .git
- make build check VERSION=$(GITHUB_SHA)
+install:
+ install -m755 $(TARGET) $(DESTDIR)lb