From 687b67a6a29982d1c37346cafd88a7a69990370c Mon Sep 17 00:00:00 2001 From: Mingshen Sun Date: Sun, 22 May 2022 21:57:33 -0700 Subject: [PATCH] Fix GitHub Actions --- .github/workflows/deploying.yml | 6 +++--- .github/workflows/linting.yml | 4 ++-- .github/workflows/testing.yml | 6 +++--- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/deploying.yml b/.github/workflows/deploying.yml index 4134da1..c4c0d36 100644 --- a/.github/workflows/deploying.yml +++ b/.github/workflows/deploying.yml @@ -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 diff --git a/.github/workflows/linting.yml b/.github/workflows/linting.yml index 067ea35..ffa853b 100644 --- a/.github/workflows/linting.yml +++ b/.github/workflows/linting.yml @@ -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 diff --git a/.github/workflows/testing.yml b/.github/workflows/testing.yml index 26f4123..dc518ca 100644 --- a/.github/workflows/testing.yml +++ b/.github/workflows/testing.yml @@ -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