Skip to content

Commit

Permalink
q
Browse files Browse the repository at this point in the history
  • Loading branch information
spollok committed Jan 25, 2025
1 parent 7f72cce commit 190e10e
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 2 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/customized-win-shells.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,28 @@ jobs:

steps:
- uses: actions/checkout@v4
- uses: conda-incubator/setup-miniconda@v3
with:
activate-environment: magtense-env
auto-update-conda: true
python-version: 3.12

- name: Install minimal packages
shell: bash -el {0}
run: |
conda install -y -c nvidia/label/cuda-12.6.3 cuda-nvcc
conda install -y -c conda-forge make
- name: Run x64 Native Tools Command Prompt for VS 2022
shell: cmd /k "{0}" -arch=amd64 -host_arch=x64
working-directory: ${{ github.workspace }}/source/MagTenseFortranCuda/cuda
run: |
call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\Common7\Tools\VsDevCmd.bat"
ls -al
LIB /VERBOSE
conda deactivate
conda activate magtense-env
make
- name: Run Developer PowerShell for VS 2022
shell: pwsh -NoExit -ExecutionPolicy ByPass -File {0}
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/python-package-conda.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,10 @@ jobs:

- name: Compile Fortran files in Developer PowerShell for VS 2022
shell: pwsh -NoExit -ExecutionPolicy ByPass -File {0}
working-directory: ${{ github.workspace }}/python/src/magtense/lib/
run: |
"C:\Program Files\Microsoft Visual Studio\2022\Enterprise\Common7\Tools\Launch-VsDevShell.ps1"
cd "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\Common7\Tools\"
.\Launch-VsDevShell.ps1
cd ${{ github.workspace }}/python/src/magtense/lib/
make ps
- name: Compile with nvcc in x64 Native Tools Command Prompt for VS 2022
Expand Down

0 comments on commit 190e10e

Please sign in to comment.