Skip to content

Commit

Permalink
Merge branch 'main' of github.com:worldcoin/gpu-iris-mpc into rw/buckets
Browse files Browse the repository at this point in the history
  • Loading branch information
philsippl committed Jan 3, 2025
2 parents 2926cdd + 4913ef3 commit dfc60d7
Show file tree
Hide file tree
Showing 133 changed files with 8,282 additions and 1,769 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/build-all-targets.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
push:

concurrency:
group: '${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}'
group: "${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}"
cancel-in-progress: true

jobs:
Expand All @@ -13,6 +13,8 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install Dependencies
run: sudo apt install protobuf-compiler
- name: Cache build products
uses: Swatinem/rust-cache@v2.7.3
with:
Expand All @@ -31,6 +33,8 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install Dependencies
run: sudo apt install protobuf-compiler
- name: Cache build products
uses: Swatinem/rust-cache@v2.7.3
with:
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/doc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
push:

concurrency:
group: '${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}'
group: "${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}"
cancel-in-progress: true

jobs:
Expand All @@ -13,6 +13,8 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install Dependencies
run: sudo apt install protobuf-compiler
- name: Show errors inline
uses: r7kamura/rust-problem-matchers@v1
- name: Install Rust nightly
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/lint-clippy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
push:

concurrency:
group: '${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}'
group: "${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}"
cancel-in-progress: true

permissions:
Expand All @@ -21,6 +21,8 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install Dependencies
run: sudo apt install protobuf-compiler
- name: Install Rust nightly
run: rustup toolchain install nightly-2024-07-10
- name: Set Rust nightly as default
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/run-unit-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ on:
branches:
- main
pull_request:
types: [ opened, synchronize ]
types: [opened, synchronize]

concurrency:
group: '${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}'
group: "${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}"
cancel-in-progress: true

jobs:
Expand All @@ -28,6 +28,8 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install Dependencies
run: sudo apt install protobuf-compiler
- name: Cache build products
uses: Swatinem/rust-cache@v2.7.3
with:
Expand Down
47 changes: 47 additions & 0 deletions .github/workflows/temp-branch-build-and-push.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: Branch - Build and push docker image

on:
push:
branches:
- "ps/potential-phantom-match"

concurrency:
group: '${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}'
cancel-in-progress: true

env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}

jobs:
docker:
runs-on:
labels: ubuntu-22.04-64core
permissions:
packages: write
contents: read
attestations: write
id-token: write
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Log in to the Container registry
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and Push
uses: docker/build-push-action@v6
with:
context: .
push: true
tags: |
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ github.sha }}
platforms: linux/amd64
cache-from: type=gha
cache-to: type=gha,mode=max
4 changes: 2 additions & 2 deletions .github/workflows/test-gpu.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ jobs:
sudo ln -sf /usr/bin/gcc-11 /usr/bin/gcc
gcc --version
- name: Install OpenSSL && pkg-config
run: sudo apt-get update && sudo apt-get install -y pkg-config libssl-dev
- name: Install OpenSSL && pkg-config && protobuf-compiler
run: sudo apt-get update && sudo apt-get install -y pkg-config libssl-dev protobuf-compiler

- name: Install CUDA and NCCL dependencies
if: steps.cache-cuda-nccl.outputs.cache-hit != 'true'
Expand Down
Loading

0 comments on commit dfc60d7

Please sign in to comment.