-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
95d9b61
commit 74a1788
Showing
68 changed files
with
10,526 additions
and
211 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
steps: | ||
- script: | | ||
wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/cuda-repo-ubuntu1804_10.1.168-1_amd64.deb | ||
sudo dpkg -i cuda-repo-ubuntu1804_10.1.168-1_amd64.deb | ||
sudo apt-key adv --fetch-keys http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/7fa2af80.pub | ||
sudo apt-get update -yqq | ||
sudo apt-get install cuda ocl-icd-opencl-dev libncursesw5-dev | ||
displayName: Linux Install Dependencies | ||
condition: eq( variables['Agent.OS'], 'Linux' ) | ||
- script: | | ||
git submodule update --init --recursive | ||
displayName: Init Dependencies |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
steps: | ||
- script: 'cargo build --release --features opencl' | ||
displayName: Build Release | ||
condition: and(succeeded(), contains(variables['Build.SourceBranch'], 'refs/tags/'), eq(variables['CI_JOB'], 'release' )) | ||
- script: | | ||
MY_TAG="$(Build.SourceBranch)" | ||
MY_TAG=${MY_TAG#refs/tags/} | ||
echo $MY_TAG | ||
echo "##vso[task.setvariable variable=build.my_tag]$MY_TAG" | ||
echo "##vso[task.setvariable variable=build.platform]$PLATFORM" | ||
displayName: "Create my tag variable" | ||
condition: and(succeeded(), contains(variables['Build.SourceBranch'], 'refs/tags/'), eq(variables['CI_JOB'], 'release' )) | ||
- task: CopyFiles@2 | ||
displayName: Copy assets | ||
condition: and(succeeded(), contains(variables['Build.SourceBranch'], 'refs/tags/'), eq(variables['CI_JOB'], 'release' )) | ||
inputs: | ||
sourceFolder: '$(Build.SourcesDirectory)/target/release' | ||
contents: 'mugle-miner' | ||
targetFolder: '$(Build.BinariesDirectory)/mugle-miner' | ||
- task: CopyFiles@2 | ||
displayName: Copy plugins | ||
condition: and(succeeded(), contains(variables['Build.SourceBranch'], 'refs/tags/'), eq(variables['CI_JOB'], 'release' )) | ||
inputs: | ||
sourceFolder: '$(Build.SourcesDirectory)/target/release/plugins' | ||
contents: '*' | ||
targetFolder: '$(Build.BinariesDirectory)/mugle-miner/plugins' | ||
- task: CopyFiles@2 | ||
displayName: Copy config | ||
condition: and(succeeded(), contains(variables['Build.SourceBranch'], 'refs/tags/'), eq(variables['CI_JOB'], 'release' )) | ||
inputs: | ||
sourceFolder: '$(Build.SourcesDirectory)' | ||
contents: 'mugle-miner.toml' | ||
targetFolder: '$(Build.BinariesDirectory)/mugle-miner' | ||
- task: ArchiveFiles@2 | ||
displayName: Gather assets | ||
condition: and(succeeded(), contains(variables['Build.SourceBranch'], 'refs/tags/'), eq(variables['CI_JOB'], 'release' )) | ||
inputs: | ||
rootFolderOrFile: '$(Build.BinariesDirectory)/mugle-miner' | ||
archiveType: 'tar' | ||
tarCompression: 'gz' | ||
archiveFile: '$(Build.ArtifactStagingDirectory)/mugle-miner-$(build.my_tag)-$(build.platform).tar.gz' | ||
- script: | | ||
openssl sha256 $(Build.ArtifactStagingDirectory)/mugle-miner-$(build.my_tag)-$(build.platform).tar.gz > $(Build.ArtifactStagingDirectory)/mugle-miner-$(build.my_tag)-$(build.platform)-sha256sum.txt | ||
displayName: Create Checksum | ||
condition: and(succeeded(), contains(variables['Build.SourceBranch'], 'refs/tags/'), eq(variables['CI_JOB'], 'release' )) | ||
- task: GithubRelease@0 | ||
displayName: Github release | ||
condition: and(succeeded(), startsWith(variables['Build.SourceBranch'], 'refs/tags/'), eq(variables['CI_JOB'], 'release' )) | ||
inputs: | ||
gitHubConnection: 'ignopeverell' | ||
repositoryName: 'mimblewimble/mugle-miner' | ||
action: 'edit' | ||
target: '$(build.sourceVersion)' | ||
tagSource: 'manual' | ||
tag: '$(build.my_tag)' | ||
assets: | | ||
$(Build.ArtifactStagingDirectory)/mugle-miner-$(build.my_tag)-$(build.platform).tar.gz | ||
$(Build.ArtifactStagingDirectory)/mugle-miner-$(build.my_tag)-$(build.platform)-sha256sum.txt | ||
title: '$(build.my_tag)' | ||
assetUploadMode: 'replace' | ||
addChangeLog: true |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,7 @@ | ||
# Generated by Cargo | ||
# will have compiled files and executables | ||
/target/ | ||
|
||
# Remove Cargo.lock from gitignore if creating an executable, leave it for libraries | ||
# More information here https://doc.rust-lang.org/cargo/guide/cargo-toml-vs-cargo-lock.html | ||
Cargo.lock | ||
|
||
# These are backup files generated by rustfmt | ||
**/*.rs.bk | ||
*.swp | ||
.DS_Store | ||
.mugle* | ||
node* | ||
target | ||
*.iml | ||
mugle-miner.log |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
[submodule "cuckoo-miner/src/cuckoo_sys/plugins/cuckoo"] | ||
path = cuckoo-miner/src/cuckoo_sys/plugins/cuckoo | ||
url = https://github.com/mugleproject/cuckoo.git |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# Code of Conduct | ||
|
||
The Code of Conduct for this repository [can be found online](https://mugle.org/policies/code_of_conduct). |
Oops, something went wrong.