2019-05-28 12:01:01 -07:00
|
|
|
trigger:
|
|
|
|
- stable
|
2019-05-29 05:31:21 -07:00
|
|
|
- next
|
2019-05-29 05:27:40 -07:00
|
|
|
|
|
|
|
pr: none
|
2019-05-28 12:01:01 -07:00
|
|
|
|
|
|
|
jobs:
|
2019-05-30 04:23:53 -07:00
|
|
|
- job: "wasi"
|
|
|
|
pool:
|
2020-04-07 02:00:58 -07:00
|
|
|
vmImage: "ubuntu-18.04"
|
2019-05-30 04:23:53 -07:00
|
|
|
steps:
|
|
|
|
- script: |
|
|
|
|
sudo apt-get install build-essential curl cmake
|
|
|
|
displayName: Install system packages
|
|
|
|
- script: |
|
2019-09-13 08:26:51 -07:00
|
|
|
curl https://get.wasmer.io -sSfL | sh
|
2019-09-13 02:26:23 -07:00
|
|
|
displayName: Install wasmer
|
2019-05-30 04:23:53 -07:00
|
|
|
- script: |
|
2020-06-04 01:40:25 -07:00
|
|
|
curl -sL -o - https://github.com/WebAssembly/wasi-sdk/releases/download/wasi-sdk-11/wasi-sdk-11.0-linux.tar.gz | tar xz -f - -C /opt/
|
2020-04-07 02:00:58 -07:00
|
|
|
sudo mv /opt/wasi-sdk-* /opt/wasi-sdk
|
2019-05-30 04:23:53 -07:00
|
|
|
sudo ln -s /opt/wasi-sdk/share/*sysroot* /opt/wasi-sysroot
|
|
|
|
displayName: Install the WASI SDK
|
|
|
|
- script: |
|
2019-09-13 08:34:48 -07:00
|
|
|
env WASMER_DIR=${HOME}/.wasmer PATH=${HOME}/.wasmer/bin:/opt/wasi-sdk/bin:${HOME}/.cargo/bin:$PATH dist-build/wasm32-wasi.sh
|
2019-05-30 04:23:53 -07:00
|
|
|
displayName: Compile libsodium
|
|
|
|
- task: PublishBuildArtifacts@1
|
|
|
|
condition: not(canceled())
|
|
|
|
inputs:
|
|
|
|
pathToPublish: libsodium-wasm32-wasi
|
|
|
|
artifactName: libsodium-wasm32-wasi
|
|
|
|
|
2019-05-28 12:01:01 -07:00
|
|
|
- job: "windows"
|
|
|
|
pool:
|
|
|
|
vmImage: "windows-2019"
|
|
|
|
steps:
|
|
|
|
- powershell: |
|
|
|
|
cd builds\msvc\build
|
|
|
|
& .\buildbase.bat ..\vs2019\libsodium.sln 16
|
|
|
|
displayName: Compile it all
|
|
|
|
- powershell: |
|
|
|
|
mkdir bin\include\sodium
|
|
|
|
Copy-Item "src\libsodium\include\sodium\*.h" -Destination "bin\include\sodium" -Recurse
|
|
|
|
Copy-Item "src\libsodium\include\*.h" -Destination "bin\include\"
|
2019-05-28 14:16:33 -07:00
|
|
|
displayName: Copy header files
|
2019-05-28 12:01:01 -07:00
|
|
|
- task: PublishBuildArtifacts@1
|
2019-05-29 05:20:56 -07:00
|
|
|
condition: not(canceled())
|
2019-05-28 12:01:01 -07:00
|
|
|
inputs:
|
|
|
|
pathToPublish: bin
|
|
|
|
artifactName: libsodium
|
|
|
|
|
|
|
|
- job: "windows_old"
|
|
|
|
pool:
|
|
|
|
vmImage: "vs2017-win2016"
|
|
|
|
steps:
|
|
|
|
- powershell: |
|
|
|
|
cd builds\msvc\build
|
|
|
|
& .\buildbase.bat ..\vs2017\libsodium.sln 15
|
|
|
|
displayName: Compile it all
|
|
|
|
- task: PublishBuildArtifacts@1
|
2019-05-29 05:20:56 -07:00
|
|
|
condition: not(canceled())
|
2019-05-28 12:01:01 -07:00
|
|
|
inputs:
|
|
|
|
pathToPublish: bin
|
|
|
|
artifactName: libsodium
|
|
|
|
|
2019-05-29 05:56:29 -07:00
|
|
|
- job: mingw64
|
2019-05-29 05:20:56 -07:00
|
|
|
pool:
|
|
|
|
vmImage: "windows-2019"
|
|
|
|
steps:
|
2020-11-04 09:57:26 -07:00
|
|
|
- powershell: |
|
|
|
|
(New-Object Net.WebClient).DownloadFile("https://github.com/msys2/msys2-installer/releases/download/2020-09-03/msys2-base-x86_64-20200903.sfx.exe", "sfx.exe")
|
|
|
|
.\sfx.exe -y -o\
|
|
|
|
del sfx.exe
|
2019-05-29 05:20:56 -07:00
|
|
|
displayName: Install MSYS2
|
|
|
|
- script: |
|
|
|
|
set PATH=%CD:~0,2%\msys64\usr\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem
|
2020-11-04 09:57:26 -07:00
|
|
|
%CD:~0,2%\msys64\usr\bin\bash -lc
|
|
|
|
%CD:~0,2%\msys64\usr\bin\bash -lc "pacman --noconfirm -Sydd filesystem"
|
|
|
|
%CD:~0,2%\msys64\usr\bin\bash -lc 'pacman --noconfirm -Syuu'
|
|
|
|
%CD:~0,2%\msys64\usr\bin\bash -lc 'pacman --noconfirm -Syuu'
|
2019-05-29 05:20:56 -07:00
|
|
|
displayName: Update MSYS2
|
|
|
|
- script: |
|
|
|
|
set PATH=%CD:~0,2%\msys64\usr\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem
|
2019-05-29 06:08:25 -07:00
|
|
|
%CD:~0,2%\msys64\usr\bin\pacman --noconfirm --needed -S base-devel mingw-w64-x86_64-toolchain
|
2019-05-29 05:20:56 -07:00
|
|
|
%CD:~0,2%\msys64\usr\bin\pacman --noconfirm -Scc
|
2019-05-29 05:56:29 -07:00
|
|
|
%CD:~0,2%\msys64\usr\bin\sed -i "s|#CacheDir.*|CacheDir=/c/Users/%USERNAME%/AppData/Local/Temp|g" /etc/pacman.conf
|
2019-05-29 05:20:56 -07:00
|
|
|
displayName: Install Toolchain
|
|
|
|
- script: |
|
|
|
|
set PATH=C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;%CD:~0,2%\msys64\usr\bin;%CD:~0,2%\msys64\bin
|
|
|
|
set MSYS2_ROOT=%CD:~0,2%\msys64
|
2019-05-29 05:27:40 -07:00
|
|
|
set MSYSTEM=MINGW64
|
2020-11-04 09:57:26 -07:00
|
|
|
set CHERE_INVOKING=yes
|
2019-05-29 05:20:56 -07:00
|
|
|
%MSYS2_ROOT%\cmd\msystem MINGW64
|
|
|
|
%CD:~0,2%\msys64\usr\bin\bash -lc dist-build/msys2-win64.sh
|
|
|
|
env:
|
|
|
|
CHERE_INVOKING: yes
|
|
|
|
MSYS2_ARCH: x86_64
|
|
|
|
displayName: Compile libsodium
|
|
|
|
- task: PublishBuildArtifacts@1
|
|
|
|
condition: not(canceled())
|
|
|
|
inputs:
|
2019-05-29 05:56:29 -07:00
|
|
|
pathToPublish: libsodium-win64
|
2019-05-29 06:34:08 -07:00
|
|
|
artifactName: libsodium-win64
|
2019-05-29 05:56:29 -07:00
|
|
|
|
|
|
|
- job: mingw32
|
|
|
|
pool:
|
|
|
|
vmImage: "windows-2019"
|
|
|
|
steps:
|
2020-11-04 09:57:26 -07:00
|
|
|
- powershell: |
|
|
|
|
(New-Object Net.WebClient).DownloadFile("https://github.com/msys2/msys2-installer/releases/download/2020-09-03/msys2-base-x86_64-20200903.sfx.exe", "sfx.exe")
|
|
|
|
.\sfx.exe -y -o\
|
|
|
|
del sfx.exe
|
2019-05-29 05:56:29 -07:00
|
|
|
displayName: Install MSYS2
|
|
|
|
- script: |
|
|
|
|
set PATH=%CD:~0,2%\msys64\usr\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem
|
2020-11-04 09:57:26 -07:00
|
|
|
%CD:~0,2%\msys64\usr\bin\bash -lc
|
|
|
|
%CD:~0,2%\msys64\usr\bin\bash -lc "pacman --noconfirm -Sydd filesystem"
|
|
|
|
%CD:~0,2%\msys64\usr\bin\bash -lc 'pacman --noconfirm -Syuu'
|
|
|
|
%CD:~0,2%\msys64\usr\bin\bash -lc 'pacman --noconfirm -Syuu'
|
2019-05-29 05:56:29 -07:00
|
|
|
displayName: Update MSYS2
|
|
|
|
- script: |
|
|
|
|
set PATH=%CD:~0,2%\msys64\usr\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem
|
2019-05-29 06:08:25 -07:00
|
|
|
%CD:~0,2%\msys64\usr\bin\pacman --noconfirm --needed -S base-devel mingw-w64-i686-toolchain
|
2019-05-29 05:56:29 -07:00
|
|
|
%CD:~0,2%\msys64\usr\bin\pacman --noconfirm -Scc
|
|
|
|
%CD:~0,2%\msys64\usr\bin\sed -i "s|#CacheDir.*|CacheDir=/c/Users/%USERNAME%/AppData/Local/Temp|g" /etc/pacman.conf
|
|
|
|
displayName: Install Toolchain
|
|
|
|
- script: |
|
|
|
|
set PATH=C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;%CD:~0,2%\msys64\usr\bin;%CD:~0,2%\msys64\bin
|
|
|
|
set MSYS2_ROOT=%CD:~0,2%\msys64
|
|
|
|
set MSYSTEM=MINGW32
|
2020-11-04 09:57:26 -07:00
|
|
|
set CHERE_INVOKING=yes
|
2019-05-29 05:56:29 -07:00
|
|
|
%MSYS2_ROOT%\cmd\msystem MINGW32
|
|
|
|
%CD:~0,2%\msys64\usr\bin\bash -lc dist-build/msys2-win32.sh
|
|
|
|
env:
|
|
|
|
CHERE_INVOKING: yes
|
|
|
|
MSYS2_ARCH: x86_64
|
|
|
|
displayName: Compile libsodium
|
2019-05-29 05:20:56 -07:00
|
|
|
- task: PublishBuildArtifacts@1
|
|
|
|
condition: not(canceled())
|
|
|
|
inputs:
|
2019-05-29 05:56:29 -07:00
|
|
|
pathToPublish: libsodium-win32
|
2019-05-29 06:34:08 -07:00
|
|
|
artifactName: libsodium-win32
|