summaryrefslogtreecommitdiff
path: root/Meta/Azure/Setup.yml
blob: 4e611275706ddf677b6effd21216fa3e7e22e5f5 (plain)
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
parameters:
  os: 'Linux'

steps:
  - checkout: self
    persistCredentials: true

  - ${{ if eq(parameters.os, 'Serenity') }}:
    - script: |
        sudo add-apt-repository ppa:canonical-server/server-backports
        sudo apt-get update
        sudo apt-get install libmpfr-dev libmpc-dev ninja-build e2fsprogs qemu-utils qemu-system-i386 ccache
      displayName: 'Install Dependencies'

  - ${{ if eq(parameters.os, 'Linux') }}:
    - script: |
        sudo apt-get purge -y clang-11
        sudo apt-get update
        sudo apt-get install ninja-build ccache

        sudo update-alternatives --install /usr/bin/clang clang /usr/bin/clang-12 100
        sudo update-alternatives --install /usr/bin/clang++ clang++ /usr/bin/clang++-12 100

        wget https://github.com/WebAssembly/wabt/releases/download/1.0.23/wabt-1.0.23-ubuntu.tar.gz
        tar -xzf ./wabt-1.0.23-ubuntu.tar.gz
        rm ./wabt-1.0.23-ubuntu.tar.gz
      displayName: 'Install Dependencies'

  - ${{ if eq(parameters.os, 'macOS') }}:
    - script: |
        brew install ninja wabt ccache
      displayName: 'Install Dependencies'