-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add GitHub Actions support with workaround for microsoft/vcpkg#10119
- Loading branch information
1 parent
725aa16
commit dbf6273
Showing
1 changed file
with
35 additions
and
0 deletions.
There are no files selected for viewing
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
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 |