Merge pull request #897 from VaultaFoundation/kayan_2.1_to_main_verbump #901
This file contains hidden or 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
| name: EOS EVM Contract CI | |
| on: | |
| push: | |
| branches: | |
| - main | |
| - release/* | |
| pull_request: | |
| workflow_dispatch: | |
| jobs: | |
| documentation: | |
| name: Attach Documentation | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout Repo | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 1 | |
| submodules: 'false' | |
| - name: Attach Documentation | |
| run: cat .github/workflows/contract.md >> $GITHUB_STEP_SUMMARY | |
| build: | |
| runs-on: ubuntu-22.04 | |
| container: ubuntu:jammy | |
| strategy: | |
| matrix: | |
| DWITH_TEST_ACTIONS: ['on', 'off'] | |
| name: EOS EVM Contract Build - Tests ${{ matrix.DWITH_TEST_ACTIONS }} | |
| env: | |
| DCMAKE_BUILD_TYPE: 'Release' | |
| steps: | |
| - name: Install Git | |
| run: apt-get update && apt-get install -y build-essential cmake git | |
| - name: Check Git Version | |
| run: git --version | |
| - name: Checkout Repo | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| submodules: 'recursive' | |
| - name: Download CDT | |
| uses: AntelopeIO/asset-artifact-download-action@v3 | |
| with: | |
| owner: AntelopeIO | |
| repo: cdt | |
| target: 'v4.1.0' | |
| prereleases: false | |
| file: 'cdt_.*amd64.deb' | |
| - name: Install CDT | |
| run: apt-get install -y ./cdt*.deb | |
| - name: Build EOS EVM Contract | |
| run: .github/workflows/build-contract.sh | |
| env: | |
| DWITH_TEST_ACTIONS: ${{ matrix.DWITH_TEST_ACTIONS }} | |
| - name: Upload Artifacts | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: contract.test-actions-${{ matrix.DWITH_TEST_ACTIONS }}.tar.gz | |
| path: contract.tar.gz | |
| if-no-files-found: error | |
| - name: Download antelope-spring-dev | |
| uses: AntelopeIO/asset-artifact-download-action@v3 | |
| with: | |
| owner: AntelopeIO | |
| repo: spring | |
| file: 'antelope-spring-dev.*ubuntu22\.04_amd64.deb' | |
| target: '1' | |
| prereleases: false | |
| artifact-name: antelope-spring-dev-ubuntu22-amd64 | |
| container-package: antelope-spring-experimental-binaries | |
| - name: Install packages | |
| run: apt-get install -y ./*.deb | |
| - name: Build EOS EVM Contract Tests | |
| run: .github/workflows/build-contract-test.sh | |
| - name: Upload Artifacts | |
| if: ${{ matrix.DWITH_TEST_ACTIONS == 'on' }} | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: contract-test.tar.gz | |
| path: contract-test.tar.gz | |
| if-no-files-found: error | |
| - name: Test EOS EVM Contract | |
| run: .github/workflows/test-contract.sh | |
| env: | |
| DWITH_TEST_ACTIONS: ${{ matrix.DWITH_TEST_ACTIONS }} | |
| - name: Upload Test Metrics | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: test-results-test-actions-${{ matrix.DWITH_TEST_ACTIONS }}.xml | |
| path: test-results.xml | |
| if-no-files-found: error |