-
Notifications
You must be signed in to change notification settings - Fork 60
/
azure-pipelines.yml
83 lines (69 loc) · 2.39 KB
/
azure-pipelines.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
# 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
CURRENT_DATE: $[format('{0:yyyyMMdd\-HHmmss}', pipeline.startTime)]
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_ds.nds
make clean
displayName: 'Build arm9dldi_ds'
- script: |
cd $(Build.Repository.LocalPath)
make all ARM7_DLDI=1
move s.nds $(Build.Repository.LocalPath)\build\GBARunner2_arm7dldi_ds.nds
make clean
displayName: 'Build arm7dldi_ds'
- script: |
cd $(Build.Repository.LocalPath)
make all ARM7_DLDI=1 USE_DSI_16MB=1
move s.nds $(Build.Repository.LocalPath)\build\GBARunner2_arm7dldi_dsi.nds
make clean
displayName: 'Build arm7dldi_dsi'
- script: |
cd $(Build.Repository.LocalPath)
make all ARM7_DLDI=1 USE_3DS_32MB=1
move s.nds $(Build.Repository.LocalPath)\build\GBARunner2_arm7dldi_3ds.nds
make clean
displayName: 'Build arm7dldi_3ds'
- task: PublishPipelineArtifact@1
inputs:
targetPath: '$(Build.Repository.LocalPath)\\build'
artifact: 'GBARunner2 Build'
- task: short-git-version-hash-extractor@1
- 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: 'v$(CURRENT_DATE)_$(ShortVersionHash)'
assets: '$(Build.Repository.LocalPath)/build/*'
addChangeLog: false