Skip to content

Commit

Permalink
v1.5.X optimized builds
Browse files Browse the repository at this point in the history
  • Loading branch information
glitch committed Dec 4, 2023
1 parent 4a34fdb commit 40ac28c
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ jobs:
run: sudo apt-get update -y

- name: Make all release artifacts
run: make with-docker
run: make gh-actions

- name: Set output
id: tags
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
run: sudo apt-get update -y

- name: Make all release artifacts
run: make with-docker
run: make gh-actions

- name: Get the version
id: get_version
Expand Down
10 changes: 10 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ all: purge-output prepare compress-tool windows linux macos out-full out-linux o

with-docker : purge-output prepare windows linux macos out-devbox out-linux out-macos out-win sha256sums

gh-actions : purge-output prepare linux out-gh-actions out-linux

version:
touch release/$(TAG)_$(VERSION)-$(MOMENT)
echo $(TAG) > bin/_version
Expand Down Expand Up @@ -69,6 +71,10 @@ compress-docker:
docker run --rm -w $(shell pwd) -v $(shell pwd):$(shell pwd) xfhg/upx:latest -9 bin/interceptm
docker run --rm -w $(shell pwd) -v $(shell pwd):$(shell pwd) xfhg/upx:latest -9 bin/intercept.exe

compress-docker-gh-actions:
docker run --rm -w $(shell pwd) -v $(shell pwd):$(shell pwd) xfhg/upx:latest -9 bin/interceptl


# docker run --rm -w $(shell pwd) -v $(shell pwd):$(shell pwd) xfhg/upx:latest --best --lzma bin/intercept.exe

out-full: purge version release-raw compress-bin release
Expand All @@ -85,6 +91,10 @@ out-devbox: purge version release-raw compress-docker release
cp .ignore release/.ignore
cd release/ ; zip -9 -T -x "*.DS_Store*" -r ../output/x-intercept.zip *

out-gh-actions: purge version compress-docker-gh-actions
cp bin/interceptl release/interceptl
cp .ignore release/.ignore

preserve-raw:
cp -f bin/interceptl bin/intercept-linux_amd64
cp -f bin/interceptm bin/intercept-darwin_amd64
Expand Down

0 comments on commit 40ac28c

Please sign in to comment.