(chore): Remove swift-flags from ci workflow build arg #19
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |