-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add near plugins & update near-sdk (#40)
* 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
Showing
11 changed files
with
1,332 additions
and
339 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,5 @@ artifacts/ | |
cache/ | ||
coverage/ | ||
coverage.json | ||
res/ | ||
target/ | ||
.env |
Oops, something went wrong.