Skip to content

Commit

Permalink
ci: add working build job
Browse files Browse the repository at this point in the history
fix #10
  • Loading branch information
angristan committed Aug 2, 2021
1 parent 05a2f09 commit e415eec
Showing 1 changed file with 22 additions and 17 deletions.
39 changes: 22 additions & 17 deletions .github/workflows/push.yml
Expand Up @@ -3,22 +3,27 @@ name: Push workflow
on: [push]

jobs:
# build:
# name: build
# runs-on: macos-latest
# strategy:
# matrix:
# destination:
# - 'platform=iOS Simulator,OS=14.5,name=iPhone 12'
# - 'platform=iOS Simulator,OS=14.5,name=iPhone 12 Mini'
# steps:
# - name: Checkout
# uses: actions/checkout@master
# - name: Build
# run: |
# xcodebuild clean build -project first.fm.xcodeproj -scheme first.fm -destination "${destination}" CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO ONLY_ACTIVE_ARCH=NO
# env:
# destination: ${{ matrix.destination }}
build:
name: build
runs-on: macos-latest
strategy:
matrix:
destination:
- 'platform=iOS Simulator,OS=14.4,name=iPhone 12'
steps:
- name: Checkout
uses: actions/checkout@master
- run: 'echo "SPOTIFY_API_TOKEN = $SPOTIFY_API_TOKEN\r\nLASTFM_API_KEY = $LASTFM_API_KEY\r\nLASTFM_API_SHARED_SECRET = $LASTFM_API_SHARED_SECRET" > ./firstfm/Config/Secrets.xcconfig'
shell: bash
env:
SPOTIFY_API_TOKEN: ${{secrets.SPOTIFY_API_TOKEN}}
LASTFM_API_KEY: ${{secrets.LASTFM_API_KEY}}
LASTFM_API_SHARED_SECRET: ${{secrets.LASTFM_API_SHARED_SECRET}}
- name: Build
run: |
xcodebuild clean build -project firstfm.xcodeproj -scheme firstfm -destination "${destination}" CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO ONLY_ACTIVE_ARCH=NO
env:
destination: ${{ matrix.destination }}

lint:
runs-on: ubuntu-latest
Expand All @@ -40,7 +45,7 @@ jobs:
release:
name: Publish new release
needs:
# - build
- build
- lint
- commitlint
if: github.ref == 'refs/heads/main' && github.event_name != 'pull_request'
Expand Down

0 comments on commit e415eec

Please sign in to comment.