From e8f5718549634f82c9091b4ebee0da32b1c95654 Mon Sep 17 00:00:00 2001 From: A Porat Date: Fri, 14 Feb 2025 08:18:37 -0500 Subject: [PATCH] Update and rename ci.yml to build.yml --- .github/workflows/build.yml | 33 ++++++++++++++++++++++++++++++++ .github/workflows/ci.yml | 38 ------------------------------------- 2 files changed, 33 insertions(+), 38 deletions(-) create mode 100644 .github/workflows/build.yml delete mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..5e912d6 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,33 @@ +name: Build + +on: + push: + branches: [ "master" ] + pull_request: + branches: [ "master" ] + +jobs: + build: + name: ${{ matrix.platform }} on ${{ matrix.os }} + runs-on: macos-15 + env: + scheme: APProgressToolbar + strategy: + fail-fast: false + matrix: + include: + - platform: iPhone 15 Pro + os: 17.5 + - platform: iPhone 16 Pro + os: 18.2 + steps: + - name: Checkout repository + uses: actions/checkout@v4 + with: + fetch-depth: 1 + + - name: Run Build on ${{ matrix.platform }} (iOS ${{ matrix.os }}) + run: | + xcodebuild build \ + -scheme $scheme \ + -destination 'platform=iOS Simulator,name=${{ matrix.platform }},OS=${{ matrix.os }}' diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml deleted file mode 100644 index 055f6d9..0000000 --- a/.github/workflows/ci.yml +++ /dev/null @@ -1,38 +0,0 @@ -name: Swift - -on: - push: - branches: [ "master" ] - pull_request: - branches: [ "master" ] - -jobs: - build: - name: Swift ${{ matrix.platform }} on ${{ matrix.os }} - runs-on: macos-latest - - strategy: - matrix: - platform: - - platform=iPhone 16 Pro Max - - platform=iPhone 16 Pro - os: - - 17.4 - - 18.2 - - steps: - - # Checkout the repository - - name: Checkout repository - uses: actions/checkout@v4 - - # Install any dependencies - - name: Install Dependencies - run: swift package resolve - - # Run build on ${{ matrix.platform }} with iOS ${{ matrix.os }} - - name: Run Build on ${{ matrix.platform }} (iOS ${{ matrix.os }}) - run: | - xcodebuild build \ - -scheme 'APProgressToolbar' \ - -destination 'platform=iOS Simulator,name=${{ matrix.platform }},OS=${{ matrix.os }}'