Skip to content

Commit

Permalink
Explicitly define default shell as bash
Browse files Browse the repository at this point in the history
  • Loading branch information
F1248 committed Feb 6, 2025
1 parent 1b46b7d commit 36bee4b
Showing 1 changed file with 8 additions and 12 deletions.
20 changes: 8 additions & 12 deletions .github/workflows/Build-Genius.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@ env:
GH_TOKEN: ${{ github.token }}
NSUnbufferedIO: YES

defaults:
run:
shell: bash

jobs:
Run-CodeQL:
name: Run CodeQL
Expand Down Expand Up @@ -70,9 +74,7 @@ jobs:
languages: swift

- name: Build Genius
run: |
set -o pipefail
xcodebuild build-for-testing -scheme Genius -destination generic/platform=macOS -skipPackagePluginValidation | ./xcbeautify --disable-logging --renderer github-actions
run: xcodebuild build-for-testing -scheme Genius -destination generic/platform=macOS -skipPackagePluginValidation | ./xcbeautify --disable-logging --renderer github-actions

- name: Run CodeQL
uses: github/codeql-action/analyze@main
Expand Down Expand Up @@ -149,9 +151,7 @@ jobs:
echo "xcbeautify $(./xcbeautify --version) installed"
- name: Build Genius
run: |
set -o pipefail
xcodebuild build -scheme Genius -destination generic/platform=macOS -skipPackagePluginValidation | tee xcodebuild.log | ./xcbeautify --disable-logging --renderer github-actions
run: xcodebuild build -scheme Genius -destination generic/platform=macOS -skipPackagePluginValidation | tee xcodebuild.log | ./xcbeautify --disable-logging --renderer github-actions

- name: Run SwiftLint Analyzer Rules
run: ./swiftlint analyze --strict --reporter github-actions-logging --compiler-log-path xcodebuild.log
Expand All @@ -177,9 +177,7 @@ jobs:
echo "xcbeautify $(./xcbeautify --version) installed"
- name: Run Tests
run: |
set -o pipefail
xcodebuild test -scheme Genius -destination platform=macOS,arch=arm64 -skipPackagePluginValidation | ./xcbeautify --disable-logging --renderer github-actions
run: xcodebuild test -scheme Genius -destination platform=macOS,arch=arm64 -skipPackagePluginValidation | ./xcbeautify --disable-logging --renderer github-actions

Build-Genius:
name: Build Genius
Expand All @@ -206,9 +204,7 @@ jobs:
echo "xcbeautify $(./xcbeautify --version) installed"
- name: Build Genius
run: |
set -o pipefail
xcodebuild archive -scheme Genius -destination generic/platform=macOS -archivePath Genius -skipPackagePluginValidation | ./xcbeautify --disable-logging --renderer github-actions
run: xcodebuild archive -scheme Genius -destination generic/platform=macOS -archivePath Genius -skipPackagePluginValidation | ./xcbeautify --disable-logging --renderer github-actions

- name: Zip Genius
run: |
Expand Down

0 comments on commit 36bee4b

Please sign in to comment.