Skip to content

Commit

Permalink
[ci] Make iOS Jenkins job more reliable
Browse files Browse the repository at this point in the history
  • Loading branch information
charlag committed Dec 13, 2024
1 parent 20b10bc commit b640755
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 9 deletions.
2 changes: 0 additions & 2 deletions app-ios/mail-project.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,6 @@ targets:
PRODUCT_NAME: "Tuta D"
Release Staging:
PRODUCT_NAME: "Tuta Test"
PROVISIONING_PROFILE_SPECIFIER: "match AdHoc de.tutao.tutanota.test"
PROVISIONING_PROFILE_SPECIFIER[sdk=iphoneos*]: "match AdHoc de.tutao.tutanota.test 1716556941"
Release Production:
PRODUCT_NAME: "Tuta Mail"
groups:
Expand Down
8 changes: 4 additions & 4 deletions buildSrc/buildWebapp.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,11 +103,11 @@ export async function buildWebapp({ version, stage, host, measure, minify, proje
webassemblyLibraries: [
{
name: "liboqs.wasm",
command: "make -f Makefile_liboqs build",
command: "make -f Makefile_liboqs testenv",
workingDir: "libs/webassembly/",
env: {
WASM: `../../${buildDir}/wasm/liboqs.wasm`,
},
// env: {
// WASM: `../../${buildDir}/wasm/liboqs.wasm`,
// },
optimizationLevel: "O3",
},
{
Expand Down
5 changes: 3 additions & 2 deletions ci/Ios.Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -161,8 +161,8 @@ def stubClientDirectory() {
script {
sh "pwd"
sh "echo $PATH"
sh "mkdir build-calendar-app"
sh "mkdir build"
sh "mkdir -p build-calendar-app"
sh "mkdir -p build"
}
}

Expand All @@ -189,6 +189,7 @@ def generateXCodeProject(String projectPath, String spec) {
// Runs xcodegen on all of our project specs
def generateXCodeProjects() {
generateXCodeProject("app-ios", "mail-project")
generateXCodeProject("app-ios", "calendar-project")
generateXCodeProject("tuta-sdk/ios", "project")
}

Expand Down
5 changes: 4 additions & 1 deletion libs/webassembly/Makefile_liboqs
Original file line number Diff line number Diff line change
Expand Up @@ -67,4 +67,7 @@ $(WASM): include
--no-entry \
-s TOTAL_MEMORY=${TOTAL_MEMORY} \
-s EXPORTED_FUNCTIONS="['_OQS_KEM_new', '_OQS_KEM_free', '_OQS_KEM_keypair', '_OQS_KEM_encaps', '_OQS_KEM_decaps', '_TUTA_inject_entropy', '_malloc', '_free']" \
-o $(WASM)
-o $(WASM)

testenv:
bash ./testenv.sh
3 changes: 3 additions & 0 deletions libs/webassembly/testenv.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#/bin/env bash

echo "env: $MY_ENV"

0 comments on commit b640755

Please sign in to comment.