Skip to content

chore(deps): bump softprops/action-gh-release from 1 to 3 (#26) #61

chore(deps): bump softprops/action-gh-release from 1 to 3 (#26)

chore(deps): bump softprops/action-gh-release from 1 to 3 (#26) #61

Workflow file for this run

# Build and test GitMac
name: Build
permissions:
contents: read
on:
push:
branches: ["master"]
pull_request:
branches: ["master"]
jobs:
build:
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- name: Select Xcode
run: sudo xcode-select -s /Applications/Xcode.app/Contents/Developer
- name: Setup GhosttyKit Framework
run: |
chmod +x scripts/setup-ghostty.sh
./scripts/setup-ghostty.sh
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Build
run: |
xcodebuild -project GitMac.xcodeproj \
-scheme GitMac \
-destination 'platform=macOS,arch=arm64' \
-skipPackagePluginValidation \
-skipMacroValidation \
-configuration Debug \
SWIFT_STRICT_CONCURRENCY=minimal \
clean build 2>&1 | tee /tmp/build.log || true
# Check for Swift compilation errors (ignore SwiftLint and linker)
if grep -q "BUILD SUCCEEDED" /tmp/build.log; then
echo "[OK] Build succeeded"
elif grep "error:" /tmp/build.log | grep -v "SwiftLint\|linker command\|codesign" | grep -q ".swift:"; then
echo "[X] Swift compilation errors found:"
grep "error:" /tmp/build.log | grep -v "SwiftLint\|linker command\|codesign" | grep ".swift:"
exit 1
else
echo "[!] Build had non-Swift errors (linker/codesign) - treating as success"
fi
- name: Test
run: |
xcodebuild test \
-project GitMac.xcodeproj \
-scheme GitMac \
-destination 'platform=macOS,arch=arm64' \
-skip-testing:GitMacUITests \
-skipPackagePluginValidation \
-skipMacroValidation \
-configuration Debug \
SWIFT_STRICT_CONCURRENCY=minimal \
2>&1 | tee /tmp/test.log || true
if grep -q "TEST SUCCEEDED" /tmp/test.log; then
echo "[OK] Tests passed"
elif grep -q "TEST FAILED" /tmp/test.log; then
echo "[X] Tests failed:"
grep "FAILED\|error:" /tmp/test.log | grep -v "SwiftLint\|linker command\|codesign" | head -20
exit 1
else
echo "[!] Test run had non-test errors - treating as success"
fi