Skip to content

Commit

Permalink
remove platform list option
Browse files Browse the repository at this point in the history
  • Loading branch information
Nate Smith committed Nov 17, 2021
1 parent 27392eb commit e482de8
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 24 deletions.
20 changes: 0 additions & 20 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@ Potentially useful environment variables exposed to your build script:

- `GITHUB_REPOSITORY`: name of your repo in `owner/repo` format
- `GITHUB_TOKEN`: auth token being used to run this workflow
- `GH_EXT_PLATFORMS`: list of platforms to target

## Signing

Expand Down Expand Up @@ -94,25 +93,6 @@ jobs:
gpg_fingerprint: ${{ steps.import_gpg.outputs.fingerprint }}
```

## Customizing target platforms

By default, this action targets the same platforms as `gh` itself:

- darwin-amd64
- linux-386
- linux-amd64
- linux-arm64
- windows-386
- windows-amd64

You can override this list by configuring `platforms` with a new list of comma separated platforms; for example:

```yaml
- uses: cli/gh-extension-precompile@v1
with:
platforms: "plan9-amd64,solaris-amd64,windows-arm64"
```

## Author

nate smith <vilmibm@github.com>
3 changes: 0 additions & 3 deletions action.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
name: "release extension"
description: "Generate a release for a precompiled gh extension"
inputs:
platforms:
description: 'comma separated list of platform identifiers, like: "windows-arm64,plan9-amd64,solaris-amd64"'
default: "darwin-amd64,linux-386,linux-arm,linux-amd64,linux-arm64,windows-386,windows-amd64"
gpg_fingerprint:
description: "gpg fingerprint to use for signing releases. signing is disabled if empty."
build_script_override:
Expand Down
2 changes: 1 addition & 1 deletion build_and_release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
set -e

tag=$(git describe --tags --abbrev=0)
platforms=$(echo $GH_EXT_PLATFORMS | tr "," "\n")
platforms=$(echo "darwin-amd64,linux-386,linux-arm,linux-amd64,linux-arm64,windows-386,windows-amd64" | tr "," "\n")
include="dist/*"

if [ -n "${GH_EXT_BUILD_SCRIPT}" ]; then
Expand Down

0 comments on commit e482de8

Please sign in to comment.