Skip to content

Commit

Permalink
Try to fix Windows workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
ennoruijters committed Feb 19, 2024
1 parent a064850 commit d13be42
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,20 @@ jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
path: dftcalc
- uses: actions/setup-java@v3
with:
java-version: 17
distribution: microsoft
- name: Checkout yaml-cpp
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
repository: jbeder/yaml-cpp
path: yaml-cpp
- name: Checkout DFTRES
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
repository: utwente-fmt/DFTRES
path: DFTRES
Expand All @@ -43,10 +43,9 @@ jobs:
if: steps.cache-yaml-cpp.outputs.cache-hit != 'true'
run: |
& "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\Common7\Tools\Launch-VsDevShell.ps1"
mkdir yaml-cpp/build | Out-Null
cd yaml-cpp/build
cmake -G Ninja -DCMAKE_C_COMPILER=cl -DCMAKE_CXX_COMPILER=cl -DYAML_BUILD_SHARED_LIBS=ON -DCMAKE_BUILD_TYPE=Release ..
ninja yaml-cpp.dll
cd yaml-cpp
cmake -B build -G Ninja -DCMAKE_C_COMPILER=cl -DCMAKE_CXX_COMPILER=cl -DYAML_BUILD_SHARED_LIBS=ON -DCMAKE_BUILD_TYPE=Release
cmake --build build --parallel
copy yaml-cpp.dll,yaml-cpp.lib ..
- name: Cache DFTRES
id: cache-dftres
Expand Down

0 comments on commit d13be42

Please sign in to comment.