Skip to content

Commit

Permalink
Update CI workflow to include caching and building FHE libraries
Browse files Browse the repository at this point in the history
  • Loading branch information
jaeho authored and jaeho committed Jan 11, 2024
1 parent c013ed5 commit ac1dd04
Showing 1 changed file with 27 additions and 3 deletions.
30 changes: 27 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
branches: [ main ]

jobs:
build:
Expand All @@ -16,11 +16,35 @@ jobs:
with:
submodules: true

- name: Cache dependencies
uses: actions/cache@v2
with:
path: |
/var/cache/apt
/usr/local/lib
key: ${{ runner.os }}-apt-${{ hashFiles('**/ci.yml') }}
restore-keys: ${{ runner.os }}-apt

- name: Install dependencies
run: sudo apt-get update && sudo apt-get install -y cmake make build-essential g++ clang autoconf javacc patchelf openjdk-8-jdk maven m4 tar lzip libfftw3-dev

- name: Build FHELibs
run: sbt buildFHElibs
- name: Clone FHE libraries
run: |
chmod +x src/main/java/T2-FHE-Compiler-and-Benchmarks/.circleci/clone_libs.sh
src/main/java/T2-FHE-Compiler-and-Benchmarks/.circleci/clone_libs.sh
- name: Build FHE libraries
run: |
chmod +x src/main/java/T2-FHE-Compiler-and-Benchmarks/.circleci/build_libs.sh
src/main/java/T2-FHE-Compiler-and-Benchmarks/.circleci/build_libs.sh
- name: Archive FHELibs artifacts
uses: actions/upload-artifact@v2
with:
name: FHELibs
path: |
src/main/java/T2-FHE-Compiler-and-Benchmarks/SEAL
src/main/java/T2-FHE-Compiler-and-Benchmarks/OpenFHE
- name: Build T2
run: sbt buildT2
Expand Down

0 comments on commit ac1dd04

Please sign in to comment.