Fix GitHub Actions

This commit is contained in:
Mingshen Sun 2022-05-22 21:57:33 -07:00
parent 90f1f54a21
commit 687b67a6a2
3 changed files with 8 additions and 8 deletions

View file

@ -7,7 +7,7 @@ on:
jobs:
build:
runs-on: macos-11
runs-on: macos-12
strategy:
matrix:
channel: ['beta', 'release']
@ -39,11 +39,11 @@ jobs:
bundle config path vendor/bundle
bundle install --jobs 4 --retry 3
- name: Carthage
if: steps.carthage-cache.outputs.cache-hit != 'true'
if: ${{ steps.carthage-cache.outputs.cache-hit == false }}
run: |
carthage bootstrap --no-use-binaries --cache-builds --use-xcframeworks
- name: GopenPGP
if: steps.gopenpgp-cache.outputs.cache-hit != 'true'
if: ${{ steps.gopenpgp-cache.outputs.cache-hit == false }}
run: |
export PATH="/usr/local/opt/go/bin:$PATH"
./scripts/gopenpgp_build.sh

View file

@ -4,7 +4,7 @@ on: pull_request
jobs:
swiftformat:
runs-on: macos-latest
runs-on: macos-12
steps:
- uses: actions/checkout@v2
- name: Installing packages
@ -20,7 +20,7 @@ jobs:
swiftformat --lint .
swiftlint:
runs-on: macos-latest
runs-on: macos-12
steps:
- uses: actions/checkout@v2
- name: Installing packages

View file

@ -4,7 +4,7 @@ on: [push, pull_request]
jobs:
testing:
runs-on: macos-11
runs-on: macos-12
steps:
- uses: actions/checkout@v2
- name: Installing packages
@ -33,11 +33,11 @@ jobs:
bundle config path vendor/bundle
bundle install --jobs 4 --retry 3
- name: Carthage
if: steps.carthage-cache.outputs.cache-hit != 'true'
if: ${{ steps.carthage-cache.outputs.cache-hit == false }}
run: |
carthage bootstrap --no-use-binaries --cache-builds --use-xcframeworks
- name: GopenPGP
if: steps.gopenpgp-cache.outputs.cache-hit != 'true'
if: ${{ steps.gopenpgp-cache.outputs.cache-hit == false }}
run: ./scripts/gopenpgp_build.sh
- name: Testing
run: bundle exec fastlane test