Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
kuruk-mm committed Dec 11, 2024
1 parent 3e7afa4 commit 424d641
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 36 deletions.
30 changes: 0 additions & 30 deletions .github/workflows/ios_builds.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,6 @@
name: 🍏 iOS
on:
workflow_call:
secrets:
IOS_P12_BASE64:
required: true
IOS_P12_PASSWORD:
required: true
IOS_PROFILE_BASE64:
required: true

concurrency:
group: ci-${{ github.actor }}-${{ github.head_ref || github.run_number }}-${{ github.ref }}-ios
Expand Down Expand Up @@ -35,29 +28,6 @@ jobs:
- name: Install dependencies
uses: ./.github/actions/install-deps

- name: Set up code signing certificate
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 "${{ secrets.IOS_P12_BASE64 }}" | base64 --decode > certificate.p12
security import certificate.p12 -k build.keychain -P "${{ secrets.IOS_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
run: |
mkdir -p ~/Library/MobileDevice/Provisioning\ Profiles
echo "${{ secrets.IOS_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
5 changes: 0 additions & 5 deletions .github/workflows/runner.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,6 @@ jobs:
macos-build:
name: 🍏 iOS
uses: ./.github/workflows/ios_builds.yml
secrets:
IOS_P12_BASE64: ${{ secrets.IOS_P12_BASE64 }}
IOS_P12_PASSWORD: ${{ secrets.IOS_P12_PASSWORD }}
IOS_PROFILE_BASE64: ${{ secrets.IOS_PROFILE_BASE64 }}


# # First stage: Only static checks, fast and prevent expensive builds from running.
# static-checks:
Expand Down
2 changes: 1 addition & 1 deletion src/export.rs
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ pub fn export(target: Option<&str>) -> Result<(), anyhow::Error> {
.status()
.expect("Failed to run Godot");

if !std::path::Path::new(output_rel_path.as_str()).exists() {
if !std::path::Path::new(output_rel_path.as_str()).exists() && target != "ios" {
return Err(anyhow::anyhow!(
"Output file was not generated. pre-import godot status: {:?}, project-export godot status: {:?}",
import_assets_status,
Expand Down

0 comments on commit 424d641

Please sign in to comment.