Skip to content

Commit

Permalink
Merge pull request #982 from vktr/fix/ci-build
Browse files Browse the repository at this point in the history
Remove build caching since it doesn't work (for now), fix env settings
  • Loading branch information
vktr committed Oct 18, 2020
2 parents 578ead0 + cb44af7 commit 40fe828
Showing 1 changed file with 4 additions and 21 deletions.
25 changes: 4 additions & 21 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,25 +21,8 @@ jobs:
- name: Setup Git
run: |
git fetch --prune --unshallow
git ls-tree HEAD vendor/fmt vendor/libtorrent vendor/loguru vendor/nlohmann-json vendor/sentry-crashpad vendor/wx > .vendor-status
- name: Restore cache
uses: actions/cache@v2
with:
path: |
build-${{ matrix.arch }}
!build-${{ matrix.arch }}/PicoTorrent-coredb.dir
!build-${{ matrix.arch }}/PicoTorrent.dir
!build-${{ matrix.arch }}/Plugin_Filters.dir
!build-${{ matrix.arch }}/Plugin_Updater.dir
!build-${{ matrix.arch }}/Release
!build-${{ matrix.arch }}/CMakeCache.txt
key: ${{ runner.os }}-${{ matrix.arch }}-${{ hashFiles('.vendor-status') }}

- name: Prepare
run: |
git submodule update --init --recursive
- name: Install dependencies
run: |
if ('${{ matrix.arch }}' -eq 'x64') {
Expand All @@ -52,11 +35,11 @@ jobs:
- name: Set environment variables
run: |
echo "BOOST_ROOT=$env:BOOST_ROOT_1_72_0" >> $GITHUB_ENV
echo "BOOST_ROOT=$env:BOOST_ROOT_1_72_0" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
if ('${{ matrix.arch }}' -eq 'x64') {
echo "OPENSSL_ROOT_DIR=$env:ProgramFiles\OpenSSL-Win64" >> $GITHUB_ENV
echo "OPENSSL_ROOT_DIR=$env:ProgramFiles\OpenSSL-Win64" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
} elseif ('${{ matrix.arch }}' -eq 'x86') {
echo "OPENSSL_ROOT_DIR=${env:ProgramFiles(x86)}\OpenSSL-Win32" >> $GITHUB_ENV
echo "OPENSSL_ROOT_DIR=${env:ProgramFiles(x86)}\OpenSSL-Win32" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
}
- name: Build
Expand Down

0 comments on commit 40fe828

Please sign in to comment.