Skip to content

Commit

Permalink
Add near plugins & update near-sdk (#40)
Browse files Browse the repository at this point in the history
* Add near plugins & update near-sdk

* Update contract build

* Mark field as deprecated & use tag for `eth-types` crate

* Update contract build
  • Loading branch information
karim-en authored Nov 9, 2023
1 parent 411b82a commit da6f0e7
Show file tree
Hide file tree
Showing 11 changed files with 1,332 additions and 339 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/contracts-near.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
on:
push:
branches:
- main
pull_request:
name: Contracts (NEAR)
jobs:
test:
runs-on: self-hosted
strategy:
fail-fast: false
matrix:
include:
- job-name: build all rust contracts
cmd: |
cd nearBridge
./build.sh
git status
changed_files=$(git status --porcelain --untracked-files=no | wc -l)
if [ $changed_files -gt 0 ]; then
echo 'contract changed, please rebuild contract'
exit 1
fi
timeout-minutes: 40

name: ${{ matrix.job-name }}
steps:
- name: Clone the repository
uses: actions/checkout@v3

- name: Execute
run: ${{ matrix.cmd }}
timeout-minutes: ${{ matrix.timeout-minutes }}
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,5 @@ artifacts/
cache/
coverage/
coverage.json
res/
target/
.env
Loading

0 comments on commit da6f0e7

Please sign in to comment.