diff --git a/.github/workflows/actions.yml b/.github/workflows/actions.yml deleted file mode 100644 index 05f0490ea..000000000 --- a/.github/workflows/actions.yml +++ /dev/null @@ -1,28 +0,0 @@ -name: CI - -on: - push: - branches: [main, feat/*] - pull_request: - branches: [main, feat/*] - -permissions: - actions: write - checks: write - contents: write - id-token: write - issues: write - discussions: write - pull-requests: write - statuses: write - -jobs: - contracts: - name: Contracts - uses: ElrondNetwork/elrond-actions/.github/workflows/contracts.yml@v1 - with: - rust-toolchain: nightly-2022-10-16 - vmtools-version: v1.4.60 - extra-build-args: --ignore-eei-checks - secrets: - token: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/env b/.github/workflows/env deleted file mode 100644 index 28a99a67c..000000000 --- a/.github/workflows/env +++ /dev/null @@ -1 +0,0 @@ -export PATH=$HOME/.local/bin:$HOME/elrondsdk/vmtools:$PATH diff --git a/.github/workflows/on_pull_request_build_contracts.yml b/.github/workflows/on_pull_request_build_contracts.yml new file mode 100644 index 000000000..32ddf4c4f --- /dev/null +++ b/.github/workflows/on_pull_request_build_contracts.yml @@ -0,0 +1,15 @@ +name: On pull request, build contracts + +on: + pull_request: + +permissions: + contents: write + +jobs: + build: + uses: multiversx/mx-sc-actions/.github/workflows/reproducible-build.yml@v2.3.4 + with: + image_tag: v4.2.1 + package_whole_project_src: true + skip_preliminary_checks: true diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml deleted file mode 100644 index 1296e50d5..000000000 --- a/.github/workflows/release.yml +++ /dev/null @@ -1,81 +0,0 @@ -name: Create release - -on: - workflow_dispatch: - inputs: - tag: - required: true - description: Release tag - title: - required: true - description: Release title - image_tag: - type: choice - required: true - description: Image elrondnetwork/build-contract-rust - options: - - v3.1.0 - -permissions: - contents: write - -jobs: - build: - runs-on: ubuntu-latest - steps: - - name: Checkout - uses: actions/checkout@v2 - with: - ref: ${{ env.GITHUB_REF_NAME }} - fetch-depth: 0 - repository: ${{ env.GITHUB_REPOSITORY }} - - - name: Download build script - run: | - wget https://raw.githubusercontent.com/ElrondNetwork/elrond-sdk-images-build-contract-rust/${{ github.event.inputs.image_tag }}/build_with_docker.py - - - name: Build contract - run: | - python3 ./build_with_docker.py --no-docker-tty --image=elrondnetwork/build-contract-rust:${{ github.event.inputs.image_tag }} --project=. --output=/home/runner/work/output-from-docker - - - name: Save artifacts - uses: actions/upload-artifact@v2 - with: - name: built-contracts - path: | - /home/runner/work/output-from-docker/**/*.wasm - /home/runner/work/output-from-docker/**/*.abi.json - if-no-files-found: error - - release: - needs: [build] - runs-on: ubuntu-latest - steps: - - name: Check out code - uses: actions/checkout@v2 - with: - fetch-depth: "0" - - - name: Download all workflow artifacts - uses: actions/download-artifact@v2 - with: - path: assets - - - name: Create release - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - run: | - echo "Built using Docker image: **elrondnetwork/build-contract-rust:${{ github.event.inputs.image_tag }}**." >> notes.txt - echo "" >> notes.txt - echo "## Codehash (blake2b):" >> notes.txt - echo "" >> notes.txt - - for i in $(find ./assets -type f -name *.wasm); do - filename=$(basename ${i}) - checksum=($(b2sum -l 256 ${i})) - echo " - **${filename}**: \`${checksum}\`" >> notes.txt - done - - gh release create ${{ github.event.inputs.tag }} --target=$GITHUB_SHA --prerelease --title="${{ github.event.inputs.title }}" --generate-notes --notes-file=notes.txt - sleep 10 - gh release upload ${{ github.event.inputs.tag }} $(find ./assets -type f) diff --git a/dex/farm-staking-contracts/metabonding-staking/elrond.json b/dex/farm-staking-contracts/metabonding-staking/multiversx.json similarity index 100% rename from dex/farm-staking-contracts/metabonding-staking/elrond.json rename to dex/farm-staking-contracts/metabonding-staking/multiversx.json