Format Version of Non-Tagged Commit #115
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Compile AutoDock-Vina binaries | |
on: | |
push: | |
branches: | |
- master | |
- develop | |
paths-ignore: | |
- 'example/**' | |
- 'docs/**' | |
- 'data/**' | |
pull_request: | |
branches: | |
- master | |
- develop | |
paths-ignore: | |
- 'example/**' | |
- 'docs/**' | |
- 'data/**' | |
release: | |
types: | |
- published | |
jobs: | |
compile_binaries: | |
name: Build wheels on ${{ matrix.os }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
include: | |
- os: ubuntu-latest | |
arch: x86_64 | |
- os: ubuntu-latest | |
arch: aarch64 | |
- os: macos-latest | |
- os: windows-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- name: Compile Vina for linux x86-64 | |
if: matrix.os == 'ubuntu-latest' && matrix.arch == 'x86_64' | |
run: | | |
sudo apt-get install -y libboost-all-dev swig | |
cd ./build/linux/release | |
make | |
- name: Compile Vina for linux ${{ matrix.arch }} | |
if: matrix.os == 'ubuntu-latest' && matrix.arch != 'x86_64' | |
uses: uraimo/run-on-arch-action@v2 | |
with: | |
arch: ${{ matrix.arch }} | |
distro: ubuntu20.04 | |
githubToken: ${{ github.token }} | |
dockerRunArgs: | | |
--volume "${PWD}:/vina" | |
install: | | |
apt-get update -q -y | |
apt-get install -q -y git build-essential make libboost-all-dev swig | |
run: | | |
cd /vina/build/linux/release | |
make | |
mv vina vina-${{ matrix.arch }} | |
mv vina_split vina_split-${{ matrix.arch }} | |
- name: Compile Vina for macOS | |
if: matrix.os == 'macos-latest' | |
run: | | |
brew install boost swig | |
cd ./build/mac/release | |
make | |
- name: Compile Vina for Windows x64 | |
if: matrix.os == 'windows-latest' | |
run: | | |
$Url = "https://sourceforge.net/projects/boost/files/boost-binaries/1.77.0/boost_1_77_0-msvc-14.2-64.exe" | |
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12 | |
(New-Object System.Net.WebClient).DownloadFile($Url, "$env:TEMP\boost.exe") | |
Start-Process -Wait -FilePath "$env:TEMP\boost.exe" "/SILENT","/SP-","/SUPPRESSMSGBOXES" | |
cd .\build\windows | |
.\compile.bat | |
shell: powershell | |
- name: Upload artifacts for inspection | |
uses: actions/upload-artifact@v2 | |
with: | |
name: binaries | |
path: | | |
./**/release/vina | |
./**/release/vina-${{ matrix.arch }} | |
./**/release/vina_split | |
./**/release/vina_split-${{ matrix.arch }} | |
./**/release/vina.exe | |
./**/release/vina_split.exe |