Skip to content

Commit

Permalink
Added dependency installations to release.ym
Browse files Browse the repository at this point in the history
  • Loading branch information
PatMis16 committed Apr 21, 2021
1 parent 7b9f671 commit 3ff2b13
Showing 1 changed file with 56 additions and 8 deletions.
64 changes: 56 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,16 @@ jobs:
steps:
- uses: actions/checkout@master
# install dependencies
- name: Install all Go dependencies
- name: Install gopkg.in/yaml.v2
run: go get gopkg.in/yaml.v2
- name: Install github.com/patrickmn/go-cache
run: go get github.com/patrickmn/go-cache
- name: Install github.com/prometheus/client_golang/prometheus
run: go get github.com/prometheus/client_golang/prometheus
- name: Install github.com/prometheus/client_golang/prometheus/promauto
run: go get github.com/prometheus/client_golang/prometheus/promauto
- name: Install github.com/prometheus/client_golang/prometheus/promhttp
run: go get github.com/prometheus/client_golang/prometheus/promhttp
- name: compile and release
uses: ngs/[email protected]
env:
Expand All @@ -49,14 +57,22 @@ jobs:
GOOS: linux
EXTRA_FILES: "README.md config.yml"
release-linux-arm:
name: release linux/386
name: release linux/arm
runs-on: ubuntu-latest
outputs:
upload_url: ${{ steps.create_release.outputs.upload_url }}
steps:
- uses: actions/checkout@master
- name: Install all Go dependencies
- name: Install gopkg.in/yaml.v2
run: go get gopkg.in/yaml.v2
- name: Install github.com/patrickmn/go-cache
run: go get github.com/patrickmn/go-cache
- name: Install github.com/prometheus/client_golang/prometheus
run: go get github.com/prometheus/client_golang/prometheus
- name: Install github.com/prometheus/client_golang/prometheus/promauto
run: go get github.com/prometheus/client_golang/prometheus/promauto
- name: Install github.com/prometheus/client_golang/prometheus/promhttp
run: go get github.com/prometheus/client_golang/prometheus/promhttp
- name: compile and release
uses: ngs/[email protected]
env:
Expand All @@ -65,14 +81,22 @@ jobs:
GOOS: linux
EXTRA_FILES: "README.md config.yml"
release-linux-arm64:
name: release linux/amd64
name: release linux/arm64
runs-on: ubuntu-latest
outputs:
upload_url: ${{ steps.create_release.outputs.upload_url }}
steps:
- uses: actions/checkout@master
- name: Install all Go dependencies
- name: Install gopkg.in/yaml.v2
run: go get gopkg.in/yaml.v2
- name: Install github.com/patrickmn/go-cache
run: go get github.com/patrickmn/go-cache
- name: Install github.com/prometheus/client_golang/prometheus
run: go get github.com/prometheus/client_golang/prometheus
- name: Install github.com/prometheus/client_golang/prometheus/promauto
run: go get github.com/prometheus/client_golang/prometheus/promauto
- name: Install github.com/prometheus/client_golang/prometheus/promhttp
run: go get github.com/prometheus/client_golang/prometheus/promhttp
- name: compile and release
uses: ngs/[email protected]
env:
Expand All @@ -87,8 +111,16 @@ jobs:
upload_url: ${{ steps.create_release.outputs.upload_url }}
steps:
- uses: actions/checkout@master
- name: Install all Go dependencies
- name: Install gopkg.in/yaml.v2
run: go get gopkg.in/yaml.v2
- name: Install github.com/patrickmn/go-cache
run: go get github.com/patrickmn/go-cache
- name: Install github.com/prometheus/client_golang/prometheus
run: go get github.com/prometheus/client_golang/prometheus
- name: Install github.com/prometheus/client_golang/prometheus/promauto
run: go get github.com/prometheus/client_golang/prometheus/promauto
- name: Install github.com/prometheus/client_golang/prometheus/promhttp
run: go get github.com/prometheus/client_golang/prometheus/promhttp
- name: compile and release
uses: ngs/[email protected]
env:
Expand All @@ -103,8 +135,16 @@ jobs:
upload_url: ${{ steps.create_release.outputs.upload_url }}
steps:
- uses: actions/checkout@master
- name: Install all Go dependencies
- name: Install gopkg.in/yaml.v2
run: go get gopkg.in/yaml.v2
- name: Install github.com/patrickmn/go-cache
run: go get github.com/patrickmn/go-cache
- name: Install github.com/prometheus/client_golang/prometheus
run: go get github.com/prometheus/client_golang/prometheus
- name: Install github.com/prometheus/client_golang/prometheus/promauto
run: go get github.com/prometheus/client_golang/prometheus/promauto
- name: Install github.com/prometheus/client_golang/prometheus/promhttp
run: go get github.com/prometheus/client_golang/prometheus/promhttp
- name: compile and release
uses: ngs/[email protected]
env:
Expand All @@ -119,8 +159,16 @@ jobs:
upload_url: ${{ steps.create_release.outputs.upload_url }}
steps:
- uses: actions/checkout@master
- name: Install all Go dependencies
- name: Install gopkg.in/yaml.v2
run: go get gopkg.in/yaml.v2
- name: Install github.com/patrickmn/go-cache
run: go get github.com/patrickmn/go-cache
- name: Install github.com/prometheus/client_golang/prometheus
run: go get github.com/prometheus/client_golang/prometheus
- name: Install github.com/prometheus/client_golang/prometheus/promauto
run: go get github.com/prometheus/client_golang/prometheus/promauto
- name: Install github.com/prometheus/client_golang/prometheus/promhttp
run: go get github.com/prometheus/client_golang/prometheus/promhttp
- name: compile and release
uses: ngs/[email protected]
env:
Expand Down

0 comments on commit 3ff2b13

Please sign in to comment.