Skip to content

Commit

Permalink
Update continuous.yml -- windows fix without cache
Browse files Browse the repository at this point in the history
  • Loading branch information
danielepanozzo authored Sep 8, 2023
1 parent 75e79a7 commit a40aa1d
Showing 1 changed file with 2 additions and 41 deletions.
43 changes: 2 additions & 41 deletions .github/workflows/continuous.yml
Original file line number Diff line number Diff line change
Expand Up @@ -146,59 +146,20 @@ jobs:
uses: actions/checkout@v1
with:
fetch-depth: 10
- uses: seanmiddleditch/gha-setup-ninja@master

- name: Setup Conda
uses: s-weigand/[email protected]
with:
conda-channels: anaconda, conda-forge
python-version: 3.9
update-conda: true

- name: Install Dependencies
shell: powershell
run: |
conda install -c conda-forge mpir -y
- name: Set env
run: |
echo "BOOST_ROOT=$env:BOOST_ROOT_1_72_0" >> ${env:GITHUB_ENV}
echo "appdata=$env:LOCALAPPDATA" >> ${env:GITHUB_ENV}
- name: Cache build
id: cache-build
uses: actions/cache@v2
with:
path: ${{ env.appdata }}\Mozilla\sccache
key: ${{ runner.os }}-${{ matrix.config }}-${{ matrix.tbb }}-cache-${{ github.sha }}
restore-keys: ${{ runner.os }}-${{ matrix.config }}-${{ matrix.tbb }}-cache

- name: Prepare sccache
run: |
iwr -useb 'https://raw.githubusercontent.com/scoopinstaller/install/master/install.ps1' -outfile 'install.ps1'
.\install.ps1 -RunAsAdmin
scoop install sccache --global
# Scoop modifies the PATH so we make it available for the next steps of the job
echo "${env:PATH}" >> ${env:GITHUB_PATH}
- name: Configure and build
shell: cmd
run: |
call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\Common7\Tools\VsDevCmd.bat" -arch=x64
call "C:\Program Files\Microsoft Visual Studio\2022\Community\Common7\Tools\VsDevCmd.bat" -arch=x64
cmake --version
cmake -G Ninja ^
-DCMAKE_CXX_COMPILER_LAUNCHER=sccache ^
-DCMAKE_BUILD_TYPE=${{ matrix.config }} ^
-B build ^
-S .
cd build
ninja -j1
ninja -j8
- name: Tests
run: |
cd build
ctest --verbose --output-on-failure
- name: Setup tmate session
if: ${{ failure() }}
uses: mxschmitt/action-tmate@v3

0 comments on commit a40aa1d

Please sign in to comment.