-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update continuous.yml -- windows fix without cache
- Loading branch information
1 parent
75e79a7
commit a40aa1d
Showing
1 changed file
with
2 additions
and
41 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 |
---|---|---|
|
@@ -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 |