aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/.github/workflows/ci_appveyor.yml
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows/ci_appveyor.yml')
-rw-r--r--.github/workflows/ci_appveyor.yml35
1 files changed, 4 insertions, 31 deletions
diff --git a/.github/workflows/ci_appveyor.yml b/.github/workflows/ci_appveyor.yml
index 3a53e2c..752d2d5 100644
--- a/.github/workflows/ci_appveyor.yml
+++ b/.github/workflows/ci_appveyor.yml
@@ -17,11 +17,11 @@ jobs:
matrix:
platform: [Win32, x64]
configuration: [Debug, Release]
-
runs-on: windows-2019
-
name: '${{ matrix.platform }} / ${{ matrix.configuration }}'
-
+ defaults:
+ run:
+ shell: pwsh
env:
# https://www.appveyor.com/docs/environment-variables/
APPVEYOR: 'True'
@@ -30,48 +30,21 @@ jobs:
PLATFORM: '${{ matrix.platform }}'
CONFIGURATION: '${{ matrix.configuration }}'
BOOST_VERSION: 1.72.0
-
- defaults:
- run:
- shell: pwsh
-
steps:
- name: Checkout
uses: actions/checkout@v2
-
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.x'
-
- name: Cache Boost
uses: actions/cache@v2
with:
path: '${{ github.workspace }}/examples/build/boost_*.tar.gz'
key: 'boost_${{ env.BOOST_VERSION }}'
-
- name: Build Boost
run: python -m project.ci.boost --hint AppVeyor -- --with-filesystem
-
- name: Build example project
run: python -m project.ci.cmake --hint AppVeyor --install
-
- name: Run example project
- run: |
- cd "$env:APPVEYOR_BUILD_FOLDER/../build/install/bin"
- $foo_path = Join-Path (Get-Location).Path foo.exe
-
- $relative = 'test.txt'
- $absolute = Join-Path (Get-Location).Path $relative
-
- $actual = & $foo_path $relative
- echo 'Actual output:'
- echo $actual
-
- $expected = $foo_path,$absolute
- echo 'Expected output:'
- echo $expected
-
- if (Compare-Object $actual $expected -CaseSensitive) {
- throw 'Unexpected output'
- }
+ run: ./.ci/run_foo.ps1 (Join-Path $env:APPVEYOR_BUILD_FOLDER .. build install bin foo)