Install WDA on simulator when running on azure-pipeline

Hi Im new to iOS testing, I was able to manually build the webdriver agent locally and run some sample tests on simulator. Now I want to run the same tests on azure devops pipeline and I have prepared a script.

Now my question is how do I build the webdriver agent in pipeline? Can I use the locally pre-built wda in my azure pipeline to run my tests? ref: Run Prebuilt WebDriverAgentRunner - Appium XCUITest Driver