Skip to content

Commit

Permalink
Merge branch 'master' into dependabot/go_modules/golang.org/x/crypto-…
Browse files Browse the repository at this point in the history
…0.1.0
  • Loading branch information
mapkon authored Feb 28, 2023
2 parents 0ee4082 + f4d0a16 commit c96b6a4
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,9 @@ jobs:
- name: Check out code into the Go module directory
uses: actions/checkout@v2

- name: Install dependency required for linux builds
run: sudo apt-get update && sudo apt-get install -y libudev-dev

- name: GoReleaser
uses: goreleaser/goreleaser-action@v2
with:
Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ name: release
on:
push:
tags:
- '*'
- '*'

jobs:
release:
name: release
runs-on: macOS-latest
runs-on: ubuntu-latest
steps:

- name: Set up Go 1.x
Expand All @@ -19,6 +19,9 @@ jobs:
- name: Check out code into the Go module directory
uses: actions/checkout@v2

- name: Install dependency required for linux builds
run: sudo apt-get update && sudo apt-get install -y libudev-dev

- name: GoReleaser
uses: goreleaser/goreleaser-action@v2
with:
Expand Down
8 changes: 8 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,14 @@ builds:
- amd64
- arm64
- arm
overrides:
- goos: linux
goarch: amd64
goamd64: v1
tags:
- hidraw
env:
- CGO_ENABLED=1
archives:
- format: tar.gz
wrap_in_directory: false
Expand Down
22 changes: 22 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -633,6 +633,8 @@ region = us-east-1
```
## Building

### macOS

To build this software on osx clone to the repo to `$GOPATH/src/github.com/versent/saml2aws` and ensure you have `$GOPATH/bin` in your `$PATH`.

```
Expand All @@ -657,6 +659,26 @@ Before raising a PR please run the linter.
make lint-fix
```

### Linux

To build this software on Debian/Ubuntu, you need to install a build dependency:

```
sudo apt install libudev-dev
```

You also need [GoReleaser](https://github.com/goreleaser/goreleaser) installed, and the binary (or a symlink) in `bin/goreleaser`.

```
ln -s $(command -v goreleaser) bin/goreleaser
```

Then you can build:

```
make build
```

## Environment vars

The exec sub command will export the following environment variables.
Expand Down

0 comments on commit c96b6a4

Please sign in to comment.