RobertoMachorro/Moped

View on GitHub
.github/workflows/build.yaml

Summary

Maintainability
Test Coverage
name: build

on:
  push:
    branches: [ master ]
  pull_request:
    branches: [ master ]

  workflow_dispatch:

jobs:
  build:
    name: Build with scheme
    runs-on: macos-latest

    steps:
      - name: Checkout
        uses: actions/checkout@v2
      - name: Build
        run: |
          rm -f Moped.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved
          xcodebuild -scheme Moped -derivedDataPath ./xcbuild build
          mv xcbuild/Build/Products/Debug/Moped.app .
          zip -r -9 Moped.zip Moped.app
      - name: Upload a Build Artifact
        uses: actions/upload-artifact@v3.1.0
        with:
          name: Moped.zip
          path: Moped.zip
          # Duration after which artifact will expire in days. 0 means using default retention.
          # Minimum 1 day. Maximum 90 days unless changed from the repository settings page.
          retention-days: 0