Skip to content

(chore): Remove swift-flags from ci workflow build arg #19

(chore): Remove swift-flags from ci workflow build arg

(chore): Remove swift-flags from ci workflow build arg #19

Workflow file for this run

name: Build & Test ScribbleLab
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build:
runs-on: macos-latest
strategy:
matrix:
os: [macOS, iOS]
configuration: [Alpha, Beta, Debug, Release]
steps:
- name: Check out the repository
uses: actions/checkout@v4
- name: Select Xcode version
run: sudo xcode-select --switch /Applications/Xcode_16.app/Contents/Developer
- name: Build project using Matrix build system
run: |
if [ "${{ matrix.os }}" == "iOS" ]; then
xcodebuild -scheme ScribbleLab -configuration ${{ matrix.configuration }} \
CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO CODE_SIGN_ENTITLEMENTS="" \
build | xcpretty | tee build.log
else
xcodebuild -scheme ScribbleLab -configuration ${{ matrix.configuration }} \
CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO CODE_SIGN_ENTITLEMENTS="" \
build | xcpretty | tee build.log
fi
echo "AUTOGENERATED BUILD.LOG VIA TEE:"
cat build.log
if [ $? -ne 0 ]; then
echo "Build failed with non-zero exit code - Review the logs above"
exit 1
fi
- name: Run Tests
run: |
if [ "${{ matrix.os }}" == "iOS" ]; then
xcodebuild test -scheme ScribbleLab -configuration ${{ matrix.configuration }} \
CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO CODE_SIGN_ENTITLEMENTS="" \
| xcpretty | tee test.log
else
xcodebuild test -scheme ScribbleLab -configuration ${{ matrix.configuration }} \
CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO CODE_SIGN_ENTITLEMENTS="" \
| xcpretty | tee test.log
fi
echo "AUTOGENERATED TEST.LOG VIA TEE:"
cat test.log