mirror of
https://github.com/selfxyz/self.git
synced 2026-02-19 02:24:25 -05:00
Merge pull request #1676 from selfxyz/release/staging-2026-01-30
Release to Staging - 2026-01-30
This commit is contained in:
63
.github/workflows/circuits-build.yml
vendored
63
.github/workflows/circuits-build.yml
vendored
@@ -32,8 +32,12 @@ concurrency:
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ["128ram"]
|
||||
timeout-minutes: 720 # 12 hours
|
||||
runs-on:
|
||||
- "32ram"
|
||||
- "self-hosted"
|
||||
- "selfxyz-org"
|
||||
# GitHub-hosted runners cap at 360 min (6h); 720 applies if using self-hosted
|
||||
timeout-minutes: 720
|
||||
permissions:
|
||||
contents: read
|
||||
actions: read
|
||||
@@ -165,7 +169,7 @@ jobs:
|
||||
path: output/
|
||||
run_id: ${{ inputs.run-id }}
|
||||
|
||||
- name: Build cpp circuits
|
||||
- name: Prepare build scripts
|
||||
run: |
|
||||
chmod +x circuits/scripts/build/build_cpp.sh
|
||||
chmod +x circuits/scripts/build/build_single_circuit.sh
|
||||
@@ -173,47 +177,58 @@ jobs:
|
||||
# Validate inputs - only one should be provided
|
||||
if [[ "${{ github.event_name }}" == "workflow_dispatch" ]]; then
|
||||
if [[ "${{ inputs.circuit-type }}" != "" && "${{ inputs.circuit-name }}" != "" ]]; then
|
||||
echo " Error: Cannot provide both circuit-type and circuit-name. Use only one."
|
||||
echo "Error: Cannot provide both circuit-type and circuit-name. Use only one."
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
|
||||
# Check what type of build to perform
|
||||
if [[ "${{ github.event_name }}" == "workflow_dispatch" && "${{ inputs.circuit-name }}" != "" ]]; then
|
||||
# Build circuits by name
|
||||
- name: Build cpp circuits (workflow_dispatch by name/type)
|
||||
if: github.event_name == 'workflow_dispatch' && (inputs.circuit-name != '' || inputs.circuit-type != '')
|
||||
run: |
|
||||
if [[ "${{ inputs.circuit-name }}" != "" ]]; then
|
||||
INPUT_CIRCUITS="${{ inputs.circuit-name }}"
|
||||
INPUT_CIRCUITS=$(echo "$INPUT_CIRCUITS" | tr -d ' ')
|
||||
IFS=',' read -ra CIRCUITS_ARRAY <<< "$INPUT_CIRCUITS"
|
||||
|
||||
echo "Building selected circuits: ${{ inputs.circuit-name }}"
|
||||
echo "Building selected circuits by name: ${{ inputs.circuit-name }}"
|
||||
for circuit_name in "${CIRCUITS_ARRAY[@]}"; do
|
||||
echo "Building circuit: $circuit_name"
|
||||
./circuits/scripts/build/build_single_circuit.sh "$circuit_name"
|
||||
done
|
||||
|
||||
elif [[ "${{ github.event_name }}" == "workflow_dispatch" && "${{ inputs.circuit-type }}" != "" ]]; then
|
||||
# Build circuits by type
|
||||
else
|
||||
INPUT_CIRCUITS="${{ inputs.circuit-type }}"
|
||||
INPUT_CIRCUITS=$(echo "$INPUT_CIRCUITS" | tr -d ' ')
|
||||
IFS=',' read -ra CIRCUITS_ARRAY <<< "$INPUT_CIRCUITS"
|
||||
|
||||
echo "Building selected circuits: ${{ inputs.circuit-type }}"
|
||||
echo "Building selected circuits by type: ${{ inputs.circuit-type }}"
|
||||
for circuit in "${CIRCUITS_ARRAY[@]}"; do
|
||||
echo "Building circuit: $circuit"
|
||||
./circuits/scripts/build/build_cpp.sh "$circuit"
|
||||
done
|
||||
|
||||
else
|
||||
# Build all circuits (default behavior)
|
||||
echo "Building all circuits (default behavior)"
|
||||
./circuits/scripts/build/build_cpp.sh register
|
||||
./circuits/scripts/build/build_cpp.sh register_id
|
||||
./circuits/scripts/build/build_cpp.sh register_aadhaar
|
||||
./circuits/scripts/build/build_cpp.sh register_kyc
|
||||
./circuits/scripts/build/build_cpp.sh disclose
|
||||
./circuits/scripts/build/build_cpp.sh dsc
|
||||
fi
|
||||
|
||||
- name: Build cpp circuits - register
|
||||
if: github.event_name != 'workflow_dispatch' || (inputs.circuit-name == '' && inputs.circuit-type == '')
|
||||
run: ./circuits/scripts/build/build_cpp.sh register
|
||||
|
||||
- name: Build cpp circuits - register_id
|
||||
if: github.event_name != 'workflow_dispatch' || (inputs.circuit-name == '' && inputs.circuit-type == '')
|
||||
run: ./circuits/scripts/build/build_cpp.sh register_id
|
||||
|
||||
- name: Build cpp circuits - register_aadhaar
|
||||
if: github.event_name != 'workflow_dispatch' || (inputs.circuit-name == '' && inputs.circuit-type == '')
|
||||
run: ./circuits/scripts/build/build_cpp.sh register_aadhaar
|
||||
|
||||
- name: Build cpp circuits - register_kyc
|
||||
if: github.event_name != 'workflow_dispatch' || (inputs.circuit-name == '' && inputs.circuit-type == '')
|
||||
run: ./circuits/scripts/build/build_cpp.sh register_kyc
|
||||
|
||||
- name: Build cpp circuits - disclose
|
||||
if: github.event_name != 'workflow_dispatch' || (inputs.circuit-name == '' && inputs.circuit-type == '')
|
||||
run: ./circuits/scripts/build/build_cpp.sh disclose
|
||||
|
||||
- name: Build cpp circuits - dsc
|
||||
if: github.event_name != 'workflow_dispatch' || (inputs.circuit-name == '' && inputs.circuit-type == '')
|
||||
run: ./circuits/scripts/build/build_cpp.sh dsc
|
||||
|
||||
- name: Upload Artifact
|
||||
uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4
|
||||
with:
|
||||
|
||||
31
.github/workflows/mobile-sdk-demo-e2e.yml
vendored
31
.github/workflows/mobile-sdk-demo-e2e.yml
vendored
@@ -459,6 +459,37 @@ jobs:
|
||||
FORCE_BUNDLING=1 RCT_NO_LAUNCH_PACKAGER=1 \
|
||||
xcodebuild -workspace "$WORKSPACE_PATH" -scheme ${{ env.IOS_PROJECT_SCHEME }} -configuration Debug -destination "id=${{ env.IOS_SIMULATOR_ID }}" -derivedDataPath packages/mobile-sdk-demo/ios/build -jobs "$(sysctl -n hw.ncpu)" -parallelizeTargets -quiet COMPILER_INDEX_STORE_ENABLE=NO ONLY_ACTIVE_ARCH=YES SWIFT_COMPILATION_MODE=wholemodule || { echo "❌ iOS build failed"; exit 1; }
|
||||
echo "✅ iOS build succeeded"
|
||||
- name: Build iOS Release Archive (unsigned)
|
||||
run: |
|
||||
echo "Building iOS Release archive (unsigned) to validate Release configuration..."
|
||||
WORKSPACE_PATH="${{ env.IOS_WORKSPACE_PATH }}"
|
||||
|
||||
FORCE_BUNDLING=1 RCT_NO_LAUNCH_PACKAGER=1 \
|
||||
xcodebuild archive \
|
||||
-workspace "$WORKSPACE_PATH" \
|
||||
-scheme ${{ env.IOS_PROJECT_SCHEME }} \
|
||||
-configuration Release \
|
||||
-archivePath packages/mobile-sdk-demo/ios/build/SelfDemoApp.xcarchive \
|
||||
-destination "generic/platform=iOS" \
|
||||
-jobs "$(sysctl -n hw.ncpu)" \
|
||||
-parallelizeTargets \
|
||||
-quiet \
|
||||
COMPILER_INDEX_STORE_ENABLE=NO \
|
||||
SWIFT_COMPILATION_MODE=wholemodule \
|
||||
CODE_SIGN_IDENTITY="" \
|
||||
CODE_SIGNING_REQUIRED=NO \
|
||||
CODE_SIGNING_ALLOWED=NO \
|
||||
AD_HOC_CODE_SIGNING_ALLOWED=NO \
|
||||
|| { echo "❌ iOS Release archive build failed"; exit 1; }
|
||||
echo "✅ iOS Release archive build succeeded (unsigned)"
|
||||
|
||||
# Verify archive was created
|
||||
if [ -d "packages/mobile-sdk-demo/ios/build/SelfDemoApp.xcarchive" ]; then
|
||||
echo "📦 Archive created at packages/mobile-sdk-demo/ios/build/SelfDemoApp.xcarchive"
|
||||
else
|
||||
echo "❌ Archive not found"
|
||||
exit 1
|
||||
fi
|
||||
- name: Install and Test on iOS
|
||||
run: |
|
||||
echo "Installing app on simulator..."
|
||||
|
||||
Reference in New Issue
Block a user