Fix github builds for deprecated set-env and add-path commands (#333)
actions/setup-go@v2.0.3 seems to cause issues with https://github.blog/changelog/2020-10-01-github-actions-deprecating-set-env-and-add-path-commands/ Change the precise versions to major versions to get updates. Also fix the "Install ninja" action to use $GITHUB_PATH. Change-Id: Ia3ec693e405a2530350736e7856ad758af3fb027
This commit is contained in:
parent
0f1637b19b
commit
16754d14e2
1 changed files with 3 additions and 3 deletions
6
.github/workflows/build.yml
vendored
6
.github/workflows/build.yml
vendored
|
@ -17,13 +17,13 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
|
|
||||||
- name: Set up Go ${{ matrix.go }}
|
- name: Set up Go ${{ matrix.go }}
|
||||||
uses: actions/setup-go@v2.0.3
|
uses: actions/setup-go@v2
|
||||||
with:
|
with:
|
||||||
go-version: ${{ matrix.go }}
|
go-version: ${{ matrix.go }}
|
||||||
id: go
|
id: go
|
||||||
|
|
||||||
- name: Check out code
|
- name: Check out code
|
||||||
uses: actions/checkout@v2.2.0
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
- name: Install ninja
|
- name: Install ninja
|
||||||
run: |
|
run: |
|
||||||
|
@ -31,7 +31,7 @@ jobs:
|
||||||
wget https://github.com/ninja-build/ninja/releases/download/v1.7.2/ninja-linux.zip
|
wget https://github.com/ninja-build/ninja/releases/download/v1.7.2/ninja-linux.zip
|
||||||
unzip ninja-linux.zip
|
unzip ninja-linux.zip
|
||||||
rm ninja-linux.zip
|
rm ninja-linux.zip
|
||||||
echo "::add-path::${GITHUB_WORKSPACE}/ninja-bin"
|
echo "${GITHUB_WORKSPACE}/ninja-bin" >> $GITHUB_PATH
|
||||||
|
|
||||||
- name: Run gofmt
|
- name: Run gofmt
|
||||||
run: ./.gofmt.sh
|
run: ./.gofmt.sh
|
||||||
|
|
Loading…
Reference in a new issue