Skip to content

Commit

Permalink
try again to setup GOPATH on GitHub Actions. see actions/setup-go#14
Browse files Browse the repository at this point in the history
  • Loading branch information
siongui committed Jan 18, 2021
1 parent 21b2a7c commit 242aa1c
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,16 @@ jobs:
go: [ '1.15', '1.12' ]
name: Test Pāli Library Package
steps:
- uses: actions/[email protected]
- uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go }}
- name: Set GOPATH
# temporary fix
# see https://github.com/actions/setup-go/issues/14
# see https://github.com/actions/setup-go/issues/12
run: |
echo "##[set-env name=GOPATH;]$(dirname $GITHUB_WORKSPACE)"
echo "##[add-path]$(dirname $GITHUB_WORKSPACE)/bin"
echo "::set-env name=GOPATH::${{ github.workspace }}/go"
echo "::add-path::${{ github.workspace }}/go/bin"
shell: bash
- uses: actions/[email protected]
- uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go }}
- name: Install dependencies
run: |
make clone_pali_data
Expand Down

0 comments on commit 242aa1c

Please sign in to comment.