Skip to content

Update Test.yml

Update Test.yml #6

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:
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 go-tfhe && make build-rust
- run: |
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
clean: false
ref: 'main'
token: ${{ secrets.GH_PAT }}
- name: setup git config
run: |
git config user.name "GitHub Actions Bot"
git config user.email "<>"
- name: Copy test contracts & Generated libs
run: |
cp ../solidity/contracts/* test/contracts/*
cp ../solidity/FHE.sol contracts/
cp ../solidity/FheOS.sol contracts/
- name: Commit Changes
run: |
git commit -m "FheOS updated - pushing new contracts and scripts"
- run: git push origin main