Browse Source
* master: (58 commits) Don't ignore azure-pipelines.yml Disable getentropy() on Apple devices lucetc will eventually use --opt-level fast instead of --opt-level best Ignore azure-pipelines.yml Bump Update ChangeLog Use Azure Pipelines to produce WASI binaries Update status badge Add Azure Pipelines build status Name things consistently Conditions don't apply to scripts Parallelize MinGW builds Reserve a branch for testing the next version Don't trigger Azure Pipelines on PRs, keep Appveyor for this Azure Pipelines: build MinGW binaries azure-pipelines: remove the packages job Add Azure Pipelines rules Indent Appveyor rules Support the enterprise version of Visual Studio Revert "Limit resources when running tests" ...coverity_scan
![github@pureftpd.org](/assets/img/avatar_default.png)
46 changed files with 931 additions and 420 deletions
@ -0,0 +1,153 @@ |
|||
trigger: |
|||
- stable |
|||
- next |
|||
|
|||
pr: none |
|||
|
|||
jobs: |
|||
- job: "wasi" |
|||
pool: |
|||
vmImage: "ubuntu-16.04" |
|||
steps: |
|||
- script: | |
|||
sudo apt-get install build-essential curl cmake |
|||
displayName: Install system packages |
|||
- script: | |
|||
curl https://sh.rustup.rs -sSf | sh -s -- -y |
|||
source ${HOME}/.cargo/env |
|||
git clone --recursive https://github.com/wasmerio/wasmer.git |
|||
(cd wasmer && cargo install --path .) |
|||
displayName: Install wasmer |
|||
- script: | |
|||
curl -sL -o wasi-sdk.deb https://github.com/CraneStation/wasi-sdk/releases/download/wasi-sdk-5/wasi-sdk_5.0_amd64.deb |
|||
sudo dpkg -i wasi-sdk.deb && rm -f wasi-sdk.deb |
|||
sudo ln -s /opt/wasi-sdk/share/*sysroot* /opt/wasi-sysroot |
|||
displayName: Install the WASI SDK |
|||
- script: | |
|||
env PATH=/opt/wasi-sdk/bin:${HOME}/.cargo/bin:$PATH dist-build/wasm32-wasi.sh |
|||
displayName: Compile libsodium |
|||
- task: PublishBuildArtifacts@1 |
|||
condition: not(canceled()) |
|||
inputs: |
|||
pathToPublish: libsodium-wasm32-wasi |
|||
artifactName: libsodium-wasm32-wasi |
|||
|
|||
- 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\" |
|||
displayName: Copy header files |
|||
- task: PublishBuildArtifacts@1 |
|||
condition: not(canceled()) |
|||
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 |
|||
condition: not(canceled()) |
|||
inputs: |
|||
pathToPublish: bin |
|||
artifactName: libsodium |
|||
|
|||
- job: "windows_reallyold" |
|||
pool: |
|||
vmImage: "vs2015-win2012r2" |
|||
steps: |
|||
- powershell: | |
|||
cd builds\msvc\build |
|||
& .\buildbase.bat ..\vs2015\libsodium.sln 14 |
|||
& .\buildbase.bat ..\vs2013\libsodium.sln 12 |
|||
& .\buildbase.bat ..\vs2012\libsodium.sln 11 |
|||
& .\buildbase.bat ..\vs2010\libsodium.sln 10 |
|||
displayName: Compile it all |
|||
- task: PublishBuildArtifacts@1 |
|||
condition: not(canceled()) |
|||
inputs: |
|||
pathToPublish: bin |
|||
artifactName: libsodium |
|||
|
|||
- job: mingw64 |
|||
pool: |
|||
vmImage: "windows-2019" |
|||
steps: |
|||
- script: | |
|||
git clone https://github.com/msys2/msys2-ci-base.git %CD:~0,2%\msys64 |
|||
%CD:~0,2%\msys64\usr\bin\rm -rf %CD:~0,2%\msys64\.git |
|||
displayName: Install MSYS2 |
|||
- script: | |
|||
set PATH=%CD:~0,2%\msys64\usr\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem |
|||
%CD:~0,2%\msys64\usr\bin\pacman --noconfirm -Syyuu |
|||
%CD:~0,2%\msys64\usr\bin\pacman --noconfirm -Syuu |
|||
displayName: Update MSYS2 |
|||
- script: | |
|||
set PATH=%CD:~0,2%\msys64\usr\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem |
|||
%CD:~0,2%\msys64\usr\bin\pacman --noconfirm --needed -S base-devel mingw-w64-x86_64-toolchain |
|||
%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=MINGW64 |
|||
%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: |
|||
pathToPublish: libsodium-win64 |
|||
artifactName: libsodium-win64 |
|||
|
|||
- job: mingw32 |
|||
pool: |
|||
vmImage: "windows-2019" |
|||
steps: |
|||
- script: | |
|||
git clone https://github.com/msys2/msys2-ci-base.git %CD:~0,2%\msys64 |
|||
%CD:~0,2%\msys64\usr\bin\rm -rf %CD:~0,2%\msys64\.git |
|||
displayName: Install MSYS2 |
|||
- script: | |
|||
set PATH=%CD:~0,2%\msys64\usr\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem |
|||
%CD:~0,2%\msys64\usr\bin\pacman --noconfirm -Syyuu |
|||
%CD:~0,2%\msys64\usr\bin\pacman --noconfirm -Syuu |
|||
displayName: Update MSYS2 |
|||
- script: | |
|||
set PATH=%CD:~0,2%\msys64\usr\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem |
|||
%CD:~0,2%\msys64\usr\bin\pacman --noconfirm --needed -S base-devel mingw-w64-i686-toolchain |
|||
%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 |
|||
%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 |
|||
- task: PublishBuildArtifacts@1 |
|||
condition: not(canceled()) |
|||
inputs: |
|||
pathToPublish: libsodium-win32 |
|||
artifactName: libsodium-win32 |
File diff suppressed because one or more lines are too long
@ -1,5 +1,5 @@ |
|||
cscript msvc-scripts/rep.vbs //Nologo s/@VERSION@/1.0.17/ < src\libsodium\include\sodium\version.h.in > tmp |
|||
cscript msvc-scripts/rep.vbs //Nologo s/@VERSION@/1.0.18/ < src\libsodium\include\sodium\version.h.in > tmp |
|||
cscript msvc-scripts/rep.vbs //Nologo s/@SODIUM_LIBRARY_VERSION_MAJOR@/10/ < tmp > tmp2 |
|||
cscript msvc-scripts/rep.vbs //Nologo s/@SODIUM_LIBRARY_VERSION_MINOR@/2/ < tmp2 > tmp3 |
|||
cscript msvc-scripts/rep.vbs //Nologo s/@SODIUM_LIBRARY_VERSION_MINOR@/3/ < tmp2 > tmp3 |
|||
cscript msvc-scripts/rep.vbs //Nologo s/@SODIUM_LIBRARY_MINIMAL_DEF@// < tmp3 > src\libsodium\include\sodium\version.h |
|||
del tmp tmp2 tmp3 |
|||
|
@ -1,4 +1,4 @@ |
|||
<?xml version="1.0" encoding="utf-8"?> |
|||
<!-- These values are populated into the package.gsl templates by package.bat. --> |
|||
<!-- The target attribute controls path and file name only, id controls package naming. --> |
|||
<package id="libsodium_vc120" target="libsodium" version = "1.0.17.0" pathversion="1_0_17_0" platformtoolset="v120" /> |
|||
<package id="libsodium_vc120" target="libsodium" version = "1.0.18.0" pathversion="1_0_18_0" platformtoolset="v120" /> |
|||
|
Loading…
Reference in new issue