Skip to content

Commit 96f6a1e

Browse files
committed
ci: compress statements, that need cd's , so that they are not done multiple times
1 parent 54c49cd commit 96f6a1e

File tree

1 file changed

+2
-13
lines changed

1 file changed

+2
-13
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -101,22 +101,11 @@ jobs:
101101
choco install pkgconfiglite
102102
echo "PKG_CONFIG_PATH=C:/lib/pkgconfig" | Out-File -FilePath $env:GITHUB_ENV -Append
103103
104-
- name: Configure
104+
- name: Build and Install OOPetris
105105
run: |
106106
cd oopetris
107107
meson setup build -Dbuildtype=release -Ddefault_library=shared -Dclang_libcpp=${{ matrix.config.os == 'macos' && 'enabled' || 'disabled' }} -Donly_build_libs=true ${{ matrix.config.os == 'windows' && '-Db_vscrt=static_from_buildtype' || '' }}
108-
109-
- name: Build and install Libs
110-
if: matrix.config.os != 'ubuntu'
111-
run: |
112-
cd oopetris
113-
meson install -C build
114-
115-
- name: Build and install Libs (Linux)
116-
if: matrix.config.os == 'ubuntu'
117-
run: |
118-
cd oopetris
119-
sudo meson install -C build
108+
${{ matrix.config.os == 'ubuntu' && 'sudo' || '' }} meson install -C build
120109
121110
- name: Install Node.js
122111
uses: actions/setup-node@v4

0 commit comments

Comments
 (0)