Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 34 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -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*
33 changes: 33 additions & 0 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
@@ -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