Skip to content

Commit a4b4c80

Browse files
committed
Split package installation into its own step in GitHub builds
1 parent 7f59ab1 commit a4b4c80

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

.github/workflows/test_build.yml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,8 +153,13 @@ jobs:
153153
- name: Build Macaulay2 using Ninja
154154
if: matrix.build-system == 'cmake'
155155
run: |
156-
cmake --build . --target M2-core M2-emacs install-packages
157-
if [[ "${{ runner.os }}" == "Linux" ]] && [[ "${{ matrix.build-system }}" == "cmake" ]]; then
156+
cmake --build . --target M2-core M2-emacs
157+
158+
- name: Install packages using Ninja
159+
if: matrix.build-system == 'cmake'
160+
run: |
161+
cmake --build . --target install-packages
162+
if [[ "${{ runner.os }}" == "Linux" ]]; then
158163
sudo apt-get install -y -q --no-install-recommends dpkg-dev
159164
echo "GIT_COMMIT=`git describe --dirty --always --match HEAD`" >> $GITHUB_ENV
160165
cpack -G DEB
@@ -173,6 +178,11 @@ jobs:
173178
../../configure --with-system-gc --with-fplll
174179
175180
- name: Build Macaulay2 using Make
181+
if: matrix.build-system == 'autotools'
182+
run: |
183+
make -j$(nproc 2>/dev/null || sysctl -n hw.logicalcpu) PACKAGES=
184+
185+
- name: Install packages using Make
176186
if: matrix.build-system == 'autotools'
177187
run: |
178188
make -j$(nproc 2>/dev/null || sysctl -n hw.logicalcpu)

0 commit comments

Comments
 (0)