Skip to content

Commit

Permalink
use env for go version
Browse files Browse the repository at this point in the history
also cleans up env a bit; some unnecessary envvars were leftover from
copy-pasting the action from another project
  • Loading branch information
mibmo committed Jun 11, 2022
1 parent 2fd0dbb commit ec0b7bc
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@ on: push
# types: [created]

env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}
GO_VERSION_SPECIFIER: '^1.17.0'

jobs:
build:
Expand Down Expand Up @@ -36,7 +35,7 @@ jobs:
- name: Setup go
uses: actions/setup-go@v3
with:
go-version: '^1.17.0'
go-version: ${{ env.GO_VERSION_SPECIFIER }}
- name: Build dependencies
run: go run build.go -verbose build-all
- name: Upload tor binary
Expand All @@ -62,6 +61,6 @@ jobs:
- name: Setup go
uses: actions/setup-go@v3
with:
go-version: '^1.17.0'
go-version: ${{ env.GO_VERSION_SPECIFIER }}
- name: Run tests
run: go test .

0 comments on commit ec0b7bc

Please sign in to comment.