diff --git a/.github/workflows/test-picco.yml b/.github/workflows/test-picco.yml new file mode 100644 index 0000000..6898945 --- /dev/null +++ b/.github/workflows/test-picco.yml @@ -0,0 +1,28 @@ +name: Build and test the Docker container for Picco + +on: + push: + branches: [ master ] + paths: + - picco/* + pull_request: + branches: [ master ] + paths: + - picco/* + +jobs: + build: + name: Build container for Picco + runs-on: ubuntu-latest + steps: + - name: Check out the repo + uses: actions/checkout@v3 + - uses: docker/setup-buildx-action@v2 + - uses: docker/build-push-action@v4 + with: + context: picco + tags: picco + load: true + cache-from: type=gha + cache-to: type=gha,mode=max + push: false diff --git a/.github/workflows/test-scalemamba.yml b/.github/workflows/test-scalemamba.yml new file mode 100644 index 0000000..b9e6f54 --- /dev/null +++ b/.github/workflows/test-scalemamba.yml @@ -0,0 +1,28 @@ +name: Build and test the Docker container for SCALE-Mamba + +on: + push: + branches: [ master ] + paths: + - scalemamba/* + pull_request: + branches: [ master ] + paths: + - scalemamba/* + +jobs: + build: + name: Build container for SCALE-Mamba + runs-on: ubuntu-latest + steps: + - name: Check out the repo + uses: actions/checkout@v3 + - uses: docker/setup-buildx-action@v2 + - uses: docker/build-push-action@v4 + with: + context: scalemamba + tags: scalemamba + load: true + cache-from: type=gha + cache-to: type=gha,mode=max + push: false diff --git a/.github/workflows/test-spdz.yml b/.github/workflows/test-spdz.yml new file mode 100644 index 0000000..7e43df4 --- /dev/null +++ b/.github/workflows/test-spdz.yml @@ -0,0 +1,28 @@ +name: Build and test the Docker container for SPDZ-2 + +on: + push: + branches: [ master ] + paths: + - spdz/* + pull_request: + branches: [ master ] + paths: + - spdz/* + +jobs: + build: + name: Build container for SPDZ-2 + runs-on: ubuntu-latest + steps: + - name: Check out the repo + uses: actions/checkout@v3 + - uses: docker/setup-buildx-action@v2 + - uses: docker/build-push-action@v4 + with: + context: spdz + tags: spdz + load: true + cache-from: type=gha + cache-to: type=gha,mode=max + push: false diff --git a/picco/install_examples.sh b/picco/install_examples.sh index 3ee293a..3ffbbb1 100644 --- a/picco/install_examples.sh +++ b/picco/install_examples.sh @@ -10,5 +10,5 @@ for DIR in mult3 innerprod xtabs; do ln -s /root/keys secure_server/keys ln -s /root/picco/compute/smc-compute smc-compute picco $DIR.c smc_config $DIR utility_config - make + make -j done diff --git a/scalemamba/install.sh b/scalemamba/install.sh index 634a398..0db16f2 100644 --- a/scalemamba/install.sh +++ b/scalemamba/install.sh @@ -1,3 +1,5 @@ +#!/bin/bash + set -ex @@ -7,7 +9,7 @@ git clone https://github.com/KULeuven-COSIC/SCALE-MAMBA.git cd SCALE-MAMBA git checkout -b v1.14 c111516e3ebc1efd12a2bd47dd2122b160e13d1e cp /root/source/CONFIG.mine . -make progs +make progs -j # set up certificate authority touch ~/.rnd # see: https://github.com/openssl/openssl/issues/7754 diff --git a/spdz/install.sh b/spdz/install.sh index ab741e4..e74cee5 100644 --- a/spdz/install.sh +++ b/spdz/install.sh @@ -6,13 +6,11 @@ set -ex git clone https://github.com/bristolcrypto/SPDZ-2 cd SPDZ-2 git checkout v0.0.3 -echo USE_NTL = 1 >> CONFIG.mine -echo MOD = -DMAX_MOD_SZ=6 >> CONFIG.mine -echo ARCH = -march=native >> CONFIG.mine +{ echo USE_NTL = 1; echo MOD = -DMAX_MOD_SZ=6; echo ARCH = -march=native; } >> CONFIG.mine sed -i s/-Werror//g CONFIG # needed because recent versions of gcc cannot compile SPDZ w/o warnings. sed -i s/python/python2/g compile.py # The command is now called "python2" instead of "python". -make -j8 +make -j mkdir Player-Data