-
Notifications
You must be signed in to change notification settings - Fork 60
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Set up CI with Azure Pipelines (#60)
* Set up CI with Azure Pipelines [skip ci] * Update azure-pipelines.yml for Azure Pipelines * Update azure-pipelines.yml for Azure Pipelines * Update azure-pipelines.yml for Azure Pipelines * Update azure-pipelines.yml for Azure Pipelines * Update azure-pipelines.yml for Azure Pipelines * Update azure-pipelines.yml for Azure Pipelines * Update azure-pipelines.yml for Azure Pipelines * Update azure-pipelines.yml for Azure Pipelines * Update azure-pipelines.yml for Azure Pipelines * Update azure-pipelines.yml for Azure Pipelines * Update azure-pipelines.yml for Azure Pipelines * Update azure-pipelines.yml for Azure Pipelines * Update azure-pipelines.yml for Azure Pipelines * Update azure-pipelines.yml for Azure Pipelines * Update azure-pipelines.yml for Azure Pipelines * Update Makefile * Update Makefile * Update azure-pipelines.yml for Azure Pipelines * Update azure-pipelines.yml for Azure Pipelines * Update azure-pipelines.yml for Azure Pipelines * Update azure-pipelines.yml for Azure Pipelines * Update azure-pipelines.yml for Azure Pipelines * Update azure-pipelines.yml for Azure Pipelines
- Loading branch information
Showing
3 changed files
with
106 additions
and
0 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
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
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,80 @@ | ||
# Starter pipeline | ||
# Start with a minimal pipeline that you can customize to build and deploy your code. | ||
# Add steps that build, run tests, deploy, and more: | ||
# https://aka.ms/yaml | ||
|
||
variables: | ||
DEVKITPRO: $(Agent.TempDirectory)\bar\devkitPro | ||
DEVKITARM: $(Agent.TempDirectory)\bar\devkitPro\devkitARM | ||
|
||
pool: | ||
vmImage: 'windows-latest' | ||
|
||
steps: | ||
- task: DownloadSecureFile@1 | ||
inputs: | ||
secureFile: 'devkitPro.zip.001' | ||
|
||
- task: DownloadSecureFile@1 | ||
inputs: | ||
secureFile: 'devkitPro.zip.002' | ||
|
||
- task: DownloadSecureFile@1 | ||
inputs: | ||
secureFile: 'devkitPro.zip.003' | ||
|
||
- task: DownloadSecureFile@1 | ||
inputs: | ||
secureFile: 'devkitPro.zip.004' | ||
|
||
- script: | | ||
cd $(Agent.TempDirectory) | ||
copy /b *.zip.00* newzip.zip | ||
powershell.exe -nologo -noprofile -command "& { Add-Type -A 'System.IO.Compression.FileSystem'; [IO.Compression.ZipFile]::ExtractToDirectory('newzip.zip', 'bar'); }" | ||
md $(Build.Repository.LocalPath)\build | ||
displayName: 'Prepare environment' | ||
|
||
- script: | | ||
cd $(Build.Repository.LocalPath) | ||
make | ||
move s.nds $(Build.Repository.LocalPath)\build\GBARunner2_arm9dldi.nds | ||
make clean | ||
displayName: 'Build arm9dldi' | ||
|
||
- script: | | ||
cd $(Build.Repository.LocalPath) | ||
make all ENABLE_WRAM_ICACHE=1 | ||
move s.nds $(Build.Repository.LocalPath)\build\GBARunner2_arm9dldi_wramicache.nds | ||
make clean | ||
displayName: 'Build arm9dldi_wramicache' | ||
|
||
- script: | | ||
cd $(Build.Repository.LocalPath) | ||
make all ARM7_DLDI=1 | ||
move s.nds $(Build.Repository.LocalPath)\build\GBARunner2_arm7dldi.nds | ||
make clean | ||
displayName: 'Build arm7dldi' | ||
|
||
- script: | | ||
cd $(Build.Repository.LocalPath) | ||
make all ARM7_DLDI=1 ENABLE_WRAM_ICACHE=1 | ||
move s.nds $(Build.Repository.LocalPath)\build\GBARunner2_arm7dldi_wramicache.nds | ||
make clean | ||
displayName: 'Build arm7dldi_wramicache' | ||
|
||
- task: PublishPipelineArtifact@1 | ||
inputs: | ||
targetPath: '$(Build.Repository.LocalPath)\\build' | ||
artifact: 'GBARunner2 Build' | ||
|
||
- task: GitHubRelease@0 | ||
condition: not(eq(variables['Build.Reason'], 'PullRequest')) | ||
inputs: | ||
gitHubConnection: Gericom2 | ||
repositoryName: '$(Build.Repository.Name)' | ||
action: 'create' | ||
target: '$(Build.SourceVersion)' | ||
tagSource: 'manual' | ||
tag: 'commit_$(Build.SourceVersion)' | ||
assets: '$(Build.Repository.LocalPath)/build/*' | ||
addChangeLog: false |