Skip to content

Commit

Permalink
Removed code for windows build
Browse files Browse the repository at this point in the history
  • Loading branch information
anutosh491 committed Dec 22, 2023
1 parent e8b15cc commit 5440677
Showing 1 changed file with 8 additions and 60 deletions.
68 changes: 8 additions & 60 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ jobs:
os: [ windows-latest]

steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v2

- name: install mamba
uses: mamba-org/provision-with-micromamba@main
Expand All @@ -84,17 +84,20 @@ jobs:
micromamba shell hook -s cmd.exe -p C:\Users\runneradmin\micromamba-root
- name: cmake configure
shell: powershell
shell: cmd
run: |
call C:\Users\runneradmin\micromamba-root\condabin\micromamba.bat activate xeus-cpp
mkdir -p bld
cd bld
cmake .. -DCMAKE_BUILD_TYPE=Release -DDEPENDENCY_SEARCH_PREFIX="%CONDA_PREFIX%\Library" -DCMAKE_PREFIX_PATH="%CONDA_PREFIX%\Library" -DCMAKE_INSTALL_PREFIX="%CONDA_PREFIX%"
cmake .. -G "NMake Makefiles" -DCMAKE_BUILD_TYPE=Release -DXEUS_BUILD_TESTS=ON -DDEPENDENCY_SEARCH_PREFIX="%CONDA_PREFIX%\Library" -DCMAKE_PREFIX_PATH="%CONDA_PREFIX%\Library" -DCMAKE_INSTALL_PREFIX="%CONDA_PREFIX%"
- name: build
shell: powershell
shell: cmd
run: |
call C:\Users\runneradmin\micromamba-root\condabin\micromamba.bat activate xeus-cpp
cd bld
cmake --build . --config Release --target ALL_BUILD
set CL=/MP
nmake install
- name: test
shell: cmd
Expand All @@ -103,61 +106,6 @@ jobs:
cd test
pytest . --reruns 5
# win:

# runs-on: ${{ matrix.os }}

# strategy:
# fail-fast: false
# matrix:
# os: [ windows-latest]

# steps:
# - uses: actions/checkout@v2

# - name: install mamba
# uses: mamba-org/provision-with-micromamba@main
# with:
# environment-file: environment-dev.yml
# environment-name: xeus-cpp

# - name: micromamba shell hook
# shell: powershell
# run: |
# micromamba shell hook -s cmd.exe -p C:\Users\runneradmin\micromamba-root

# - name: Make build directory
# run: mkdir build

# - name: cmake configure
# shell: cmd
# run: |
# call C:\Users\runneradmin\micromamba-root\condabin\micromamba.bat activate xeus-cpp
# cmake .. ^
# -GNinja ^
# -DCMAKE_BUILD_TYPE=Release ^
# -DXEUS_BUILD_TESTS=ON ^
# -DDEPENDENCY_SEARCH_PREFIX="%CONDA_PREFIX%\Library" ^
# -DCMAKE_PREFIX_PATH="%CONDA_PREFIX%\Library" ^
# -DCMAKE_INSTALL_PREFIX="%CONDA_PREFIX%"
# working-directory: build

# - name: build
# shell: cmd
# run: |
# call C:\Users\runneradmin\micromamba-root\condabin\micromamba.bat activate xeus-cpp
# cd bld
# set CL=/MP
# ninja install
# working-directory: build

# - name: test
# shell: cmd
# run: |
# call C:\Users\runneradmin\micromamba-root\condabin\micromamba.bat activate xeus-cpp
# cd test
# pytest . --reruns 5

emscripten_wasm:

runs-on: ubuntu-latest
Expand Down

0 comments on commit 5440677

Please sign in to comment.