Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Haxe on Azure Pipelines/Windows VM
trigger:
- master
variables:
HAXE_VERSION: "4.0.5"
NEKO_VERSION: "2.3.0"
pool:
vmImage: 'windows-latest'
steps:
- checkout: self
fetchDepth: 1
- bash: |
NEKOVER=$(NEKO_VERSION)
curl -L -O https://github.com/HaxeFoundation/neko/releases/download/v${NEKOVER//./-}/neko-$(NEKO_VERSION)-win64.zip
unzip neko-$(NEKO_VERSION)-win64.zip
rm neko-$(NEKO_VERSION)-win64.zip
find neko-* -maxdepth 0 -exec mv {} neko \;
echo "##vso[task.prependpath]$(Pipeline.Workspace)\\neko"
echo "##vso[task.setvariable variable=NEKO_INSTPATH]$(Pipeline.Workspace)\\neko"
workingDirectory: $(Pipeline.Workspace)
displayName: 'Install Neko'
- bash: |
curl -L -O https://github.com/HaxeFoundation/haxe/releases/download/$(HAXE_VERSION)/haxe-$(HAXE_VERSION)-win64.zip
unzip haxe-$(HAXE_VERSION)-win64.zip
rm haxe-$(HAXE_VERSION)-win64.zip
find haxe* -maxdepth 0 -exec mv {} haxe \;
echo "##vso[task.prependpath]$(Pipeline.Workspace)\\haxe"
echo "##vso[task.setvariable variable=HAXE_STD_PATH]$(Pipeline.Workspace)\\haxe\\std"
workingDirectory: $(Pipeline.Workspace)
displayName: 'Install Haxe'
- bash: |
mkdir lib
haxelib setup lib
workingDirectory: $(Pipeline.Workspace)\haxe
displayName: '`haxelib setup`'
- script: |
echo "## haxe"
haxe --version
displayName: 'Verify installation'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.