Skip to content

Commit

Permalink
Add GitHub Actions support (#5)
Browse files Browse the repository at this point in the history
* Add GitHub Actions support with workaround for microsoft/vcpkg#10119
  • Loading branch information
traversaro authored Feb 29, 2020
1 parent 725aa16 commit dbf6273
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: CI

on:
push:
pull_request:
schedule:
# * is a special character in YAML so you have to quote this string
# Execute a "nightly" build at 2 AM UTC
- cron: '0 2 * * *'


jobs:
build:
name: '[${{ matrix.vcpkg_version }}]'
strategy:
fail-fast: false
matrix:
vcpkg_version: [2020.01, 2019.12]

runs-on: windows-latest

steps:
- uses: actions/checkout@v2

- name: Run on latest vcpkg
shell: bash
run: |
mkdir C:/vcpkg-test
git clone https://github.com/microsoft/vcpkg C:/vcpkg-test/vcpkg
cd C:/vcpkg-test/vcpkg
git checkout ${{ matrix.vcpkg_version }}
C:/vcpkg-test/vcpkg/bootstrap-vcpkg.sh
C:/vcpkg-test/vcpkg/vcpkg.exe --overlay-ports=${GITHUB_WORKSPACE} install --triplet x64-windows ipopt-binary
# Try to install another library to check if the installation is ok
C:/vcpkg-test/vcpkg/vcpkg.exe install --triplet x64-windows asio

0 comments on commit dbf6273

Please sign in to comment.