CI: Update homebrew and use the latest go version

This commit is contained in:
Mingshen Sun 2021-09-19 16:56:15 -07:00
parent a133f44564
commit 5057528ad9
2 changed files with 3 additions and 1 deletions

View file

@ -15,6 +15,7 @@ jobs:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- name: Installing packages - name: Installing packages
run: | run: |
brew update
brew install libtool automake cmake carthage swiftformat openssl libssh2 brew install libtool automake cmake carthage swiftformat openssl libssh2
brew install go || brew link --overwrite go brew install go || brew link --overwrite go
brew install swiftlint || brew link --overwrite swiftlint brew install swiftlint || brew link --overwrite swiftlint
@ -45,7 +46,7 @@ jobs:
- name: GopenPGP - name: GopenPGP
if: steps.gopenpgp-cache.outputs.cache-hit != 'true' if: steps.gopenpgp-cache.outputs.cache-hit != 'true'
run: | run: |
export PATH="/usr/local/opt/go@1.14/bin:$PATH" export PATH="/usr/local/opt/go/bin:$PATH"
./scripts/gopenpgp_build.sh ./scripts/gopenpgp_build.sh
- name: Test - name: Test
run: bundle exec fastlane test run: bundle exec fastlane test

View file

@ -9,6 +9,7 @@ jobs:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- name: Installing packages - name: Installing packages
run: | run: |
brew update
brew install libtool automake cmake carthage swiftformat openssl libssh2 brew install libtool automake cmake carthage swiftformat openssl libssh2
brew install swiftlint || brew link --overwrite swiftlint brew install swiftlint || brew link --overwrite swiftlint
brew install go || brew link --overwrite go brew install go || brew link --overwrite go