Skip to content

Commit

Permalink
chore: build with a commit with last modification of res/
Browse files Browse the repository at this point in the history
  • Loading branch information
frolvanya committed Jan 16, 2025
1 parent 9c322ae commit b20d62e
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/check-wasm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,30 @@ jobs:
steps:
- name: Clone the repository
uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.sha }}
fetch-depth: 0

- name: Fetch full history (if needed)
run: |
git status
git fetch
echo "Fetched full commit history"
git log --oneline | head -n 20
- name: Install cargo-near
run: |
curl --proto '=https' --tlsv1.2 -LsSf https://github.com/near/cargo-near/releases/latest/download/cargo-near-installer.sh | sh
- name: Find Last Commit Modifying `res/` Directory
run: |
PREV_COMMIT_HASH=$(git log -1 --format=format:%H -- ./near/res/)
echo "PREV_COMMIT_HASH=${PREV_COMMIT_HASH}" >> $GITHUB_ENV
echo "NEP330_BUILD_INFO_SOURCE_CODE_SNAPSHOT=git+https://github.com/${{ github.repository }}?rev=${PREV_COMMIT_HASH}" >> $GITHUB_ENV
- name: Build NEAR contracts
env:
NEP330_BUILD_INFO_SOURCE_CODE_SNAPSHOT: ${{ env.NEP330_BUILD_INFO_SOURCE_CODE_SNAPSHOT }}
run: |
make rust-build-near
git status
Expand Down

0 comments on commit b20d62e

Please sign in to comment.