From b233de92ed607621e827a10366a616cd0d07223f Mon Sep 17 00:00:00 2001 From: Jacob Heider Date: Mon, 2 Oct 2023 00:14:49 -0400 Subject: [PATCH] fix(act) --- projects/github.com/nektos/act/package.yml | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/projects/github.com/nektos/act/package.yml b/projects/github.com/nektos/act/package.yml index f29e4e77..1c4f344e 100644 --- a/projects/github.com/nektos/act/package.yml +++ b/projects/github.com/nektos/act/package.yml @@ -3,17 +3,22 @@ distributable: strip-components: 1 versions: - github: nektos/act/tags # reads github tags from github + github: nektos/act/tags strip: /^v/ build: dependencies: go.dev: '*' - script: | - make build VERSION={{version}} - mkdir -p {{prefix}}/bin - cp dist/local/act {{prefix}}/bin/act - chmod 755 {{prefix}}/bin/act + script: + - run: | + sed -i.bak 's/-ldflags "/-ldflags "-buildmode=pie /' Makefile + rm Makefile.bak + if: linux + - make build VERSION={{version}} + - run: | + cp $SRCROOT/dist/local/act . + chmod 755 {{prefix}}/bin/act + working-directory: ${{prefix}}/bin provides: - bin/act @@ -22,7 +27,7 @@ test: dependencies: git-scm.org: '*' script: | - git clone https://github.com/teaxyz/setup.git + git clone https://github.com/pkgxdev/setup.git cd setup git checkout v0.15.0 act push --list