Skip to content

Commit

Permalink
Move env preparation.
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelonken committed Jan 5, 2024
1 parent 44f39f7 commit 2a5eac4
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/cmake-win.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,20 +47,22 @@ jobs:
# run: |
# pip install jsondiff

- name: Configure project

- name: Prepare environment
run: |
$NOW=& Get-Date -format yyyy-MM-dd
echo "NOW=$NOW" >> $env:GITHUB_ENV
- name: Configure project

run: |
ls ${{ github.workspace }}
echo "WORKSPACE dir: ${{ github.workspace }}"
cmake --version
mkdir ${{ github.workspace }}\dcmtk-build
echo "Step 2"
cd ${{ github.workspace }}\dcmtk-build
echo "Step 3"
cmake -G "Visual Studio 17 2022" -Ax64 -DBUILD_SHARED_LIBS:BOOL=ON -DCMAKE_INSTALL_PREFIX:PATH=${{ github.workspace }}\dcmtk-${{ env.NOW }} ${{ github.workspace }}
cmake -G "Visual Studio 17 2022" -Ax64 -DDCMTK_MODULES:STR="ofstd;oflog;oficonv;dcmdata" -DBUILD_SHARED_LIBS:BOOL=ON -DCMAKE_INSTALL_PREFIX:PATH=${{ github.workspace }}\dcmtk-${{ env.NOW }} ${{ github.workspace }}
- name: Build dcmtk
run: |
Expand Down

0 comments on commit 2a5eac4

Please sign in to comment.