diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000000000..5b5db8a28168e --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,34 @@ +name: C/C++ CI + +on: + push: + branches: + - EVM + tags: + - '**' + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + with: + ref: EVM + - name: Build + run: | + mkdir build && cd build + cmake -DCMAKE_BUILD_TYPE=Release -DLLVM_TARGETS_TO_BUILD=EVM -DLLVM_EXPERIMENTAL_TARGETS_TO_BUILD=EVM .. + make -j$(nproc) llc + cd .. + - name: Archive + run: | + zip -j evm-llvm-llc-$GITHUB_SHA.zip build/bin/llc + shasum -a 256 evm-llvm-llc-$GITHUB_SHA.zip > evm-llvm-llc-$GITHUB_SHA.zip.sha256 + cat evm-llvm-llc-$GITHUB_SHA.zip.sha256 + - name: Upload + uses: actions/upload-artifact@v2 + with: + name: llc-archive + path: evm-llvm-llc-*zip* diff --git a/azure-pipelines.yml b/azure-pipelines.yml new file mode 100644 index 0000000000000..886e4cefb3096 --- /dev/null +++ b/azure-pipelines.yml @@ -0,0 +1,33 @@ +# C/C++ with GCC +# Build your C/C++ project with GCC using make. +# Add steps that publish test results, save build artifacts, deploy, and more: +# https://docs.microsoft.com/azure/devops/pipelines/apps/c-cpp/gcc + +trigger: +- EVM +- refs/tags/* + +pool: + vmImage: 'ubuntu-latest' + +steps: +- checkout: self + fetchDepth: 1 +- script: | + mkdir build && cd build + cmake -DCMAKE_BUILD_TYPE=Release -DLLVM_TARGETS_TO_BUILD=EVM -DLLVM_EXPERIMENTAL_TARGETS_TO_BUILD=EVM .. + make -j$(nproc) llc + cd .. + displayName: 'Build artifacts' +- task: ArchiveFiles@2 + inputs: + rootFolderOrFile: 'build/bin/llc' + includeRootFolder: false + archiveType: 'zip' + archiveFile: '$(Build.ArtifactStagingDirectory)/evm_llvm-llc-$(Build.SourceVersion).zip' +- script: | + shasum -a 256 $(Build.ArtifactStagingDirectory)/evm_llvm-llc-$(Build.SourceVersion).zip \ + > $(Build.ArtifactStagingDirectory)/evm_llvm-llc-$(Build.SourceVersion).zip.sha256 + cat $(Build.ArtifactStagingDirectory)/evm_llvm-llc-$(Build.SourceVersion).zip.sha256 + displayName: 'Finalize artifacts' +- task: PublishBuildArtifacts@1 \ No newline at end of file