Skip to content

Commit

Permalink
add: xcconfigs via secrets
Browse files Browse the repository at this point in the history
  • Loading branch information
mflknr committed Jun 14, 2024
1 parent 6326516 commit 991b4c9
Showing 1 changed file with 93 additions and 0 deletions.
93 changes: 93 additions & 0 deletions .github/checks.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
name: checks

on:
push:
branches: [ "main", "develop" ]
pull_request:
branches: [ "main", "develop" ]

env:
CI: true

jobs:
build:
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- uses: jdx/mise-action@v2
with:
version: 2024.6.3
install: true
cache: true
- uses: mobiledevops/secret-to-file-action@v1
with:
base64-encoded-secret: ${{ secrets.DEBUG_XCCONFIG }}
filename: "Debug.xcconfig"
is-executable: true
working-directory: "./configurations/.xcconfig"
- uses: mobiledevops/secret-to-file-action@v1
with:
base64-encoded-secret: ${{ secrets.RELEASE_XCCONFIG }}
filename: "Release.xcconfig"
is-executable: true
working-directory: "./configurations/.xcconfig"
- uses: mobiledevops/secret-to-file-action@v1
with:
base64-encoded-secret: ${{ secrets.SHARED_XCCONFIG }}
filename: "Shared.xcconfig"
is-executable: true
working-directory: "./configurations/.xcconfig"
- run: make prepare
- run: make build

test:
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- uses: jdx/mise-action@v2
with:
version: 2024.6.3
install: true
cache: true
- uses: mobiledevops/secret-to-file-action@v1
with:
base64-encoded-secret: ${{ secrets.DEBUG_XCCONFIG }}
filename: "Debug.xcconfig"
is-executable: true
working-directory: "./configurations/.xcconfig"
- uses: mobiledevops/secret-to-file-action@v1
with:
base64-encoded-secret: ${{ secrets.RELEASE_XCCONFIG }}
filename: "Release.xcconfig"
is-executable: true
working-directory: "./configurations/.xcconfig"
- uses: mobiledevops/secret-to-file-action@v1
with:
base64-encoded-secret: ${{ secrets.SHARED_XCCONFIG }}
filename: "Shared.xcconfig"
is-executable: true
working-directory: "./configurations/.xcconfig"
- run: make prepare
# - run: make test # disbaled until signing is correctly setted up

lint-swiftlint:
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- uses: jdx/mise-action@v2
with:
version: 2024.6.3
install: true
cache: true
- run: make ci-lint-swiftlint

lint-swiftformat:
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- uses: jdx/mise-action@v2
with:
version: 2024.6.3
install: true
cache: true
- run: make ci-lint-swiftformat

0 comments on commit 991b4c9

Please sign in to comment.