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
name: customized-win-shells | |
on: [push] | |
jobs: | |
customized-win-shells: | |
runs-on: windows-latest | |
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 cuda | |
ls -al | |
make | |
ls -al | |
# - name: Run Developer PowerShell for VS 2022 | |
# shell: pwsh -NoExit -ExecutionPolicy ByPass -File {0} | |
# run: | | |
# cd "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\Common7\Tools\" | |
# .\Launch-VsDevShell.ps1 | |
# cd ${{ github.workspace }}/python/src/magtense/lib/ | |
# ls | |
# LIB /VERBOSE |