Merge pull request #84 from MPC-SoK/add-gh-actions #3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |