Skip to content

Update Test.yml

Update Test.yml #15

Workflow file for this run

name: Push to Other Repo
on:
push:
branches: "*"
pull_request:
branches: [ "master" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
path: fheos
submodules: recursive
token: ${{ secrets.GH_PAT }}
- uses: actions/setup-go@v4
with:
go-version: 1.21
- name: "Install Pnpm"
uses: "pnpm/action-setup@v2"
with:
version: "8"
- name: Build go-tfhe
run: |
cd fheos/go-tfhe && make build-rust
- run: |
cd fheos
FHE_OPS_DEST=${1:-"../precompiles"}
OUTPUT=${2:-"chains/arbitrum"}
go run gen.go 1
if [ ! -e precompiles/contracts ]; then
mkdir precompiles/contracts
fi
cp FheOs_gen.sol precompiles/contracts/FheOs.sol
mv FheOs_gen.sol solidity/FheOS.sol
cd precompiles
rm -rf artifacts
yarn
yarn build
rm -r ./contracts/
cd ../
go run gen.go 2 $OUTPUT
rm *_gen*
- uses: actions/checkout@v4
name: Checkout Fhenix-Contracts
with:
repository: FhenixProtocol/fhenix-contracts
path: fhenix-contracts
ref: 'main'
token: ${{ secrets.GH_PAT }}
- name: setup git config
run: |
cd fhenix-contracts
git config user.name "GitHub Actions Bot"
git config user.email "fhenixprotocol@github.com"
- name: Copy test contracts & Generated libs
run: |
ls -l
cp -r fheos/solidity/tests/contracts/* fhenix-contracts/test/contracts/*
cp fheos/solidity/FHE.sol fhenix-contracts/contracts/
cp fheos/solidity/FheOS.sol fhenix-contracts/contracts/
- name: Commit Changes
run: |
git commit -m "FheOS updated - pushing new contracts and scripts"
- run: git push origin main