Skip to content

Commit

Permalink
add code signing
Browse files Browse the repository at this point in the history
  • Loading branch information
kuruk-mm committed Dec 11, 2024
1 parent 690e1dd commit 145873d
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/ios_builds.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,35 @@ jobs:
- name: Install dependencies
uses: ./.github/actions/install-deps

# Set up code signing certificate
- name: Set up code signing certificate
env:
P12_BASE64: ${{ secrets.IOS_P12_BASE64 }}
P12_PASSWORD: ${{ secrets.IOS_P12_PASSWORD }}
run: |
# Create a temporary keychain
security create-keychain -p "" build.keychain
security set-keychain-settings -lut 21600 build.keychain
security unlock-keychain -p "" build.keychain
security list-keychains -s build.keychain
# Decode and import the .p12 certificate
echo "$P12_BASE64" | base64 --decode > certificate.p12
security import certificate.p12 -k build.keychain -P "$P12_PASSWORD" -T /usr/bin/codesign
# Set the keychain as default
security default-keychain -s build.keychain
security set-key-partition-list -S apple-tool:,apple: -s -k "" build.keychain
# Set up provisioning profile
- name: Set up provisioning profile
env:
PROFILE_BASE64: ${{ secrets.PROFILE_BASE64 }}
run: |
mkdir -p ~/Library/MobileDevice/Provisioning\ Profiles
echo "$PROFILE_BASE64" | base64 --decode > profile.mobileprovision
mv profile.mobileprovision ~/Library/MobileDevice/Provisioning\ Profiles/
# Build section
- name: Cargo install
run: cargo run -- install --platforms ios
Expand Down

0 comments on commit 145873d

Please sign in to comment.