Skip to content

Commit

Permalink
Cosutmized sheels with windows
Browse files Browse the repository at this point in the history
  • Loading branch information
spollok committed Jan 24, 2025
1 parent 605d812 commit f3b7c87
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 1 deletion.
18 changes: 18 additions & 0 deletions .github/workflows/customized-win-shells.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: customized-win-shells

on: [push]

jobs:
customized-win-shells:
runs-on: windows-latest

steps:
- name: Run Developer PowerShell for VS 2022
shell: pwsh -NoExit -ExecutionPolicy ByPass -File C:/Program Files/Microsoft Visual Studio/2022/Enterprise/Common7/Tools/Launch-VsDevShell.ps1
working-directory: ${{ github.workspace }}/python/src/magtense/lib/
run: ls

- name: Run x64 Native Tools Command Prompt for VS 2022
shell: cmd /k C:/Program Files/Microsoft Visual Studio/2022/Enterprise/Common7/Tools/VsDevCmd.bat -arch=amd64 -host_arch=x64
working-directory: ${{ github.workspace }}/source/MagTenseFortranCuda/cuda
run: ls -al
6 changes: 5 additions & 1 deletion .github/workflows/python-package-conda.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,13 @@ jobs:

- name: Install local magtense package with pip
run: python -m pip install -e ${{ github.workspace }}/python

- name: Test with pytest
run: |
conda install pytest
pytest
build-linux:
runs-on: ubuntu-latest
defaults:
Expand All @@ -54,11 +55,14 @@ jobs:
environment-file: python/environment_linux.yml
python-version: 3.12
auto-activate-base: false

- name: Compile Fortran source code and build Python wrapper
working-directory: ${{ github.workspace }}/python/src/magtense/lib/
run: make

- name: Install local magtense package with pip
run: python -m pip install -e ${{ github.workspace }}/python

- name: Test with pytest
run: |
conda install pytest
Expand Down

0 comments on commit f3b7c87

Please sign in to comment.