Skip to content

Commit 5fe56db

Browse files
committed
Add working directory
1 parent 77a4e5a commit 5fe56db

File tree

1 file changed

+13
-18
lines changed

1 file changed

+13
-18
lines changed

.github/workflows/main.yml

Lines changed: 13 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ jobs:
2424

2525
steps:
2626
- uses: actions/checkout@v4
27+
- run: mkdir build
2728

2829
- name: Install micromamba
2930
uses: mamba-org/setup-micromamba@v1
@@ -38,32 +39,28 @@ jobs:
3839
- name: Configure cmake
3940
shell: bash -l {0}
4041
run: |
41-
mkdir -p bld
42-
cd bld
4342
cmake .. \
4443
-DXLUA_WITH_XWIDGETS=ON\
4544
-DXLUA_WITH_XCANVAS=ON\
4645
-DXEUS_LUA_USE_LUAJIT=${{matrix.luajit}} \
4746
-DCMAKE_PREFIX_PATH=$CONDA_PREFIX \
4847
-DCMAKE_INSTALL_PREFIX=$CONDA_PREFIX
48+
working-directory: build
4949

5050
- name: Build
5151
shell: bash -l {0}
52-
run: |
53-
cd bld
54-
make -j8
52+
run: make -j8
53+
working-directory: build
5554

5655
- name: Install
5756
shell: bash -l {0}
58-
run: |
59-
cd bld
60-
make install
57+
run: make install
58+
working-directory: build
6159

6260
# - name: Test
6361
# shell: bash -l {0}
64-
# run: |
65-
# cd test
66-
# pytest .
62+
# run: pytest . -vvv
63+
# working-directory: test
6764

6865
win:
6966

@@ -76,6 +73,7 @@ jobs:
7673

7774
steps:
7875
- uses: actions/checkout@v4
76+
- run: mkdir build
7977

8078
- name: Install micromamba
8179
uses: mamba-org/setup-micromamba@v1
@@ -85,16 +83,13 @@ jobs:
8583

8684
- name: Configure cmake
8785
shell: powershell
88-
run: |
89-
mkdir -p bld
90-
cd bld
91-
cmake .. -DCMAKE_BUILD_TYPE=Release -DDEPENDENCY_SEARCH_PREFIX="%CONDA_PREFIX%\Library" -DCMAKE_PREFIX_PATH="%CONDA_PREFIX%\Library"
86+
run: cmake .. -DCMAKE_BUILD_TYPE=Release -DDEPENDENCY_SEARCH_PREFIX="%CONDA_PREFIX%\Library" -DCMAKE_PREFIX_PATH="%CONDA_PREFIX%\Library"
87+
working-directory: build
9288

9389
- name: Build
9490
shell: powershell
95-
run: |
96-
cd bld
97-
cmake --build . --target ALL_BUILD
91+
run: cmake --build . --target ALL_BUILD
92+
working-directory: build
9893

9994
emscripten_wasm:
10095

0 commit comments

Comments
 (0)