Skip to content

Instantly share code, notes, and snippets.

@terurou
Last active April 25, 2023 02:30
Show Gist options
  • Save terurou/df06a68a11707cb2a7d8dfe3d8ae7e38 to your computer and use it in GitHub Desktop.
Save terurou/df06a68a11707cb2a7d8dfe3d8ae7e38 to your computer and use it in GitHub Desktop.
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${HAXE_VERSION//./-}/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