Skip to content

Commit

Permalink
WIP: CI: Fix windows build
Browse files Browse the repository at this point in the history
Missing:
- tests
- remove tipic/ci from on.branches

Signed-off-by: Jonathas-Conceicao <jonathas.conceicao@ossystems.com.br>
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
  • Loading branch information
Jonathas-Conceicao authored and otavio committed Dec 26, 2020
1 parent e94d4c6 commit a72b1a9
Showing 1 changed file with 17 additions and 15 deletions.
32 changes: 17 additions & 15 deletions .github/workflows/windows.yml
Expand Up @@ -20,23 +20,22 @@ jobs:
runs-on: windows-latest

steps:
- name: Cache Dependencies
id: cache-vcpkg
uses: actions/cache@v1
with:
path: C:/vcpkg/installed
key: vcpkg-installed-cache
- name: Install Dependencies
if: steps.cache-vcpkg.outputs.cache-hit != 'true'
run: |
vcpkg install libarchive --triplet x64-windows
vcpkg integrate install
- name: Export vcpkg build vars
shell: powershell
uses: lukka/run-vcpkg@v5
with:
vcpkgArguments: "libarchive"
vcpkgTriplet: x64-windows
vcpkgDirectory: ${{ runner.workspace }}/vcpkg/
appendedCacheKey: ${{ hashFiles(env.vcpkgResponseFile) }}
# run-vcpkg action needs to have a pinned down version of vcpkg
# this commit id refferes to the vcpkg version 2021.xx
vcpkgGitCommitId: acb6b10e7fdf5e8519c18398d0b069e1d58ca025

- name: Test vcpkg
run: |
echo $Env:VCPKG_INSTALLATION_ROOT
echo "VCPKG_ROOT=$Env:VCPKG_INSTALLATION_ROOT" >> $GITHUB_ENV
echo "VCPKGRS_DYNAMIC=1" >> $GITHUB_ENV
vcpkg list
vcpkg search libarchive
vcpkg search libarchive --triplet x64-windows
- name: Checkout sources
uses: actions/checkout@v2
- name: Install ${{ matrix.version }}
Expand Down Expand Up @@ -75,6 +74,9 @@ jobs:
- name: Tests
uses: actions-rs/cargo@v1
timeout-minutes: 10
env:
OPENSSL_ROOT_DIR: "D:\\a\\compress-tools\\vcpkg\\installed\\x64-windows"
VCPKGRS_DYNAMIC: 1
with:
command: test
args: --release --all --all-features --no-fail-fast -- --nocapture
Expand Down

0 comments on commit a72b1a9

Please sign in to comment.